[FFmpeg-user] Multiple Streams using ffmpeg (got 2 working, need 4)

Rad J jradzark at gmail.com
Thu Aug 30 19:10:58 EEST 2018

Hello There,

I would like to stream 4 cams to YouTube using ffmpeg.

I was able to get 2 to work as follows:

ffmpeg -rtsp_transport tcp
-i "rtsp://xxxx:xxxx@"
-i "rtsp://xxxx:xxxx@"
-f lavfi -i anullsrc
-filter_complex "
[0:v] setpts=PTS-STARTPTS, scale=800x448,setsar=1[upperleft];
[1:v] setpts=PTS-STARTPTS, scale=800x448,setsar=1[upperright];
-map [base] -map 2 -f flv rtmp://

But how do I add two more below those two?

You can view the two here:


More information about the ffmpeg-user mailing list