From 8070948a0bf2db0a43f45a4e913865adf1b0a91c Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Thu, 30 Jan 2025 13:53:16 +0100 Subject: [PATCH] Got sick of searching for this line or lines similar to it in my history --- src/bin/discordify | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 src/bin/discordify diff --git a/src/bin/discordify b/src/bin/discordify new file mode 100755 index 0000000..499a5b2 --- /dev/null +++ b/src/bin/discordify @@ -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 +}