This script uses NLP to determine the 10 best topics from a podcast or long form video. Then based on these topics it cuts 30-60 second clips for TikTok, Instagram, or YouTube Shorts. You can even crop the video to 9:16 format and add captions if needed.
$ brew install ffmpeg
$ brew install imagemagick
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
This is the language library this speech to text uses. Download this Here
Once downloaded unzip in your project directory.
There are 4 flags
-vor-videois the video path. Only.movor.mp4-cor-cropcrops the video to 9:16 format, default isFalse-caor-captionsadds captions, default isFalse-clor-clipLengthis length of clip, default is30 seconds
Clips will be output in a directory with a unique ID i.e. c088af43-362b-4837-bf29-d9122008f457/clips
Example:
$ python main.py -v 1086final.mov -c True -ca True -cl 60