A simple python script who can split a video file per duration or weight
- Jupyter Notebook 61.2%
- Python 38.8%
| README.md | ||
| split-video.py | ||
| SplitVideo.ipynb | ||
Split Video
A simple vibecoded Python script to split a video file into multiple parts based on duration or maximum file size. It uses MoviePy to load and export video segments.
Features
- Split by duration in minutes
- Split by estimated size in MB
- Automatic segment numbering
Requirements
- Python 3.13+
- moviepy
- ffmpeg installed and available in your system PATH
Usage
If you want to split in duration:
python split-video.py your_video_file D --time=your_desidered_duration
If you want to split in weight:
python split-video.py your_video_file W --weight=your_desidered_weight
If you don't provide neither --time and --weight the default parameters (200 MB and 60 minutes) are setted because they are the limit of NotebookLM and Gemini.
I have a big video and shitty computer
You can dowload only SpliyVideo.ipynb and upload that on Google Colab. This python code is slighty different so you can resume the video spliting if colab limit you.