Add ffmpeg crop detection

This commit is contained in:
Jan Jastrow 2024-05-26 22:43:29 +02:00
parent a4448c29a3
commit 106abe8d75

View File

@ -2,6 +2,12 @@
# filename: /zsh/ffmpeg # 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/ # Original script: https://yohanes.gultom.me/2016/05/21/bash-script-to-batch-convert-mkv-to-mp4-linux/
# Rewritten with ChatGPT 🙈 # Rewritten with ChatGPT 🙈