Skip to content

Instantly share code, notes, and snippets.

@shubhamnikam
Created October 22, 2023 14:58
Show Gist options
  • Save shubhamnikam/ae25de4aab879fdb60951592f129f644 to your computer and use it in GitHub Desktop.
Save shubhamnikam/ae25de4aab879fdb60951592f129f644 to your computer and use it in GitHub Desktop.
create auto subtitle from any videos using openai-whisper
### Subtitle-Creator
```bash
# docker create whisper
docker build -t whisper-raw .
# create sample directory locally and copy any video with any lang
C:\Users\sn_work\Desktop\sample\a.mp4
# docker run whisper
docker run -it -v C:\Users\sn_work\Desktop\sample:/home/videos/ whisper-raw
# in docker bash goto /home/videos & use following command to translate
whisper a1.mp4 --language Hindi --task translate
```
FROM ubuntu:latest
RUN apt update && apt install ffmpeg -y
RUN apt install python3 -y && apt install python3-pip -y
RUN pip install -U openai-whisper
RUN pip install setuptools-rust
ENTRYPOINT [ "bash" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment