FFmpeg Hardware Acceleration -> GPU + DirectShow

2019-03-13 02:04发布

问题:

Is there a hardware accelerated version of FFmpeg (e.g. a version that utilizes the GPU)?

Also, does anybody use FFmpeg with GPU support? Possibly for scaling and converting video format? Or, for example, use DirectShow for image scaling and displaying images on surfaces? If so anybody can provide small code samples?

回答1:

There are some VDPAU accelerated codecs for unixes with nVidia card. There is also an mpegvideo_xvmc codec using XvMC that can decode MPEG-1 and 2 on X11 if the driver has support for it, and also some codecs using VA API.

For Windows, ffmpeg supports DXVA 2. If you want to use it with DirectShow, you should install ffdshow tryouts, since it provides the necessary DirectShow filter (and it also supports all ffmpeg filters, can display subtitles, etc)