From: Kostya Shishkov Date: Wed, 4 Feb 2026 17:59:14 +0000 (+0100) Subject: improve printing input file information X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e24bfa59a2b9a4de7df4ca0bf3366df5c0dcf810;p=nihav-encoder.git improve printing input file information --- diff --git a/src/transcoder.rs b/src/transcoder.rs index 00f81d9..e1f7948 100644 --- a/src/transcoder.rs +++ b/src/transcoder.rs @@ -1129,9 +1129,10 @@ println!("encoder {} is not supported by output (expected {})", istr.id, istr.ge demuxers.push((dmx, false)) }, (Some(name), _) => { - println!("Input {i}: {name}"); + print!("Input {i}: {name}"); let res = File::open(name); if res.is_err() { + println!(); println!("error opening input"); return false; } @@ -1152,11 +1153,13 @@ println!("encoder {} is not supported by output (expected {})", istr.id, istr.ge }; let fformat = if let Some(ref fname) = ifmt { Some(fname.as_str()) } else { None }; - let mut dmx = DemuxerObject::create(sb, full_reg, name, fformat, is_raw, &[], print_info); + let mut dmx = DemuxerObject::create(sb, full_reg, name, fformat, is_raw, &[], false); if dmx.is_none() { - println!("cannot find demuxer for '{}'", name); + println!(); + println!("cannot create demuxer"); return false; } + println!(" type {dmx}"); parse_and_apply_options!(dmx, &self.demux_opts[i], "input"); if print_info { for i in 0..dmx.get_num_streams() {