This script allows you to combine multiple videos into a single video using FFmpeg and Python.
- Python
- FFmpeg
- Prompt_Toolkit
- Used to show file path options, installed with
pip install prompt_toolkit
- If you do not import it, the script will still run.
- Used to show file path options, installed with
- Place the videos you wish to combine in a folder.
- Run the python script with
python combine_videos.py
. - When prompted, provide the folder path with the videos you wish to combine and the file path for the combined video.
Windows:
python .\combine_videos.py
Folder with videos to combine: sampleVideos
Combined video file path (including filename and extension): outputVideos/combinedVideo.mkv
macOS & Linux:
python3 combine_videos.py
Folder with videos to combine: sampleVideos
Combined video file path (including filename and extension): outputVideos/combinedVideo.mkv