scale=960:540 : Resizes each individual stream to fit perfectly into one quadrant of a 1920x1080 canvas.
ffmpeg -hwaccel cuda -hwaccel_output_format cuda \ -i "srt://192.168.1.50:5001?mode=listener" \ -i "srt://192.168.1.50:5002?mode=listener" \ -i "rtmp://192.168.1.51/live/stream3" \ -i "udp://@239.1.1.1:1234" \ -filter_complex " nullsrc=size=1920x1080 [base]; [0:v] hwdownload, format=nv12, scale=960x540 [v1]; [1:v] hwdownload, format=nv12, scale=960x540 [v2]; [2:v] hwdownload, format=nv12, scale=960x540 [v3]; [3:v] hwdownload, format=nv12, scale=960x540 [v4]; [base][v1] overlay=shortest=1:x=0:y=0 [vid1]; [vid1][v2] overlay=shortest=1:x=960:y=0 [vid2]; [vid2][v3] overlay=shortest=1:x=0:y=540 [vid3]; [vid3][v4] overlay=shortest=1:x=960:y=540 [output] " \ -map "[output]" -c:v h264_nvenc -preset p1 -f mpegts srt://192.168.1.100:9000 Use code with caution. Breaking Down the Code: ip multiviewer software open source exclusive
Related search suggestions (automatically generated) scale=960:540 : Resizes each individual stream to fit