Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFmpeg Repeat/loop video two times

Tags:

video

ffmpeg

Hi I would like to repeat the source video n times.

For example,
If the input source file duration is 5 seconds and repeat 4 times then final video should 20 seconds.

Please specify the command for this
ffmpeg -i D:\21-03-2018\15271618235b06a3df9d5cb.mp4 -loop 4 D:\21-03-2018\output.mp4

like image 959
Praveen Tamil Avatar asked Jul 30 '26 00:07

Praveen Tamil


1 Answers

The quickest way is via the stream_loop option,

ffmpeg -stream_loop 3 -i D:\21-03-2018\15271618235b06a3df9d5cb.mp4 -c copy D:\21-03-2018\output.mp4
like image 132
Gyan Avatar answered Aug 01 '26 12:08

Gyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!