FFmpeg硬件加速-> GPU + DirectShow [英] FFmpeg Hardware Acceleration -> GPU + DirectShow

查看:261
本文介绍了FFmpeg硬件加速-> GPU + DirectShow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有FFmpeg的硬件加速版本(例如,使用GPU的版本)?

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

此外,有人使用带有GPU支持的FFmpeg吗?可能用于缩放和转换视频格式?或者,例如,使用DirectShow进行图像缩放并在表面上显示图像?
如果可以,那么任何人都可以提供小代码示例吗?

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?

推荐答案

有一些 VDPAU 加速编解码器。还有一个 mpegvideo_xvmc 编解码器,它使用 XvMC 如果驱动程序支持,则可以在X11上解码MPEG-1和2,还可以使用 VA API

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.

对于Windows,ffmpeg支持 DXVA 2.如果要与DirectShow一起使用,则应安装 ffdshow试用版,因为它提供了必要的DirectShow过滤器(并且还支持所有ffmpeg过滤器,可以显示字幕等)

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)

这篇关于FFmpeg硬件加速-> GPU + DirectShow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆