[FFmpeg-user] UDP NVENC HEVC transcoding#

Moritz Barsnick barsnick at gmx.net
Wed Aug 19 15:32:05 EEST 2020


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


More information about the ffmpeg-user mailing list