I used the following line to create a mosaic video output with four videos each starting at a particular location and time. Following is the line of code I used
ffmpeg -i lead_1.mp4 -i lead_2.mp4 -i lead_3.mp4 -i lead_4.mp4
-filter_complex
"color=s=1280x720:c=black [base];
[0:v] setpts=PTS-STARTPTS, scale= 640x360 [upperleft1];
[1:v] setpts=PTS+35/TB, scale=640x360 [lowerright1];
[2:v] setpts=PTS+87/TB, scale=640x360 [upperleft2];
[3:v] setpts=PTS+183/TB, scale=640x360 [lowerright2];
[base][upperleft1] overlay=1 [tmp1];
[tmp1][lowerright1] overlay=1:x=640:y=360 [tmp2];
[tmp2] [upperleft2] overlay=1 [tmp3];
[tmp3][lowerright2] overlay=1:x=640:y=360"
-c:v libx264 lead_1_2_3_4.mp4
So the output file does not contain the audio streams from all the videos. I am new to FFMPEG so can someone suggest how do I get even the audio streams of all the input files in the output?