From 4f9d37931bc1e518c14660f67bf8d8a4d191c923 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 23 Nov 2022 09:16:24 -0500 Subject: add mpv sub-file argument --- captioning.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'captioning.md') diff --git a/captioning.md b/captioning.md index f0692611..d7d0fdab 100644 --- a/captioning.md +++ b/captioning.md @@ -69,10 +69,19 @@ During questions and answers, please introduce the question with a `[question]:` tag. When the speaker answers, use a `[speaker-name]:` tag to make clear who is talking. +# Playing your subtitles together with the video + +To load a specific subtitle file in MPV, use the `--sub-file=` or +`--sub-files=` command-line argument. + +If you're using subed, the video should autoplay if it's named the +same as your subtitle file. If not, you can use `C-c C-v` +(`subed-mpv-play-from-file`) to load the video file. You can toggle looping over the current subtitle with `C-c C-l` (`subed-toggle-loop-over-current-subtitle`), synchronizing player to point with `C-c ,` (`subed-toggle-sync-player-to-point`), and synchronizing point to player with `C-c .` (`subed-toggle-sync-point-to-player`). + # Editing autogenerated captions If you want to take advantage of the autogenerated captions and the -word-level timing data from YouTube, you can start with the VTT file +word-level timing data from YouTube or Torchaudio, you can start with the VTT file for the video you want, then use `my-caption-load-word-data` from to load the srv2 file (also attached), and then use `my-caption-split` to split using the @@ -141,10 +150,17 @@ What is BinDat? For an example of how chapter markers allow people to quickly navigate videos, see . -If you're using subed, you can make chapter markers by making a copy -of your WebVTT file and then using ~subed-merge-dwim~ (bound to ~M-m~ -by default) on a region including the subtitles that you want to -merge. You can also use ~subed-set-subtitle-text~ or +If you're using subed, you can make chapter markers by adding NOTE +comments with the chapter headings before the subtitles in the +chapter. Then we can use +`emacsconf-subed-make-chapter-file-based-on-comments` from +https://git.emacsconf.org/emacsconf-el/tree/emacsconf-subed.el to +create the chapter file. + +Alternatively, you can make chapter markers by making a copy of your +WebVTT file and then using ~subed-merge-dwim~ (bound to ~M-m~ by +default) on a region including the subtitles that you want to merge. +You can also use ~subed-set-subtitle-text~ or ~subed-merge-region-and-set-text~ - if you can think of good keybindings for those, please suggest them! -- cgit v1.2.3