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.
- Prepare the video
- Install the dependencies
pip3 install -r requirements.txt
- Run
python3 ai-video-segment-cutter.py -i <path_to_input_video_file> -t <keyword>