- 🗂️ Table of Contents
- 📋 About
- 🛠️ Tech Stack
- 📁 Project Structure
- 🚀 Getting Started
- 👥 Contributors
- 📜 License
Video Splitter is a Python utility that allows you to split a video into multiple segments based on timecodes defined in a CSV file. Perfect for extracting specific scenes, creating compilations, or preparing video sets for editing.
|
Python |
Pandas |
MoviePy |
- 🎬 MoviePy for video processing
- 📊 Pandas for CSV handling
- ⏱️ Built-in time conversion utilities
- 🎯 Command-line interface
VideoSplitter/
├── main.py # Main application script
├── requirements.txt # Python dependencies
├── public/ # Public assets
└── sets_output/ # Output directory (auto-created)
- Python 3.8 or higher
-
Clone the Repository
git clone https://github.com/yourusername/video-splitter cd video-splitter -
Create and Activate Virtual Environment
# Create virtual environment python -m venv venv # Activate on Windows venv\Scripts\activate # Activate on macOS/Linux source venv/bin/activate
-
Install Dependencies
pip install -r requirements.txt
-
Prepare a CSV file with the following columns:
set_name: Name for the output filestart1,end1,start2,end2, etc.: Timecodes in HH:MM:SS format
-
Run the script:
python main.py path/to/video.mp4 path/to/timecodes.csv
-
Find your split videos in the
sets_outputdirectory
|
tomStory9 |
This project is licensed under the MIT License.