h264_nvenc encoding?

Questions and answers on how to get the most out of FFAStrans
Post Reply
buddhabas
Posts: 19
Joined: Tue Oct 04, 2022 9:03 pm

h264_nvenc encoding?

Post by buddhabas »

Hi!
how can I use this command on FFATrans?

ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -map 0:0 -r 23.976 -c:v h264_nvenc -preset p1 -vf scale_cuda=-2:256:format=yuv420p:interp_algo=bilinear,setpts=PTS-STARTPTS -f mp4 "output.mp4"

I don't see the h264_nvenc btw encoder list.
Thanks :)
emcodem
Posts: 1815
Joined: Wed Sep 19, 2018 8:11 am

Re: h264_nvenc encoding?

Post by emcodem »

buddhabas wrote: Mon Dec 16, 2024 8:10 am I don't see the h264_nvenc btw encoder list.
Hehe thats no secret :D it is because steinar only wants to introduce this along with proper resource control. As we dont yet have nvenc resource control, we dont have nvenc h264 processor.

Not sure what to interpret out of your question but straight forward answer is that you can use what you wrote in a commandline processor, e.g. like that.

ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "%s_source%" -map 0:0 -r 23.976 -c:v h264_nvenc -preset p1 -vf scale_cuda=-2:256:format=yuv420p:interp_algo=bilinear,setpts=PTS-STARTPTS -f mp4 -y "%s_source%_nvenc.mp4"

There is a number of other examples regarding nvenc on the forum, e.g. here
viewtopic.php?p=8856&hilit=nvenc#p8856

Was that what you wanted to know?
emcodem, wrapping since 2009 you got the rhyme?
buddhabas
Posts: 19
Joined: Tue Oct 04, 2022 9:03 pm

Re: h264_nvenc encoding?

Post by buddhabas »

emcodem wrote: Mon Dec 16, 2024 3:56 pm
buddhabas wrote: Mon Dec 16, 2024 8:10 am I don't see the h264_nvenc btw encoder list.
Hehe thats no secret :D it is because steinar only wants to introduce this along with proper resource control. As we dont yet have nvenc resource control, we dont have nvenc h264 processor.

Not sure what to interpret out of your question but straight forward answer is that you can use what you wrote in a commandline processor, e.g. like that.

ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "%s_source%" -map 0:0 -r 23.976 -c:v h264_nvenc -preset p1 -vf scale_cuda=-2:256:format=yuv420p:interp_algo=bilinear,setpts=PTS-STARTPTS -f mp4 -y "%s_source%_nvenc.mp4"

There is a number of other examples regarding nvenc on the forum, e.g. here
viewtopic.php?p=8856&hilit=nvenc#p8856

Was that what you wanted to know?
Yes of course. Thanks so much my savior :)
Post Reply