[BUG] Error: Broken AVC stream on Twitch.tv stream file #789

Open
opened 2026-01-29 16:53:32 +00:00 by claunia · 0 comments
Owner

Originally created by @superbonaci on GitHub (Dec 10, 2023).

Compiled version form latest commit 79aaf86:

ccextractor --version
CCExtractor 0.94, Carlos Fernandez Sanz, Volker Quetschke.
Teletext portions taken from Petr Kutalek's telxcc
--------------------------------------------------------------------------
CCExtractor detailed version info
	Version: 0.94
	Git commit: 79aaf8659390850d570a96a764d8b7f29557ce6a
	Compilation date: 2023-12-10
	CEA-708 decoder: C
	File SHA256: Could not open file
Libraries used by CCExtractor
	libGPAC Version: 2.2.1
	zlib: 1.2.11
	utf8proc Version: 2.4.0
	protobuf-c Version: 1.3.1
	libpng Version: 1.6.37
	FreeType
	libhash
	nuklear
	libzvbi

Trying to extract subtitles from Twitch.tv stream generates a 0 byte file and errors:

$ ccextractor file.ts
CCExtractor 0.94, Carlos Fernandez Sanz, Volker Quetschke.
Teletext portions taken from Petr Kutalek's telxcc
--------------------------------------------------------------------------
Input: file.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: file.ts
File seems to be a transport stream, enabling TS mode
Analyzing data in general mode
Changed fps using NAL to: 120.000000

Found large gap(14566) 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

The error will happen with any ts from any Twitch.tv stream, sample:

file.ts.zip

Originally created by @superbonaci on GitHub (Dec 10, 2023). Compiled version form latest commit [79aaf86](https://github.com/CCExtractor/ccextractor/commit/79aaf8659390850d570a96a764d8b7f29557ce6a): ``` ccextractor --version CCExtractor 0.94, Carlos Fernandez Sanz, Volker Quetschke. Teletext portions taken from Petr Kutalek's telxcc -------------------------------------------------------------------------- CCExtractor detailed version info Version: 0.94 Git commit: 79aaf8659390850d570a96a764d8b7f29557ce6a Compilation date: 2023-12-10 CEA-708 decoder: C File SHA256: Could not open file Libraries used by CCExtractor libGPAC Version: 2.2.1 zlib: 1.2.11 utf8proc Version: 2.4.0 protobuf-c Version: 1.3.1 libpng Version: 1.6.37 FreeType libhash nuklear libzvbi ``` Trying to extract subtitles from Twitch.tv stream generates a 0 byte file and errors: ``` $ ccextractor file.ts CCExtractor 0.94, Carlos Fernandez Sanz, Volker Quetschke. Teletext portions taken from Petr Kutalek's telxcc -------------------------------------------------------------------------- Input: file.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: file.ts File seems to be a transport stream, enabling TS mode Analyzing data in general mode Changed fps using NAL to: 120.000000 Found large gap(14566) 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 ``` The error will happen with any ts from any Twitch.tv stream, sample: [file.ts.zip](https://github.com/CCExtractor/ccextractor/files/13629063/file.ts.zip)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#789