]> git.phdru.name Git - audio-cdr-video.git/commitdiff
Add ff_cropdetect - detect -vf crop parameters
authorOleg Broytman <phd@phdru.name>
Mon, 3 Nov 2014 02:53:42 +0000 (05:53 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 3 Nov 2014 02:53:42 +0000 (05:53 +0300)
readme.txt
video/ff_cropdetect [new file with mode: 0755]

index 8c9a39d474e3d79963f2c21e8161febf1e1d394d..918caecaf106ac57dd10af7f257faf1a3b2e6d3f 100644 (file)
@@ -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 (executable)
index 0000000..59a2c40
--- /dev/null
@@ -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