加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

CUVID/NVDEC完全硬件转码vs.部分硬件转码

(2018-09-29 23:16:27)
标签:

it

分类: 技术
作者:FlyingPenguin 來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

CUVID, which is also called NVDEC by NVIDIA now, can be used for decoding on Windows and Linux.
In combination with NVENC, it offers full hardware transcoding.

CUVID offers decoders for H.264, HEVC, MJPEG, MPEG-1/2/4, VP8/VP9, VC-1.
Codec support varies by hardware.
The full set of codecs being available only on Pascal hardware, which adds VP9 and 10 bit support.

解码经过系统内存
Sample decode using CUVID, the cuvid decoder copies the frames to system memory in this case:

ffmpeg -c:v h264_cuvid -i input output.mkv
这种情况,解码器会将解码后的数据拷贝到系统内存。

完全硬件转码
Full hardware transcode with CUVID and NVENC:

ffmpeg -hwaccel cuvid -c:v h264_cuvid -i input -c:v h264_nvenc -preset slow output.mkv
加了 -hwaccel cuvid之后,这种情况完全通过显卡GPU完成。

部分硬件转码
Partial hardware transcode, with frames passed through system memory:

ffmpeg -c:v h264_cuvid -i input -c:v h264_nvenc -preset slow output.mkv
部分硬件解码。解码后的数据会通过系统内存。

References:
https://trac.ffmpeg.org/wiki/HWAccelIntro

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有