[FFmpeg-user] FFMpeg concat streams

Carlos PiƱeiro carlospigu at hotmail.com
Tue Mar 22 20:45:35 CET 2016

I am trying to receive two H264 UDP streams from two cameras, and save them to one file (so they are always synchronized). I tried a lot of things, but it always says that there is no video on the second stream (although I can watch it).

ffmpeg -probesize 20M -analyzeduration 20M -i udp://@ \-probesize 20M -analyzeduration 20M -i udp://@ -filter_complex "[0:v]fps=15,scale=320:240,setsar=1/1,setpts=PTS-STARTPTS[v0]; [1:v]fps=15,scale=320:240,setsar=1/1,setpts=PTS-STARTPTS[v1]; [v0][v1]concat=n=2:v=1:a=0 [v0] [v1]" -map "[v0]" -map "[v1]" -threads 0 -y kk.ts

Is it possible to apply the concat to real time streams, so we have a video with two programs as a result?

More information about the ffmpeg-user mailing list