mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-23 19:59:31 +01:00
Ignore empty filters
This commit is contained in:
@@ -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)}" :
|
||||
|
||||
Reference in New Issue
Block a user