How to Loop Input video x number of time using FFMPEG? -


i want loop same video 4 times , output video using ffmpeg. create code in ffmpeg.

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

but when run it give error this.

option loop not found. 

how withour error. please me

in recent versions, it's

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

due bug, above not work mp4s. if wrap mkv, works me.

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

then,

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

Comments