]> git.phdru.name Git - audio-cdr-video.git/blobdiff - video/transcoding/tc_add-comments
Move outdated scripts to separate subdirectories
[audio-cdr-video.git] / video / transcoding / tc_add-comments
diff --git a/video/transcoding/tc_add-comments b/video/transcoding/tc_add-comments
new file mode 100755 (executable)
index 0000000..b6ccf6f
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+if [ -z "$1" ]; then
+   echo "Usage: $0 input.avi [title]"
+   exit 1
+fi
+
+input="$1"
+title="$2"
+
+if [ "$title" ]; then
+   echo "INAM $title" | iconv -f koi8-r -t utf-8 >avi_comments.txt
+   echo "ICMT Codec: FFmpeg (DivX5)" >>avi_comments.txt
+fi
+
+avimerge -i "$input" -f avi_comments.txt -o output.avi &&
+exec mv output.avi "$input"