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

Support for NFB (National Film Board of Canada) video subtitles #2866

Closed
fturco opened this issue May 7, 2014 · 7 comments
Closed

Support for NFB (National Film Board of Canada) video subtitles #2866

fturco opened this issue May 7, 2014 · 7 comments

Comments

@fturco
Copy link

@fturco fturco commented May 7, 2014

I successfully downloaded this video from the NFB (National Film Board of Canada), but after that I was unable to download the subtitles with --write-sub --skip-download. The command successfully exits, but no subtitles are saved. I'm using youtude-dl version 2014.05.05.

dstftw added a commit that referenced this issue May 8, 2014
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 8, 2014

Thanks for the report.
Unfortunately, NFB delivers subtitles embedded into RTMP stream thus making it impossible to download them as plain text.
However, you can now extract stream with subtitles by explicitly providing a proper format (e.g. for your link): youtube-dl https://www.nfb.ca/film/strangest_dream -f closeCaptioned-480p.
This will be available in the next release of youtube-dl.

@dstftw dstftw closed this May 8, 2014
@phihag
Copy link
Contributor

@phihag phihag commented May 13, 2014

Added in youtube-dl 2014.05.13. Type youtube-dl -U to update.

@fturco
Copy link
Author

@fturco fturco commented May 14, 2014

I just updated youtube-dl to version 2014.05.13, but I still can't download subtitles. I tried with both youtube-dl https://www.nfb.ca/film/strangest_dream -f closeCaptioned-480p and youtube-dl https://www.nfb.ca/film/strangest_dream -f closeCaptioned-480p --write-sub --skip-download. No subtitles are saved. Am I missing something?

@ghost
Copy link

@ghost ghost commented May 15, 2014

@fturco subtitles are hardcoded in the video.

@fturco
Copy link
Author

@fturco fturco commented May 15, 2014

@pulpe It's strange, as I just get the video without subtitles, not even hardcoded...

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 15, 2014

You can grep the file for onTextData to ensure if there are any captions embedded.

$ youtube-dl https://www.nfb.ca/film/strangest_dream -f closeCaptioned-480p
[nfb] strangest_dream: Downloading film page
[nfb] strangest_dream: Downloading player config XML
[download] Destination: The Strangest Dream-strangest_dream.mp4
[download]   1.1% of ~670.02MiB at 159.74KiB/s ETA 01:32:27^C
$ grep -a "onTextData" "The Strangest Dream-strangest_dream.mp4.part"
onTextDattrackid�text�%WOMAN
onTextDattrackid�text�&wanted to show the
onTextDattrackid�text��It's a place you only get to
@fturco
Copy link
Author

@fturco fturco commented May 15, 2014

Yes, I can now see subtitles with grep. But it seems to me that there are no timestamps, so I cannot copy and paste them to a valid .srt file.

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
3 participants
You can’t perform that action at this time.