赞
踩
一路
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。