Got sick of searching for this line or lines similar to it in my history

This commit is contained in:
Nox Sluijtman 2025-01-30 13:53:16 +01:00
parent 873e8f2c13
commit 8070948a0b
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

6
src/bin/discordify Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env nu
def main [input:string output?:string, --crf(-c):int=30, --size(-s):string="1280x720" --preset(-p):string="slow"] {
let output = $output | default $"($input | path parse | get stem)_discord.mp4"
ffmpeg -i $input -crf $crf -vcodec libx264 -preset $preset -s $size -pix_fmt yuv420p $output
}