Generates VTT files for a video using FFMPEG and Azure Cognitive Services.
- ffmpeg
- Linux, use your package manager
- Mac, can use brew
- Windows, can use chocolatey
pip3 install ffmpeg-python
pip3 install azure-cognitiveservices-speech
- Azure Cognitive Services Speech
Copy config.example.yml to config.yml and fill with your Azure Information:
key: azurekey
region: azureregion
./vtt-gen.py --input path/to/video --output path/to/subtiles.vtt
VTT file tested with VLC and GNOME Videos
- Generation is automatic, so please proofread the output
- Check the file output is valid using Live WebVTT Validator
The output of this script is very basic, but can be customized, please see the following links for working with the vtt file.
Links to web pages for helping upload caption files:
- Vimeo
- YouTube
- Facebook - Requires SRT file, can use amorvincitomnia/vtt-to-srt.py or another tool