Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support downloading Scenarist and TTML captions #3432

Closed
Nii-90 opened this issue Aug 3, 2014 · 2 comments
Closed

Feature request: Support downloading Scenarist and TTML captions #3432

Nii-90 opened this issue Aug 3, 2014 · 2 comments
Labels

Comments

@Nii-90
Copy link
Contributor

@Nii-90 Nii-90 commented Aug 3, 2014

I don't know if this is a globally-set option or needs to be added per-site, but I've currently seen it on Comedy Central.

Even though the 400 Request error on issue #3364 is still a problem for atmidnight and such (if the RTMP workaround isn't applicable), I noticed that subtitles were included in the segment pages output by the --write-pages option, but that these are not saved by youtube-dl.

The two subtitle formats it carries are Scenarist's Closed Caption format (.scc) and the XML-based TTML format (.xml).

There doesn't seem to be any obfuscating of the URLs, as I was able to grab both of the files with a plain invocation of wget. It'd just be kind of a burden to have to parse the sub locations out of the *.dump files and download them separately.

While I'm not currently aware of any support for these formats in VSFilter, et al., there are utilities that can convert them to SRT or ASS, which would make them useful to save if the user requests subtitles be saved.

For instance, this is how they show up in the segment pages:

<?xml version="1.0" encoding="UTF-8" ?> 
<package version="1.7.1">
...snip...
      <transcript kind="captions" srclang="en" label="English">
        <typographic format="cea-608" src="http://a6.akadl.mtvnservices.com/9950/mtvnorigin/gsp.comedystor/com/at_midnight/Season_1/episode_01092/am_01092_ex_act1.scc"/>
        <typographic format="ttml" src="http://a6.akadl.mtvnservices.com/9950/mtvnorigin/gsp.comedystor/com/at_midnight/Season_1/episode_01092/am_01092_ex_act1.dfxp.xml"/>
      </transcript>
...snip...
  </video>
</package>
<!-- feeds/sync/mediagen -->
@jaimeMF jaimeMF added the request label Aug 4, 2014
yan12125 added a commit that referenced this issue Apr 25, 2015
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 25, 2015

I've added an experimental implementation in bf6427d. Now TTML/dfxp subtitles are supported.

@yan12125 yan12125 closed this Apr 25, 2015
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 26, 2015

This has been implemented in youtube-dl 2015.04.26. See our FAQ if you have problems updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.