From: Oleg Broytman Date: Mon, 3 Nov 2014 02:53:42 +0000 (+0300) Subject: Add ff_cropdetect - detect -vf crop parameters X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2bb1f569c7a50d3965cd054b7587e9b04e3ad72b;p=audio-cdr-video.git Add ff_cropdetect - detect -vf crop parameters --- diff --git a/readme.txt b/readme.txt index 8c9a39d..918caec 100644 --- a/readme.txt +++ b/readme.txt @@ -102,10 +102,12 @@ video Using ffmpeg: ff_catvideo - concatenate few video files into one. +ff_cropdetect - detect -vf crop parameters. ff_encode - 1 and 2-pass encoding using different codecs. Using mplayer/mencoder: m_catvideo - concatenate few video files into one. +m_cropdetect - detect -vf crop parameters. m_encode - 1, 2 and 3-pass encoding using different codecs. m_fix-avi-index - fix an AVI index. m_recode2mp3 - recode an audio stream to mp3, leaving video stream intact. diff --git a/video/ff_cropdetect b/video/ff_cropdetect new file mode 100755 index 0000000..59a2c40 --- /dev/null +++ b/video/ff_cropdetect @@ -0,0 +1,8 @@ +#! /bin/sh + +if [ -z "$1" ]; then + echo "Usage: $0 input.avi" + exit 1 +fi + +exec ffmpeg -i "$1" -vf cropdetect -an -f rawvideo -y /dev/null