Install the following dependencies
brew install pipenv
brew install ffmpeg
pipenv install --python 3.10
Activate a pipenv shell and make sure the following python packages are installed
pipenv shell --python 3.10
pip3 install ffmpeg-python
pip3 install git+https://github.com/openai/whisper.git
pip3 install --pre --force-reinstall torch --index-url https://download.pytorch.org/whl/nightly/cpu
pip3 install --upgrade pip setuptools
Setup input/output directories
mkdir -p input
mkdir -p output
Move files you want to process to a directory called "input"
Copy and paste commands from the vprocess.sh file into your pipenv shell
I ran this on a 15 minute video file and it took about 2 hours to process.
Reference defaults and command line option settings: https://github.com/openai/whisper/blob/main/whisper/transcribe.py
Use caffeinate to set assertions to prevent sleeping during execution of a command
Change system settings to prevent system sleep, then reset the setting afterwards
sudo systemsetup -getcomputersleep
sudo systemsetup -setcomputersleep Never
sudo systemsetup -setcomputersleep 60
To Alex for figuring all this out in the first place and writing the initial script