UDP NVENC HEVC transcoding
Hello! I'm transcoding/resizing some UDP live streams using CUVID and NVENC. It works but I got the feeling could be better, this is the my command line: ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -resize 1280x720 -drop_second_field 1 -i udp:// 230.8.0.7:10008?buffer_size=3000000?fifo_size=1000000&overrun_nonfatal=1 -crf 30 -c:a -c:v hevc_nvenc -profile:v main -pass 2 -rc vbr -maxrate 3M -f mpegts udp://239.210.210.7:1234?pkt_size=1316&localaddr=10.10.71.55 I'd like to ask for some expert advice on what could be added or suppressed to improve it. Thanks!! LP
Subject: [FFmpeg-user] UDP NVENC HEVC transcoding
Hello!
I'm transcoding/resizing some UDP live streams using CUVID and NVENC. It works but I got the feeling could be better, this is the my command line:
ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -resize 1280x720 -drop_second_field 1 -i udp:// 230.8.0.7:10008?buffer_size=3000000?fifo_size=1000000&overrun_nonfatal=1 -crf 30 -c:a -c:v hevc_nvenc -profile:v main -pass 2 -rc vbr -maxrate 3M -f mpegts udp://239.210.210.7:1234?pkt_size=1316&localaddr=10.10.71.55
I'd like to ask for some expert advice on what could be added or suppressed to improve it.
Thanks!!
LP
Aren't there new NVENC options nowadays in the new SDK ? Eg presets have changed significantly, such as -preset p7 and -multipass fullres Perhaps see Video SDK here ? https://developer.nvidia.com/nvidia-video-codec-sdk especially page 12 of https://developer.nvidia.com/gtc/2020/video/s21337
Hi Hydra333 Many thanks for the tip, I'll give it a try. Cheers! On Mon, Aug 17, 2020 at 10:54 PM <hydra3333@gmail.com> wrote:
Subject: [FFmpeg-user] UDP NVENC HEVC transcoding
Hello!
I'm transcoding/resizing some UDP live streams using CUVID and NVENC. It works but I got the feeling could be better, this is the my command line:
ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -resize 1280x720 -drop_second_field 1 -i udp:// 230.8.0.7:10008?buffer_size=3000000?fifo_size=1000000&overrun_nonfatal=1 -crf 30 -c:a -c:v hevc_nvenc -profile:v main -pass 2 -rc vbr -maxrate 3M -f mpegts udp://239.210.210.7:1234?pkt_size=1316&localaddr=10.10.71.55
I'd like to ask for some expert advice on what could be added or suppressed to improve it.
Thanks!!
LP
Aren't there new NVENC options nowadays in the new SDK ? Eg presets have changed significantly, such as -preset p7 and -multipass fullres
Perhaps see Video SDK here ? https://developer.nvidia.com/nvidia-video-codec-sdk especially page 12 of https://developer.nvidia.com/gtc/2020/video/s21337
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On Mon, Aug 17, 2020 at 11:21:38 -0300, Leonardo Pagotto wrote:
I'm transcoding/resizing some UDP live streams using CUVID and NVENC. It works but I got the feeling could be better, this is the my command line:
What feeling is that? Faster, higher quality, just more efficient?
ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -resize 1280x720 -drop_second_field 1 -i udp:// 230.8.0.7:10008?buffer_size=3000000?fifo_size=1000000&overrun_nonfatal=1 -crf 30 -c:a -c:v hevc_nvenc -profile:v main -pass 2 -rc vbr -maxrate 3M -f mpegts udp://239.210.210.7:1234?pkt_size=1316&localaddr=10.10.71.55
I don't think this is a working command line. - "-c:a -c:v hevc_nvenc" is missing something. - "-pass 2" is for multipass encoding, right? Does that make sense with UDP to UDP encoding? I don't know anything about cuvid on nvenc usage, so I can't actually help you with that. ;) (I also recommend chacking out presets before manually tweaking parameters, unless you already know what you want to achieve.) Moritz
Thank you, Moritz On Wed, Aug 19, 2020 at 9:32 AM Moritz Barsnick <barsnick@gmx.net> wrote:
On Mon, Aug 17, 2020 at 11:21:38 -0300, Leonardo Pagotto wrote:
I'm transcoding/resizing some UDP live streams using CUVID and NVENC. It works but I got the feeling could be better, this is the my command line:
What feeling is that? Faster, higher quality, just more efficient?
ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -resize 1280x720 -drop_second_field 1 -i udp:// 230.8.0.7:10008?buffer_size=3000000?fifo_size=1000000&overrun_nonfatal=1 -crf 30 -c:a -c:v hevc_nvenc -profile:v main -pass 2 -rc vbr -maxrate 3M -f mpegts udp://239.210.210.7:1234?pkt_size=1316&localaddr=10.10.71.55
I don't think this is a working command line. - "-c:a -c:v hevc_nvenc" is missing something. - "-pass 2" is for multipass encoding, right? Does that make sense with UDP to UDP encoding?
I don't know anything about cuvid on nvenc usage, so I can't actually help you with that. ;)
(I also recommend chacking out presets before manually tweaking parameters, unless you already know what you want to achieve.)
Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (3)
-
hydra3333@gmail.com -
Leonardo Pagotto -
Moritz Barsnick