[FFmpeg-user] ffmpeg play continuous loop!

Suri Shelvapille suri at baymicrosystems.com
Fri Nov 14 17:24:43 CET 2014

Dear Folks:

First of all, this is an awesome program!

I am using ffmpeg and ffplay combination to display a mosaic of 12 videos. I am using shortest=1 option to ffmpeg to stop all videos when the shortest video finishes. I need to play all the videos in a loop. Can you please suggest the correct way.

Here is the shortened command (for 2 videos) :
ffmpeg -i a1.avi -i a2.avi -filter_complex "nullsrc=size=1440x1080 [base];[0:v] setpts=PTS-STARTPTS, scale=480x270 [pos0];[1:v] setpts=PTS-STARTPTS, scale=480x270 [pos1];[base][pos0] overlay=shortest=1 [tmp1];[tmp1][pos1] overlay=shortest=1:x=480" -c:v libx264 -f avi - | ffplay -

many thanks,

More information about the ffmpeg-user mailing list