Changes between Version 1 and Version 2 of HowToConvertYouTubeSBVtoSRT


Ignore:
Timestamp:
May 21, 2019, 9:02:41 PM (7 years ago)
Author:
omniplex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToConvertYouTubeSBVtoSRT

    v1 v2  
    55
    66[https://support.google.com/youtube/answer/2734698?hl=en&ref_topic=7296214 YouTube] supports only the basic features of SBV (SuBView) and SRT (!SubRipText) closed captions. Notably users can download existing closed captions (including auto-generated subtitles) as SBV, convert them to SRT supported by, e.g., MPlayer, edit the subtitles in a text editor such as `vim` or `notepad` (hint: !YouTube wants UTF-8), and upload the fixed version to !YouTube, overriding the old subtitles for the given language.
     7
     8As far as !YouTube supports these two formats (among others) they are very similar:
     9
     10The SRT captions start with a counter (increasing numbers), followed by the ''from''` --> `''to'' timestamps, text (one or two lines), and an empty line.
     11
     12The SBV captions have no counter and use periods as decimal points in their ''from''`,`''to'' timestamps.
     13
     14SRT timestamps have the form `hh`'''`:`'''`mm`'''`:`'''`ss`'''`,`'''`nnn`, SBV timestamps use `h`'''`:`'''`mm`'''`:`'''`ss`'''`.`'''`nnn`.
     15
     16!YouTube is reasonably smart enough to detect and report simple errors, but you should make sure that timestamps do not overlap, i.e., the earliest ''from'' in the next caption can be the same as the ''to'' end of the last caption. Obviously the duration should be not too short, and it cannot be "negative" with a ''from'' later than its corresponding ''to''.