[PR #1973] feat: Add --input scc option for SCC input format #2774

Open
opened 2026-01-29 17:23:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1973

State: closed
Merged: Yes


Summary

Add support for --input scc command line option to explicitly specify SCC (Scenarist Closed Caption) input format, for consistency with other input format options.

Before:

$ ccextractor --input scc file.scc
error: invalid value 'scc' for '--input <format>'
  [possible values: ts, ps, es, asf, wtv, bin, raw, mp4, m2ts, mkv, mxf]

After:

$ ccextractor --help | grep -A20 "Input Formats:"
...
          - scc:  Scenarist Closed Caption (SCC)

Changes

  • Add Scc variant to InFormat enum in args.rs
  • Handle InFormat::Scc in parser.rs to set StreamMode::Scc
  • Add StreamMode::Scc case in print_cfg() in both Rust (demux.rs) and C (ccx_demuxer.c)

Test plan

  • --help shows scc as valid input format
  • --input scc accepted without error
  • SCC files processed correctly with explicit format
  • All 265 Rust unit tests pass

Fixes #1972

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/1973 **State:** closed **Merged:** Yes --- ## Summary Add support for `--input scc` command line option to explicitly specify SCC (Scenarist Closed Caption) input format, for consistency with other input format options. **Before:** ``` $ ccextractor --input scc file.scc error: invalid value 'scc' for '--input <format>' [possible values: ts, ps, es, asf, wtv, bin, raw, mp4, m2ts, mkv, mxf] ``` **After:** ``` $ ccextractor --help | grep -A20 "Input Formats:" ... - scc: Scenarist Closed Caption (SCC) ``` ## Changes - Add `Scc` variant to `InFormat` enum in args.rs - Handle `InFormat::Scc` in parser.rs to set `StreamMode::Scc` - Add `StreamMode::Scc` case in `print_cfg()` in both Rust (demux.rs) and C (ccx_demuxer.c) ## Test plan - [x] `--help` shows `scc` as valid input format - [x] `--input scc` accepted without error - [x] SCC files processed correctly with explicit format - [x] All 265 Rust unit tests pass Fixes #1972 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claunia added the pull-request label 2026-01-29 17:23:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2774