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

[BUG] Subtitles not extracted from Twitch stream #1597

Open
superbonaci opened this issue Feb 1, 2024 · 1 comment
Open

[BUG] Subtitles not extracted from Twitch stream #1597

superbonaci opened this issue Feb 1, 2024 · 1 comment

Comments

@superbonaci
Copy link
Contributor

ccextractor compiled from latest commit.

Download Twitch stream https://www.twitch.tv/videos/1980035805 in ts format.

$ ccextractor output.ts 
CCExtractor 0.94, Carlos Fernandez Sanz, Volker Quetschke.
Teletext portions taken from Petr Kutalek's telxcc
--------------------------------------------------------------------------
Input: output.ts
[Extract: 1] [Stream mode: Autodetect]
[Program : Auto ] [Hauppage mode: No] [Use MythTV code: Auto]
[CEA-708: 63 decoders active]
[CEA-708: using charset "none" for all services]
[Timing mode: Auto] [Debug: No] [Buffer input: No]
[Use pic_order_cnt_lsb for H.264: No] [Print CC decoder traces: No]
[Target format: .srt] [Encoding: UTF-8] [Delay: 0] [Trim lines: No]
[Add font color data: Yes] [Add font typesetting: Yes]
[Convert case: No][Filter profanity: No] [Video-edit join: No]
[Extraction start time: not set (from start)]
[Extraction end time: not set (to end)]
[Live stream: No] [Clock frequency: 90000]
[Teletext page: Autodetect]
[Start credits text: None]
[Quantisation-mode: CCExtractor's internal function]

-----------------------------------------------------------------
Opening file: output.ts
File seems to be a transport stream, enabling TS mode
Analyzing data in general mode
Changed fps using NAL to: 60.000000

Found large gap(8136) in PTS! Trying to recover ...
Error: Broken AVC stream - Leading bytes are non-zero...
Issues? Open a ticket here
https://github.com/CCExtractor/ccextractor/issues

File output.srt has a size of 0.

MediaInfo data:
output

@superbonaci
Copy link
Contributor Author

Video Download Helper requires to change the settings to get m2ts streams. Anyway here's a sample Transport Stream video directly from Twitch, which has subtitles in CC608 format:

Rename output.z01.zip to output.z01 and extract output.zip.

output.zip
output.z01.zip

HandBrake can extract them and either burn them into the video or save to mkv as separate track.

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

No branches or pull requests

1 participant