mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[BUG] ccextractor skips many captions (CEA-708) #793
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @svlobanov on GitHub (Dec 30, 2023).
CCExtractor version: 0.94
376ff83161CEA-708 decoder: CNecessary information
./ccextractor -pn 4 503.tsVideo links
TS file: https://tsduck.io/streams/usa-atsc/503.ts (index page is here: https://tsduck.io/streams/?name=usa-atsc )
Additional information
The result file
503.p4.svc01.srtcontains only two captions, but there are much more captions in the CC708 Service1 in the program(4). The same issue if I use ccextractor with CEA-708 Rust decoder.In VLC4 decodes all CC708 service1 captions for Program 4(Charge!). Also, caption-inspector (https://github.com/Comcast/caption-inspector ) decodes much more captions in the CC708 Service1 in the program(4). I'm attaching caption-inspector's output for PID=0x61 (97) caption-inspector-output.zip
ccextractor CC708 Service1 Program4 output:
@cfsmp3 commented on GitHub (Dec 14, 2025):
Issue Status: Fixed ✅
I've tested this issue with the current master branch and the problem appears to be resolved.
Test Results
./ccextractor --program-number 4 503.tsCaption Comparison
The captions now match the expected output from caption-inspector:
Likely Fixes
Several commits since the original report (Dec 2023) have improved the CEA-708 decoder:
3c51fb65- Handle row_count decrease in CEA-708 C decoderd6ccf1bf- Port 708 decoder encoding module to RustThe issue was likely related to improper handling of CEA-708 window toggle (TGW) and delete layer (DLW) commands, causing captions to accumulate instead of being flushed at proper display boundaries.
This issue can be closed as fixed.
🤖 Generated with Claude Code
@cfsmp3 commented on GitHub (Dec 14, 2025):
Closing as fixed in master. The CEA-708 decoder improvements since v0.94 now correctly extract all 30 captions from the test file.