cleanup
This commit is contained in:
parent
480aeb0e91
commit
bbb0e1371b
@ -120,11 +120,7 @@ impl Filters {
|
||||
|
||||
fn build_final_chain(&mut self) {
|
||||
self.final_chain.push_str(&self.video_chain);
|
||||
|
||||
if self.final_chain.len() > 10 {
|
||||
self.final_chain.push(';')
|
||||
}
|
||||
|
||||
self.final_chain.push(';');
|
||||
self.final_chain.push_str(&self.audio_chain);
|
||||
|
||||
self.cmd.push("-filter_complex".to_string());
|
||||
|
@ -552,6 +552,24 @@ pub fn gen_dummy(config: &PlayoutConfig, duration: f64) -> (String, Vec<String>)
|
||||
(source, cmd)
|
||||
}
|
||||
|
||||
// fn get_output_count(cmd: &[String]) -> i32 {
|
||||
// let mut count = 0;
|
||||
|
||||
// if let Some(index) = cmd.iter().position(|c| c == "-var_stream_map") {
|
||||
// if let Some(mapping) = cmd.get(index + 1) {
|
||||
// return mapping.split(' ').count() as i32;
|
||||
// };
|
||||
// };
|
||||
|
||||
// for (i, param) in cmd.iter().enumerate() {
|
||||
// if i > 0 && !param.starts_with('-') && !cmd[i - 1].starts_with('-') {
|
||||
// count += 1;
|
||||
// }
|
||||
// }
|
||||
|
||||
// count
|
||||
// }
|
||||
|
||||
/// Prepare output parameters
|
||||
///
|
||||
/// seek for multiple outputs and add mapping for it
|
||||
|
Loading…
x
Reference in New Issue
Block a user