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

Rad J jradzark at gmail.com
Thu Oct 11 17:56:48 EEST 2018

Hi Mortiz,

That worked but I'm getting lot's of errors while streaming and youtube is
complaining about the frames and format, how can I adjust those?

[image: image.png]


I have also changed the resolution to 1080p and it looks nice now:

ffmpeg -rtsp_transport tcp
-i "rtsp://xxx:xxxx@"
-i "rtsp://xxx:xxxx@"
-i "rtsp://xxx:xxxx@"
-i "rtsp://xxx:xxxx@"
-f lavfi -i anullsrc
-filter_complex "
[0:v] setpts=PTS-STARTPTS, scale=1920x1080,setsar=1[upperleft];
[1:v] setpts=PTS-STARTPTS, scale=1920x1080,setsar=1[upperright];
[2:v] setpts=PTS-STARTPTS, scale=1920x1080,setsar=1[bottomleft];
[3:v] setpts=PTS-STARTPTS, scale=1920x1080,setsar=1[bottomright];
-map [base] -map 4 -f flv rtmp://

On Thu, Aug 30, 2018 at 11:10 AM Rad J <jradzark at gmail.com> wrote:

> 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];
> [upperleft][upperright]hstack[base]"
> -map [base] -map 2 -f flv rtmp://
> x.rtmp.youtube.com/live2/xxxx:xxxx-xxxx:xxxx
> But how do I add two more below those two?
> You can view the two here:
> https://www.youtube.com/channel/UCxyIPYgLqtqLl2one2J7goQ/live
> Thanks,
> Zarks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 217468 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20181011/1cb11f09/attachment.png>

More information about the ffmpeg-user mailing list