Created
October 22, 2023 14:58
-
-
Save shubhamnikam/ae25de4aab879fdb60951592f129f644 to your computer and use it in GitHub Desktop.
create auto subtitle from any videos using openai-whisper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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