Skip to content

A Python program to cut segments of a video based on specified keywords using OpenAI Whisper.

License

Notifications You must be signed in to change notification settings

tracywong117/AI-Video-Segment-Cutter

Repository files navigation

AI Video Segment Cutter

Open In Colab

Video Segment Cutter is a program that allows you to cut segments of a video based on specified keywords. With this tool, you can extract specific sections of a video that contain the desired keywords, making it easier to analyze or highlight relevant content.

In this project, we use the Whisper base model to quickly generate subtitles for videos and cut them based on specific words. OpenAI's Whisper model is a state-of-the-art model that can automatically turn speech into text with really high accuracy.

How to run

  1. Prepare the video
  2. Install the dependencies
pip3 install -r requirements.txt
  1. Run
python3 ai-video-segment-cutter.py -i <path_to_input_video_file> -t <keyword>

About

A Python program to cut segments of a video based on specified keywords using OpenAI Whisper.

Topics

Resources

License

Stars

Watchers

Forks

Languages