]> git.phdru.name Git - audio-cdr-video.git/blobdiff - video/mplayer/m_encode_extract_a1
Move outdated scripts to separate subdirectories
[audio-cdr-video.git] / video / mplayer / m_encode_extract_a1
diff --git a/video/mplayer/m_encode_extract_a1 b/video/mplayer/m_encode_extract_a1
new file mode 100755 (executable)
index 0000000..868dda6
--- /dev/null
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+if [ -z "$4" ]; then
+   echo "Usage: $0 aid1 aid2 scale1 scale2 [options]"
+   exit 1
+fi
+
+aid1="$1"
+aid2="$2"
+scale1="$3"
+scale2="$4"
+shift 4
+
+aid="$aid1" ascale="$scale1" m_encode "$@" &&
+m_extract_a1 "$aid2" -af volume="$scale2" "$@" &&
+exec rm divx2pass.log output.avi