mirror of https://github.com/n00mkrad/flowframes
Ignore empty filters
This commit is contained in:
parent
e53846d782
commit
693a2471d1
|
@ -95,6 +95,7 @@ namespace Flowframes.Media
|
|||
}
|
||||
|
||||
filters.Add(GetPadFilter());
|
||||
filters = filters.Where(f => f.IsNotEmpty()).ToList();
|
||||
|
||||
return filters.Count > 0 ?
|
||||
$"{string.Join(" ", beforeArgs)} -filter_complex [0:v]{string.Join("[vf],[vf]", filters.Where(f => !string.IsNullOrWhiteSpace(f)))}[vf] -map [vf] {string.Join(" ", extraArgs)}" :
|
||||
|
|
Loading…
Reference in New Issue