This Python script allows you to split a video into multiple parts and then join them back together. It was created with the intention of handling long videos, splitting them without loss of quality. In addition, it offers several options to customize the process, including changing the video format, time interval, output directory, and video ratio. You can choose standard ratios for TikTok, YouTube, and Instagram.
Split Videos: You can drag and drop a video file into the CLI and the script will split the video into 10-second segments (this can be changed through the menu). The video segments will be saved in a folder on the desktop. Join Videos: The script can also join multiple video segments into a single video. Customization: You can customize the video format, the time interval for splitting, the output directory, and the video ratio. Standard ratios for TikTok, YouTube, and Instagram are available.
- TikTok: 9:16
- YouTube: 16:9
- Instagram (square): 1.1
To use this script, you will need to install some dependencies. Here are the steps to do this:
pip install argparse os numpy moviepy pillow colorama
First, make sure you have Python installed on your system. If not, you can download it here. https://www.python.org/downloads/
Next, you will need to install some Python libraries. You can do this using the following command in your terminal: to run the program, you just need to click on the script and it will automatically open the Command Prompt (CLI). Alternatively, you can use python3 script.py if you prefer.