In my scenario, I would like to trim the source video and loop it for specified times. And below is my code
ffmpeg -i source.mp4 -filter_complex "[0:v]trim=start=6:end=46,loop=5[vf];[0:a]atrim=start=6:end=46,aloop=5[af]" -map "[vf]" -map "[af]" output.mp4 -y
For this I have to get 200 seconds video as a output.mp4. But I got video with 40 seconds duration.