Sunday, November 02, 2014

How to Extract Subtitles from a YouTube Video

Enter Your YouTube Video-ID: (example Video-ID)

You can even develop your own solution using the details at https://developers.google.com/youtube/2.0/developers_guide_protocol_captions?hl=en

Some more options are provided below.

Download subtiles in .srt format: http://keepsubs.com/

To view the subtitles in browser, use this link - http://video.google.com/timedtext?lang=en&v=VIDEO-ID Replace the VIDEO-ID with actual video id. For exmaple - http://video.google.com/timedtext?lang=en&v=uW-O6Th5Z9Q This link shows the subtitles in XML format with time stamp. To get rid of the time stamps and just have the plain transcript:

  1. Open up Microsoft Excel
  2. Copy paste the subtitles inside one cell
  3. Press Ctrl+H
  4. In the Replace dialogue box
    1. Type <*> in the Find What text box 
    2. Leave the Replace With  text box  blank
    3. Click Replace All. 
This will remove all XML tags from the original text.

No comments: