FFmpeg Hardware Acceleration -> GPU + DirectShow

NoviceAndNovice picture NoviceAndNovice · Apr 5, 2011 · Viewed 8.1k times · Source

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?

Answer

DirtY iCE picture DirtY iCE · Nov 23, 2011

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)