Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFmpeg Hardware Acceleration -> GPU + DirectShow

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?

like image 987
NoviceAndNovice Avatar asked Apr 05 '11 16:04

NoviceAndNovice


People also ask

Does FFmpeg support hardware acceleration?

FFmpeg uses Video Codec SDKFFmpeg supports following functionality accelerated by video hardware on NVIDIA GPUs: Hardware-accelerated encoding of H. 264 and HEVC* Hardware-accelerated decoding of H.

Does FFmpeg use GPU or CPU?

the CPU% has been more than 90 (375%). In case of ImageMagick, if I enable opencl while configuring, then the app will run in GPU, i.e., the CPU% will be less than 90. I noticed that. But in case of ffmpeg, it is GPU accelerated one.

Can FFmpeg use GPU Windows?

FFmpeg with NVIDIA GPU acceleration is supported on all Windows platforms, with compilation through Microsoft Visual Studio 2013 SP2 and above, and MinGW. Depending upon the Visual Studio Version and CUDA SDK version used, the paths specified may have to be changed accordingly.


1 Answers

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)

like image 178
DirtY iCE Avatar answered Oct 21 '22 12:10

DirtY iCE