]> git.phdru.name Git - audio-cdr-video.git/blobdiff - video/transcoding/tc_extract_a1_comments
Move outdated scripts to separate subdirectories
[audio-cdr-video.git] / video / transcoding / tc_extract_a1_comments
diff --git a/video/transcoding/tc_extract_a1_comments b/video/transcoding/tc_extract_a1_comments
new file mode 100755 (executable)
index 0000000..5028aaa
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+if [ -z "$2" ]; then
+   echo "Usage: $0 input_dir aid [options]"
+   exit 1
+fi
+
+input="$1"
+aid="$2"
+shift 2
+
+transcode -i "$input" -x null,auto -g 0x0 -y null,ffmpeg -a "$aid" -m a"$aid".mp3 "$@" &&
+exec avimerge -o output2.avi -i output.avi -p a"$aid".mp3 -f avi_comments.txt