Compare commits

..

2 Commits

Author SHA1 Message Date
Jan Jastrow
882be853a7 cleaner output 2024-05-26 23:56:59 +02:00
Jan Jastrow
106abe8d75 Add ffmpeg crop detection 2024-05-26 22:43:29 +02:00

View File

@ -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 - 2>&1 | awk '/crop=/ { print $NF }'
}
# Original script: https://yohanes.gultom.me/2016/05/21/bash-script-to-batch-convert-mkv-to-mp4-linux/
# Rewritten with ChatGPT 🙈