Edit subtitles in your terminal instead of a text editor.
Project description
subtitle-editor
Basic usage:
# Works with srt files
subtitle-editor video.mp4 subtitles.srt
# Can take plaintext files as input
subtitle-editor video.mp4 subtitles.srt --input lyrics.txt
Setup (Mac OS)
Install dependencies
- Install Homebrew
- Install system dependencies (get a coffee while this runs)
brew install ffmpeg pyenv portaudio
Read the final output of this command and do any required follow-up steps. - Install python 3
pyenv install 3.7.11 # Or another python 3 version pyenv global 3.7.11
- Update pip (don't skip this)
pip install -U pip
Install subtitle-editor
pip install subtitle-editor
Using subtitle-editor
The following commands are available within subtitle-editor
Navigation
<tab>/←/→ Switch between start/end timestamps
↑/↓ Select a subtitle
=/+ Increase the selected timestamp by one frame / 1 sec
-/_ Decrease the selected timestamp by one frame / 1 sec
Playback
P Enter / leave playback mode
<space> In playback mode, set the current timestamp and move to the next one
u In playback mode, "undo" by moving back one timestamp (does not
actually undo the change)
p In standard mode, play the video between the start/end timestamps
of the current subtitle
Other
q Finish editing subtitles and output results
Ctrl + c Exit immediately without saving results
? Display help message
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subtitle-editor-0.2.2.tar.gz
(25.9 kB
view hashes)
Built Distribution
Close
Hashes for subtitle_editor-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6c9ecd3aa033cb19009aa29d5850283aec013da15faeb3487763fd79a23ad9 |
|
MD5 | 0081f35f842d837513a50ad6618017a0 |
|
BLAKE2b-256 | 146e91191663b2c7af24918c010bbb336f377950e047364c788ffd349b3b8ee0 |