How to connect video input video x times using FFMPEG?

I want to loop the same video 4 times and output as video using ffmpeg. I am creating such code in ffmpeg.

ffmpeg -loop 4 -i input.mp4 -c copy output.mp4

but when I run it, it throws such an error.

Option Loop Not Found.

how to do this with our mistake. Please help me

+4
source share
1 answer

In recent versions, this

ffmpeg -stream_loop 4 -i input.mp4 -c copy output.mp4

Due to an error, the above does not work with MP4. But if you wrap MKV, this works for me.

ffmpeg -i input.mp4 -c copy output.mkv

then

ffmpeg -stream_loop 4 -i output.mkv -c copy output.mp4
+2
source

All Articles