From 2bb1f569c7a50d3965cd054b7587e9b04e3ad72b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 3 Nov 2014 05:53:42 +0300 Subject: [PATCH] Add ff_cropdetect - detect -vf crop parameters --- readme.txt | 2 ++ video/ff_cropdetect | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100755 video/ff_cropdetect 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 -- 2.39.5