Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

closed captions CBS

(http://stream-recorder.com/forum/showthread.php?t=22360)

julie.bella 09-07-2016 10:02 AM

closed captions CBS


 
Hi everyone,

Can you tell me how i can download subtitles (closed captions) from CBS please?
I want to learn english
http://www.cbs.com/
http://www.cbs.com/shows/late-late-s...dgar-ramirez-/


Thank you so much

Julie

julie.bella 09-07-2016 03:30 PM

Re: closed captions CBS


 
Please help

ehurdler 09-07-2016 07:07 PM

Re: closed captions CBS


 
Are you capturing the stream? Because if you are just watching this on the web page you can turn on CC. I am sure you knew that, I am just making sure. If you are capturing the stream, I figured out how to get and convert the CC file .xml and convert to .srt.

The quick answer would be, using AdBlock Plus. Open Blockable Items. Search for the .xml In the case of the video you posted I found
Code:

http://www.cbsstatic.com/closedcaption/Current/LateNight/DFXP/CBS_CORDEN_0226_CONTENT_CIAN_caption_DFXP.xml
Copy the url for this .xml, paste into new tab (firefox). When the .xml file/code is showing in the browser window. Go to File -> Save Page As... Format Web, xml Only.

Once you have this .xml file saved on your machine. I renamed it to corden.xml (simply to make it easier).

I now followed the instructions here:
https://github.com/isaacbernat/netflix-to-srt

Code:

Convert them into .srt

    Get python (tested under both 2.7 and 3.3). If you have mac or linux you may skip this step
    Clone this repository or download to_srt.py
    Run the script in the terminal (python to_srt.py)
        Input and output files default to sample.xml and sample.xml.srt in the same directory this is run
        Use -i INPUT_PATH and -o OUTPUT_PATH for custom file locations
    Enjoy!

I have a Macintosh, and already have Python setup, etc. So I simply ran code:
Code:

python to_srt.py -i corden.xml -o corden.srt
This gave me the .srt file for the video you posted. Now you can use it however you want. I don't need the subtitles and was just curious myself. This all worked for me. But I had to merge the video and .srt file together to get the subtitles to work. I was unable to load video in vlc and add the subtitle track. Just didn't work for me. But using mkvtoolnix and merging together resulted in a video file now with full working subtitles.

Good luck!

julie.bella 09-08-2016 05:49 AM

Re: closed captions CBS


 
Thank you very much Ehurdler :)
this is exactly what i was looking for.
I know that i can turn on the subtitles when the video is running, the problem is that there is a gap between the subtitles and the audio.
The subtitles appear earlier or later soemtimes, it's hard to follow

Julie


All times are GMT -6. The time now is 10:52 PM.