From: Kostya Shishkov Date: Fri, 21 Mar 2025 11:19:17 +0000 (+0100) Subject: mark copied streams X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c8dc1d8a1063a71ca451faf9cd87f1718c7b7d0e;p=nihav-encoder.git mark copied streams --- diff --git a/src/main.rs b/src/main.rs index f3f0be5..551fee1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -550,7 +550,17 @@ fn main() { println!("Output {} muxer {}", transcoder.output_name, ofmt); for ostr in mux.get_streams() { - println!(" #{}: {} {}", ostr.get_num(), ostr, ostr.get_info().get_name()); + let mut is_copy = false; + let stream_id = ostr.get_id(); + for ostr in transcoder.encoders.iter() { + if let OutputMode::Copy(sno) = ostr { + if sno == &stream_id { + is_copy = true; + break; + } + } + } + println!(" #{}: {} {}{}", ostr.get_num(), ostr, ostr.get_info().get_name(), if is_copy { " (copy)" } else { "" }); } transcoder.queue.reserve_streams(mux.get_num_streams());