CCExtractor / ccextractor

CCExtractor - Official version maintained by the core team
https://www.ccextractor.org
GNU General Public License v2.0
721 stars 426 forks source link

[BUG] Subtitles not extracted from Twitch stream #1597

Open superbonaci opened 9 months ago

superbonaci commented 9 months ago

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 commented 9 months ago

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.