Skip to content

sachac/subed-waveform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

subed-waveform

This package uses the FFMPEG command-line tool to display waveforms next to the current subtitle in a subed buffer. This can be a handy way to fine-tune the start and stop times of a subtitle.

subed.el is not yet available as a package, but can be downloaded from https://github.com/rndusr/subed . It supports SRT and WebVTT files.

If images are not displayed, you may want to make sure max-image-size is set to a value that allows short, wide images. The following code:

(add-hook 'subed-mode (lambda () (setq-local max-image-size nil)))

may do the trick.

waveform.png

mouse-1Left-clickset the subtitle start time
mouse-2Middle-clickjump to that position in MPV and play a brief sample
mouse-3Right-clickset the subtitle stop time
S-mouse-1Shift-left-clickextend the subtitle start time by subed-milliseconds-adjust
S-drag-mouse-1Drag-left-clickextend the subtitle start time based on distance dragged
C-mouse-1Ctrl-left-clickset the subtitle start time and copy it to the stop time of the previous subtitle
S-mouse-3Shift-right-clickextend the subtitle stop time by subed-milliseconds-adjust
S-drag-mouse-3Drag-right-clickextend the subtitle stop time based on distance dragged
C-mouse-3Ctrl-right-clickset the subtitle stop time and copy it to the start time of the next subtitle

The copied start or end times respect subed-subtitle-spacing.

If the images are not displayed properly, check that max-image-size is set to nil.

About

Minor mode for displaying the waveform for the current subtitle in an Emacs subed-mode buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published