Video Clipper is a Python script that allows you to automatically segment videos into smaller clips of a specified duration. You can source videos directly from YouTube or use local files from your hard drive.
- YouTube Video Download: Easily download videos from YouTube by providing the video URL.
- Video Segmentation: Automatically segment videos into smaller clips of a specified duration.
- Local and YouTube Video Support: Source videos from YouTube or use local files from your hard drive.
-
Download or Identify Video: Start by either downloading a video from YouTube using its URL or identifying a video file on your hard drive that you'd like to segment.
-
Specify Clip Duration: Determine the duration of each clip segment in seconds. For instance, specifying a 3-minute duration will segment a 9-minute video into three 3-minute clips.
-
Run the Script: Execute the script with the necessary parameters to initiate the video segmentation process.
# Example usage
python video_clipper.py --source "path/to/local/video or YouTube URL" --clip-duration 180
Ensure you have Python 3.x installed on your system. You can download it from the Python official website.
-
Clone the Repository
Clone the repository to your local machine using the following command:
git clone https://github.com/millersartin/VideoButcher.git
-
Install Dependencies
pip install yt-dlp pip install python-ffmpeg