How To create mosaic with live stream with ffmpeg ( or with xuggle )

Emre Karataşoğlu picture Emre Karataşoğlu · Sep 12, 2012 · Viewed 10k times · Source

For a thousand minutes I try to find a way that stream multiple video and combine them into a one output . I wanna do that with ffmpeg or xuggler with ffmpeg cmd. VirtualDub and avis couldn't meet my needs. Actually I couldn't find a way stream in avis . I can only make 4 8 16 videos in a screen on virtualdub but they are local videos and not my issue .

>cd c:\f\bin 

ffmpeg -i rtmp://localhost/live/me -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie=other stream, scale=iw/4:ih/4 [right]; [left][right] overlay=main_w/2:0 [out]" -b:v 768k output

anyway join two stream side by side , but I want more . Is it possible with ffmpeg ? Also I cant use the program like spycam ,vlc etc . Don't say to me vlc , console vlc can easily do it .

Answer

Robert Rowntree picture Robert Rowntree · Sep 14, 2012

FAQ for ffmpeg includes instructions for concatenation of video. Pay close attention to instructions in section 3.14.3 because if you understand how to demux audio from video and to then convert each track to raw stream, the streams can simply be concatenated.