//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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值