Skip to content

Commit 8aadbfb

Browse files
authored
feat: Add --input scc option for SCC input format
2 parents f5dc1cf + 1b0e66b commit 8aadbfb

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/lib_ccx/ccx_demuxer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ static void ccx_demuxer_print_cfg(struct ccx_demuxer *ctx)
285285
case CCX_SM_MXF:
286286
mprint("MXF");
287287
break;
288+
case CCX_SM_SCC:
289+
mprint("SCC");
290+
break;
288291
#ifdef WTV_DEBUG
289292
case CCX_SM_HEX_DUMP:
290293
mprint("Hex");

src/rust/src/args.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ pub enum InFormat {
990990
Mkv,
991991
/// Material Exchange Format (MXF).
992992
Mxf,
993+
/// Scenarist Closed Caption (SCC).
994+
Scc,
993995
#[cfg(feature = "wtv_debug")]
994996
// For WTV Debug mode only
995997
Hex,

src/rust/src/demuxer/demux.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ impl CcxDemuxer<'_> {
327327
StreamMode::Mxf => {
328328
info!("MXF");
329329
}
330+
StreamMode::Scc => {
331+
info!("SCC");
332+
}
330333
#[cfg(feature = "wtv_debug")]
331334
StreamMode::HexDump => {
332335
info!("Hex");

src/rust/src/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ impl OptionsExt for Options {
311311
InFormat::Mp4 => self.demux_cfg.auto_stream = StreamMode::Mp4,
312312
InFormat::Mkv => self.demux_cfg.auto_stream = StreamMode::Mkv,
313313
InFormat::Mxf => self.demux_cfg.auto_stream = StreamMode::Mxf,
314+
InFormat::Scc => self.demux_cfg.auto_stream = StreamMode::Scc,
314315
}
315316
}
316317

0 commit comments

Comments
 (0)