大贤者
精华
|
战斗力 鹅
|
回帖 0
注册时间 2020-4-13
|
本帖最后由 Gazzz 于 2023-10-8 20:05 编辑
大概率是直接调的libvpx,没有用硬件加速
如果是新一点的IU,可以用带硬件加速的ffmpeg,用类似下面的command加速,我手头没有那么新的IU,没法帮你试了...
- ffmpeg -init_hw_device qsv=hw -filter_hw_device hw ... -vf hwupload=extra_hw_frames=64,format=qsv -c:v vp9_qsv ...
复制代码
如果不用qsv的话,libvpx有一个speed的参数可以调整,可以参考一下:
For libvpx-vp9, the traditional wisdom of speeding up the first pass by using a faster encoding speed setting does not apply; -speed values from 0 to 4 result in the same speed for the first pass and yield the exact same results in the final encode, whereas any speed setting above 4 results in the first pass utilising only a single core, slowing things down significantly. Therefore the -speed switch can be entirely omitted from the first pass, since the default value of 1 will result in fast speed.[1]
另外,根据视频质量,-cpu-used和-deadline之类的参数,也是会影响速度的。
ffmpeg的-threads参数也可以加上去试试看,某些分发的版本是不支持的
引用:
[1] FFmpeg and VP9 Encoding Guide: https://trac.ffmpeg.org/wiki/Encode/VP9 |
|