Renamed and removed excessive quotes

This commit is contained in:
Nox Sluijtman 2025-01-18 22:30:24 +01:00
parent 590ea9d11f
commit c5f57dc4c5
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

@ -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