question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CBC] not download CLOSED-CAPTIONS subtitles

See original GitHub issue

Checklist

Region

Canada

Description

It has captions on website (English subtitles), but YT DLP don’t see them and don’t download them. There is no URI attribute in m3u8 file, captions are marked as CLOSED-CAPTIONS

#EXT-X-MEDIA:TYPE=CLOSED-CAPTIONS,GROUP-ID="CC",LANGUAGE="en",NAME="English",DEFAULT=YES,AUTOSELECT=YES,INSTREAM-ID="CC1"
#EXT-X-STREAM-INF:BANDWIDTH=2767793,RESOLUTION=1280x720,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="audio",CLOSED-CAPTIONS="CC"

Maybe it could be related to some another extractor: https://github.com/yt-dlp/yt-dlp/pull/1980/commits/f3fa3e1404cade685373e1c84df7edc1415b06d5 ?

Verbose log

[debug] Command-line config: ['-vU', 'https://gem.cbc.ca/media/absolutely-canadian/s10', '--list-subs']
[debug] Encodings: locale cp1250, fs utf-8, out utf-8, err utf-8, pref cp1250
[debug] yt-dlp version 2022.02.04 [c1653e9ef] (win_exe)
[debug] Python version 3.10.1 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] exe versions: ffmpeg N-104959-gfa2e460f63-20211221 (setts), ffprobe N-104959-gfa2e460f63-20211221
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [gem.cbc.ca:playlist] Extracting URL: https://gem.cbc.ca/media/absolutely-canadian/s10
[gem.cbc.ca:playlist] absolutely-canadian/s10: Downloading JSON metadata
[download] Downloading playlist: Season 10
[gem.cbc.ca:playlist] playlist Season 10: Collected 1 videos; downloading 1 of them
[download] Downloading video 1 of 1
[debug] Using fake IP 99.255.78.80 (CA) as X-Forwarded-For
[debug] [gem.cbc.ca] Extracting URL: https://gem.cbc.ca/media/absolutely-canadian/s10e01
[gem.cbc.ca] absolutely-canadian/s10e01: Downloading JSON metadata
[gem.cbc.ca] absolutely-canadian/s10e01: Downloading JSON metadata
[gem.cbc.ca] absolutely-canadian/s10e01: Downloading m3u8 information
[gem.cbc.ca] absolutely-canadian/s10e01: Downloading secret XML
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
absolutely-canadian/s10e01 has no subtitles
[download] Finished downloading playlist: Season 10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, May 28, 2022

Being useful does not mean it is in scope of the program. yt-dlp doesn’t even “know” that there are subs in the video till after it is downloaded. So even if this is implemented, it will just have to blindly call ffmpeg on the downloaded file. You can just do that using --exec instead. So I don’t think this is a compelling enough reason to add an entire postprocessor

0reactions
mtrakalcommented, May 30, 2022

If someone will need to extract subtitles, command for ffmepg which works for CBC: ffmpeg -f lavfi -i movie="input_file.mp4"[out+subcc] -map 0:1 extracted_subtitles.srt

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable or disable closed captioning on Gem
Tap this icon and select English CC from the Subtitles section to enable captioning, and Off to disable it.
Read more >
Subtitles on CBC.ca - VideoHelp Forum
I've been trying for a couple of days now, to download subtitles from cbc.ca (Murdoch Mysteries). Cannot find embedded srt and the only...
Read more >
How to Manage Subtitles for Paramount+ (All Major Devices)
1. Launch Paramount+, find the content you’d like to watch, and play it. While the stream is on, press the pause or menu...
Read more >
How to download subtitles from any streaming or TV website
This video will teach you how to download closed captions or subtitles from streaming or TV websites like ITV, CH4, CBS, NBC, CW,...
Read more >
CBC captioning errors and omissions: An ongoing list (Joe Clark
2008.08.09 18:50: “Closed captioning is brought to you by Aquafina+ vitamin-enhanced water” ... He is subtitled some of the time, other times not....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found