A python script that takes a video file and attaches it to itself x no. of times essentially looping it.
-
Requirements:
- FFmpeg is needed install that here if you don't have it: https://ffmpeg.org/download.html
- Ensure
ffmpegandffprobeare accessible via command line (ffmpeg -versionto check)
-
Steps:
-
Download/copy the python script, saving it in a dedicated folder is recommended.
-
In that folder add the video file, naming the video file as video.mp4 is recommended.
-
Open cmd/terminal in the folder and use:
python Video_looper.py -
It'll ask you the number of time you'd like to loop, enter it.
-
It'll show you size and the total time of the output video.
-
Say Y if you accept and N if you don't.
-
Now let it process.
-
Once done your folder will have now output_video.mp4.
-
Note: Size displayed is the estimated size of the output file, actual file size may be different (mostly less than the estimated value), due to ffmpeg compressing the final output video file.