当前位置:   article > 正文

//GPU 转码参数

//GPU 转码参数

一路
ffmpeg -y -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i Elisa总片花Binge_trailer_China.mp4 -c:a copy -c:v h264_nvenc -vf scale_npp=1080:720 -b:v 144M Elisa_gpu.mov -y

多路
1:5 HWACCEL TRANSCODE WITH SCALING
The following command reads file input.mp4 and transcodes it to five different H.264
videos at various output resolutions and bit rates. Note that while using the GPU video
encoder and decoder, this command also uses the scaling filter (scale_npp) in FFMPEG
for scaling the decoded video output into multiple desired resolutions. Doing this
ensures that the memory transfers (system memory to video memory and vice versa) are
eliminated, and that transcoding is performed with the highest possible performance.
ffmpeg -y -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i input.mp4
-vf scale_npp=1920:1080 -c:a copy -c:v h264_nvenc -b:v 8M
output_1080p.mp4
-vf scale_npp=1280:720 -c:a copy -c:v h264_nvenc -b:v 5M
output_720p.mp4
-vf scale_npp=640:480 -c:a copy -c:v h264_nvenc -b:v 3M h264_nvenc
output_480p.mp4
-vf scale_npp=320:240 -c:a copy -c:v h264_nvenc -b:v 2M h264_nvenc
output_240p.mp4
-vf scale_npp=160:128 -c:a copy -c:v h264_nvenc -b:v 1M h264_nvenc
output_128p.mp4

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/789521
推荐阅读
相关标签
  

闽ICP备14008679号