GetSub is a tool written in Python to help you download subtitles in any language and sync automatically using Voice Activity Detection via py-webrtcvad.
Subtitle search utilizes the OpenSubtitleDownload.py script written by emericg to precisely identify your video files and download the correct subtitle. The subtitles search and download server is opensubtitles.org.
- python3+
- ffmpeg
- gcc
- pip
or if Docker is preferred:
git clone https://github.com/Derrick56007/getsub.git
cd getsub/
apt-get install -y gcc ffmpeg
pip install -r requirements.txt
Docker:
docker pull derrick56007/getsub:latest
python run.py files/$VIDEO_FILE.mp4 $LANG
Docker:
docker run -tiv /$VIDEO_DIR:/files derrick56007/getsub:latest /files/$VIDEO_FILE.mp4 $LANG
python run.py /Users/derrick/videos/Game.of.Thrones.S02E09.1080p.BluRay.x265.10bit.6CH.ReEnc-LUMI.mkv eng
Docker:
docker run -tiv /Users/derrick/videos:/files derrick56007/getsub:latest /files/Game.of.Thrones.S02E09.1080p.BluRay.x265.10bit.6CH.ReEnc-LUMI.mkv eng
This project would not be possible without the following libraries: