[BUG] Subtitles not extracted from Twitch stream #797

Closed
opened 2026-01-29 16:53:41 +00:00 by claunia · 1 comment
Owner

Originally created by @superbonaci on GitHub (Feb 1, 2024).

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

Originally created by @superbonaci on GitHub (Feb 1, 2024). 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](https://github.com/CCExtractor/ccextractor/assets/8339596/9ede7203-22a8-4596-9b0d-0e07cc82dfc7)
Author
Owner

@superbonaci commented on GitHub (Feb 2, 2024):

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.

@superbonaci commented on GitHub (Feb 2, 2024): 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](https://github.com/SubtitleEdit/subtitleedit/files/14139363/output.zip) [output.z01.zip](https://github.com/SubtitleEdit/subtitleedit/files/14139365/output.z01.zip) HandBrake can extract them and either burn them into the video or save to mkv as separate track. - https://github.com/lay295/TwitchDownloader/issues/948
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#797