-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Downloading youtube closed captions as video subtitles #90
Comments
gcap seems not to work anymore, or at least it is not working for me. I think it is getting the same parsing problems some other youtube interface software had. |
youtube's subtitles format doesn't seem to complicated. Unfortunately, gcap is GPL-licensed, so we can't translate their source code from Perl to Python. |
I'm not really sure that the (re)implementation of what gcap does needs to be a clean-room implementation to avoid problems with license differences. Does it? I am motivated to look at their implementation and see what we can do to support those, perhaps in an extra information extractor... I don't know what command line option to assign to it, though. :) Regards. |
I also would love to see this feature. I often look at Japanese videos and ripping the Japanese videos without their subtitles makes the videos unable to be shown to anyone else, which I do quite often. (I can understand Japanese to some extent.) |
On Oct 25 2011, Ergzay wrote:
As soon as @phihag commits the fixes to get Facebook videos working again I No promises, besides the fact that I will try to get this to work (as I am |
I needed the subtitles for some videos so I have wrotten a small python class addressing this |
@lasupermarmota Just to clarify: Are you putting that project into the public domain? If so, we'd be happy to integrate the code into youtube-dl. |
Yes, you are free to use it modified and do whatever you like with the code. 2011/10/27 Philipp Hagemeister <
|
@lasupermarmota: Excellent! |
I'd really love to see this in youtube-dl, is there any progress on this? Thanks! |
Well, I got tired of waiting, so I wrote a downloader + parser for you guys. This one converts youtube annotations to ASS format, with proper font colour, embarrassing bgcolour interpretation, and hacky text positioning. https://github.com/nirbheek/youtube-ass I'm a bit low on bandwidth, so I only tested it with this video: https://www.youtube.com/watch?v=4Pt0f7j2kS0 |
How to use it @nirbheek? |
I'm on it. I hope to have it ready to get merged in a couple of days. |
Hi @ThiagoF, @nirbheek and others. On Mar 11 2012, thiagof wrote:
An "emergency solution" would be to use gcap while this is not yet merged. That being said, this week (probably Wed or so) I am planning on releasing a Regards, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
@FiloSottile Feel free to create a new branch and ask a pull request from there. |
This should work now with Filipo's excellent contribution, |
Hmmm. Sorry, but this implementation is quite sub-optimal. I chose ASS instead of SRT specifically because SRTs cause a loss of information. In youtube annotations, you can have multiple captions in various places on the screen (often pointing at specific things), and they have colour information, and can also move with time. |
@nirbheek From what I can tell, the bits that got merged cover youtube closed captions, which seems somewhat orthogonal to your work on annotations. Also, I don't think youtube closed captions support any of the features you describe, so most subtitle formats can represent them without loss of information. I'd still love to see your annotation support merged as well, and with both present, it would make sense to download them into a single subtitle file and format to make it easy for a player to display both. |
@nirbheek Might I suggest opening a separate pull request for your annotation support, ideally including support for downloading and converting captions, annotations, or both? |
@joshtriplett ah I see what you mean. Sorry about the confusion. :) Should I open a new issue for that or is there one already open? Thanks! |
I haven't had the time to work on a pull request yet, I'll try to find some this week or the next. |
Awesome! great job |
How we can we ignore the warning? Why we need to exit the whole app in case of missing subtitles? |
@nirbheek Open a new issue for that with a link to the video/playlist that fails and with the output when running youtube-dl with the |
Is it possible to implement embedded closed-captions in mp4 files? Another thing: should the annotations and closed captions/subtitles be handled differently? |
@MaddTheSane open new issues for the requests |
This line
doesn't download the spanish subtitles though the video has them. Any ideas why? |
Try to download es-ES
|
Thank you very much! that was really useful. Sorry for n00b. |
I was also searching this and I found a great solution....you can download the video + subtitle language you want as well... check the following link.... **[Edit by @phihag: Removed link to closed-source software] |
@coolpra This is an issue tracker for youtube-dl, a software which does allow you to download subtitles. Please refrain from linking to irrelevant software and discussing non-youtube-dl related topics here. |
Edited by @phihag: Snip spam. |
I recently discovered gcap, which can download youtube closed captions as a .srt subtitle. I'd love to see that functionality integrated into youtube-dl.
The text was updated successfully, but these errors were encountered: