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.2.3.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

subtitle_editor-0.2.3-py2.py3-none-any.whl (26.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: subtitle-editor-0.2.3.tar.gz
  • Upload date:
  • Size: 25.9 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.2.3.tar.gz
Algorithm Hash digest
SHA256 0386d40d6f97680956910ac34f688274814055eccff2a79cd5f3107eaa537c18
MD5 471736e3ee1cf6d8e80704747246bc32
BLAKE2b-256 83975ef51b9406dd7800aff446e6c9a44fab6ba3b795fb700e2ab9be40d9e54d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: subtitle_editor-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.9 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.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ba57ef9de739e18fd1be02405dcb4267cb58875ef3063bf5f6b9f6eb32aa1c1
MD5 89d40845cc385f04b8a6aa1d0e777371
BLAKE2b-256 cde95eba1bda96a15bb35cbdd8ed48adf1dcc8a39e4471b16aed04766852c656

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