Renamed and removed excessive quotes
This commit is contained in:
parent
590ea9d11f
commit
c5f57dc4c5
|
@ -8,9 +8,9 @@ def main [input: string, --resize(-r): string, --length(-l): string = "00:00:05"
|
|||
def glitch [input: string, resize: string, length: string] {
|
||||
let output = [ ($input | path parse | get stem ) "_glitch.mkv" ] | str join
|
||||
let filter = if ($resize | is-not-empty) {
|
||||
$"\'scale=($resize):-2,fps=60,frei0r=filter_name=glitch0r:filter_params=0.2|0.8|.04|1,rgbashift=rh=4:bh=-2,interlace=lowpass=complex\'"
|
||||
$"scale=($resize):-2,fps=60,frei0r=filter_name=glitch0r:filter_params=0.2|0.8|.04|1,rgbashift=rh=4:bh=-2,interlace=lowpass=complex"
|
||||
} else {
|
||||
"\'fps=60,frei0r=filter_name=glitch0r:filter_params=0.2|0.8|.04|1,rgbashift=rh=4:bh=-2,interlace=lowpass=complex\'"
|
||||
"fps=60,frei0r=filter_name=glitch0r:filter_params=0.2|0.8|.04|1,rgbashift=rh=4:bh=-2,interlace=lowpass=complex"
|
||||
}
|
||||
#echo $"ffmpeg -loop 1 -i ($input) -filter_complex ($filter) -to ($length) ($output) -y"
|
||||
ffmpeg -loop 1 -i $input -filter_complex $filter -to $length $output -y
|
Loading…
Reference in a new issue