From: Kostya Shishkov Date: Thu, 18 May 2023 16:46:37 +0000 (+0200) Subject: recognize /dev/null as null muxer output by default X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c23d0c3a348fdc64a1cd6f71200b9d0fe0f6159c;p=nihav-encoder.git recognize /dev/null as null muxer output by default --- diff --git a/src/main.rs b/src/main.rs index 1e77521..3c39857 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1110,6 +1110,8 @@ println!("stream {} - {} {}", i, s, info.get_name()); let output_fmt = if let Some(ref str) = transcoder.output_fmt { str + } else if transcoder.output_name.as_str() == "/dev/null" { + "null" } else if let Some(str) = detect::detect_format_by_name(transcoder.output_name.as_str()) { str } else {