add commands
This commit is contained in:
parent
096c018fe3
commit
c8d10b9035
@ -130,6 +130,7 @@ pub fn prepare_output_cmd(
|
|||||||
&& !output_params[i - 1].starts_with('-')
|
&& !output_params[i - 1].starts_with('-')
|
||||||
&& i < params_len - 1
|
&& i < params_len - 1
|
||||||
{
|
{
|
||||||
|
// add mapping to following outputs
|
||||||
new_params.append(&mut filter.output_map.clone());
|
new_params.append(&mut filter.output_map.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -138,8 +139,7 @@ pub fn prepare_output_cmd(
|
|||||||
|
|
||||||
// Process A/V mapping
|
// Process A/V mapping
|
||||||
//
|
//
|
||||||
// Check if there is multiple outputs, and/or multiple audio tracks
|
// when filter in output_param are found and we are in HLS mode, fix the mapping
|
||||||
// and add the correct mapping for it.
|
|
||||||
if !output_filter.is_empty() && config.out.mode == HLS {
|
if !output_filter.is_empty() && config.out.mode == HLS {
|
||||||
let re = Regex::new(r"0:a:(?P<num>[0-9]+)").unwrap();
|
let re = Regex::new(r"0:a:(?P<num>[0-9]+)").unwrap();
|
||||||
output_filter = re
|
output_filter = re
|
||||||
|
Loading…
x
Reference in New Issue
Block a user