Hello everyone,
I just downloaded and installed Clever ffmpeg GUI. What is the easiest way to loop/extend one video to a set time duration?
For ex: If I wanted to make a 5 minute video loop for 3 hours so it would be a 3 hour long video. How would I loop/extend that 5 minute video 36 times with lossless quality?
Thanks for everyone's time and I hope this post finds everyone well.
+ Reply to Thread
Results 1 to 8 of 8
-
-
With the command line:
Code:ffmpeg -stream_loop 36 -i input.mp4 -c copy output.mp4
-
Thank you very much jagabo. That worked. Do you know how I would create a fade out offset and a fade in offset of a looped video?
For example, in Vegas Pro, I can copy and paste the same video in a project (looping). So I have the same video back to back. I move the 2nd copied video backwards a bit so it's about 2-3 seconds on top of the first video and I do a crossfade from one to another. This works really well. Is there a way to do this in ffmpeg?
Thanks again for your time. I really appreciate it
-
Loop with crossfade is much harder. I might have time to figure it out this weekend.
-
You probably need a full video editor for cross fade transition, which ffmpeg is not.
but you can easily do start and end video and audio fades easily in ffmpeg or easier
yet in clever FFmpeg-GUI.
Edit #1
-------
Ex: [Radial] Cross fade transition of videos 'in_1' & 'in_2' into 'out.mp4'.
Code:ffmpeg -i in_1.mp4 -i in_2.mp4 -filter_complex "[0:v][1:v]xfade=transition=radial:duration=3[out_v]" -map "[out_v]" -map 0:a out.mp4
Last edited by videoAI; 15th Nov 2025 at 19:03.
There is nothing wrong .. with my environment -
Here's an AviSynth script that shows the general concept:
The resulting video doesn't fade in at the start or fade out at the end. But there is a 2 second crossfade at each internal transition from the end of one clip and the start of the next. Here there are only 5 repeats total. And there is a 4 second loss from the crossfades (each loses 1 second).Code:# starting with a 1500 frame, 25 fps clip, and using a 2 second crossfade start = Dissolve(last, last, 50).Trim(0, 1499) middle = Dissolve(last, last, 50).Dissolve(last, 50).Trim(1500, 1500+1449) end = Dissolve(last, last, 50).Trim(1500, 0) start+middle+middle+middle+end
You can easily adapt this to your video.Last edited by jagabo; 18th Nov 2025 at 18:21.
Similar Threads
-
Question how to add time duration for ffmpeg record/play
By jimdagys in forum AudioReplies: 3Last Post: 26th Mar 2025, 07:55 -
Why can no one post a single accurate set of instructions!?!?!?!?!?
By armyofquad in forum Video ConversionReplies: 3Last Post: 1st Jul 2024, 22:09 -
how to set a specific duration for an avisynth script?
By marcorocchini in forum Newbie / General discussionsReplies: 4Last Post: 8th Sep 2023, 23:08 -
set download start time in streamlink
By filipino in forum Video Streaming DownloadingReplies: 2Last Post: 19th Mar 2022, 04:24 -
automatic preset duration time for capturing say 3 hours for vhs
By devdev in forum Capturing and VCRReplies: 4Last Post: 11th Jun 2021, 14:18


Quote
