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

Uploaded Source

Built Distribution

subtitle_editor-0.2.2-py2.py3-none-any.whl (26.9 kB view hashes)

Uploaded Python 2 Python 3

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