From 106abe8d7540d6c76b7533e3bc3ca1d47d1197a4 Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Sun, 26 May 2024 22:43:29 +0200 Subject: [PATCH] Add ffmpeg crop detection --- zsh/ffmpeg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/ffmpeg b/zsh/ffmpeg index f792589..7a7875e 100644 --- a/zsh/ffmpeg +++ b/zsh/ffmpeg @@ -2,6 +2,12 @@ # filename: /zsh/ffmpeg #-------------------------------- +# ffmpeg function to find borders for cropping + function ff-crop() { + ffmpeg -hide_banner -i "$1" -vf cropdetect,metadata=mode=print -f null - +} + + # Original script: https://yohanes.gultom.me/2016/05/21/bash-script-to-batch-convert-mkv-to-mp4-linux/ # Rewritten with ChatGPT 🙈