FFmpeg Hardware Acceleration -> GPU + DirectShow

*爱你&永不变心* 提交于 2019-12-20 10:37:54

问题


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)



来源:https://stackoverflow.com/questions/5554933/ffmpeg-hardware-acceleration-gpu-directshow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!