Got sick of searching for this line or lines similar to it in my history
This commit is contained in:
parent
873e8f2c13
commit
8070948a0b
1 changed files with 6 additions and 0 deletions
6
src/bin/discordify
Executable file
6
src/bin/discordify
Executable 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue