Skip to content

Instantly share code, notes, and snippets.

@jdmichaud
Created March 28, 2024 18:39
Show Gist options
  • Save jdmichaud/5d9627d9bad96cd206ef36d58ffd813b to your computer and use it in GitHub Desktop.
Save jdmichaud/5d9627d9bad96cd206ef36d58ffd813b to your computer and use it in GitHub Desktop.
Add subtitles to a video
cd /tmp && \
  mkdir auto-subtitle && cd auto-subtitle && \
  python3 -mvenv venv && \
  source venv/bin/activate && \
  pip install git+https://github.com/m1guelpf/auto-subtitle.git && \
  pip install ffmpeg-python && \
  python3 auto_subtitle /path/to/video.mp4 -o subtitled/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment