Skip to main content

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

Demo image

Setup (Mac OS)

Install dependencies

  1. Install Homebrew
  2. 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.
  3. Install python 3
    pyenv install 3.7.11  # Or another python 3 version
    pyenv global 3.7.11
    
  4. 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.1.1.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

subtitle_editor-0.1.1-py2.py3-none-any.whl (26.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file subtitle-editor-0.1.1.tar.gz.

File metadata

  • Download URL: subtitle-editor-0.1.1.tar.gz
  • Upload date:
  • Size: 25.5 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

Hashes for subtitle-editor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9303793a94af2923840b75a97e24c69582b718a850987d516e0264bc20d8a3cd
MD5 a9843f21b8c9d74f9cf7d503d7b08c3f
BLAKE2b-256 8c6d1fa4e51a8b61d728b09d33aeda3c12821047cc6fd65f320c1aad2ee86c72

See more details on using hashes here.

File details

Details for the file subtitle_editor-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: subtitle_editor-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.4 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

Hashes for subtitle_editor-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ec631eeec536a947b94967eaa2f4e486951377c5f2dd8d4627e0f8d49a43af6
MD5 d0ec85e635f7aaa3acdf58aaff1c1cdc
BLAKE2b-256 73249a8b1797643e7833ad6c0f16cbce8a47758649590f12a4adcd1bde98733c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page