Skip to content

tests: add CEA-608 SCC test corpus (pop-on, roll-up, special chars)#2256

Closed
DhanushVarma-2 wants to merge 1 commit intoCCExtractor:masterfrom
DhanushVarma-2:feat/cea608-test-corpus
Closed

tests: add CEA-608 SCC test corpus (pop-on, roll-up, special chars)#2256
DhanushVarma-2 wants to merge 1 commit intoCCExtractor:masterfrom
DhanushVarma-2:feat/cea608-test-corpus

Conversation

@DhanushVarma-2
Copy link
Copy Markdown
Contributor

The files live in tests/cea608_corpus/ and cover:

Pop-on captions (popon_basic.scc) — the standard buffer-flip workflow with ENM/RCL/PAC/EDM/EOC. Tests single-line, multi-line, and the >> speaker change convention.
Roll-up captions (rollup_basic.scc) — starts with 2-row roll-up, switches to 3-row mid-stream, tests carriage return scrolling behavior.
Special & extended characters (special_chars.scc) — music notes, ®, ™, and accented characters like É, Ï, À. The extended characters use the replacement semantics where they overwrite the previous character, which is a common source of bugs in 608 decoders.

Hand-crafted SCC test files for validating CEA-608 subtitle decoding:
- popon_basic.scc: pop-on mode (ENM/RCL/PAC/EDM/EOC, multi-line, speaker change)
- rollup_basic.scc: roll-up mode (RU2->RU3 switch, CR scrolling)
- special_chars.scc: special chars (music note, registered, trademark) and
  extended chars (accented E/I/A with replacement semantics)

Includes generate_scc.py (reproducible generation with parity table),
expected SRT reference files, and run_tests.sh for automated diffing.
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

Successfully merging this pull request may close these issues.

1 participant