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.1.tar.gz
(25.8 kB
view details)
Built Distribution
File details
Details for the file subtitle-editor-0.2.1.tar.gz
.
File metadata
- Download URL: subtitle-editor-0.2.1.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0fca248104304eb6f4ce76b8a8f1dbc4b2b931c3f174da0a4eb69c1fe3de7a |
|
MD5 | eed8d08b88b8b61ce4eabfba85d2cded |
|
BLAKE2b-256 | 9510d0830d1d3913ecbd817bd7f597dc40c0dda82614b0be4f7aa22990567584 |
File details
Details for the file subtitle_editor-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: subtitle_editor-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8997323f7d81fc999dd70b0aa3563685f395b1361c7ed5c8467a26ab1c64e69d |
|
MD5 | 5f0c0c2c754c9eb77d562a7044580799 |
|
BLAKE2b-256 | 582ccafe158cc48a5da89900cb581105fd5a501b1a1971b6e1319aa6c4f98837 |