Initial commit
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Tue, 8 Jan 2008 06:40:21 +0000 (01:40 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Tue, 8 Jan 2008 06:40:21 +0000 (01:40 -0500)
encodetalk-audio [new file with mode: 0755]
encodetalk-preview [new file with mode: 0755]
encodetalk-video [new file with mode: 0755]
riptalk [new file with mode: 0755]

diff --git a/encodetalk-audio b/encodetalk-audio
new file mode 100755 (executable)
index 0000000..f81a956
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+A_BIT_RATE=128
+
+if [ $# !=  "2" ] ; then
+    echo "Usage input.wav output_prefix"; exit;
+fi
+
+mkdir $2 2> /dev/null
+
+# mp3
+echo ffmpeg -i $1 -acodec mp3 -ab $A_BIT_RATE $2/$2.mp3
+# ogg
+echo ffmpeg -i $1 -acodec vorbis -ab $A_BIT_RATE $2/$2.ogg
+# flac
+echo ffmpeg -i $1 -acodec flac $2/$2.flac
+# TODO: ram, wma
diff --git a/encodetalk-preview b/encodetalk-preview
new file mode 100755 (executable)
index 0000000..ca9d887
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ $# !=  "2" ] ; then
+    echo "Usage: encodetalks-preview input.avi output"; exit;
+fi
+
+transcode -i "$1" --frame_interval 600 -y im -F jpg -w 75 -o "$2" -Z 640x480
diff --git a/encodetalk-video b/encodetalk-video
new file mode 100755 (executable)
index 0000000..0f3a43a
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+V_BIT_RATE=768kb
+A_BIT_RATE=128kb
+
+if [ $# !=  "2" ] ; then
+    echo "Usage: encodetalks-video input.avi output_prefix"; exit;
+fi
+
+mkdir $2 2> /dev/null
+
+# TODO (gdcosta)
+# Have ffmpeg rip xvid, aac and mp3 output separately so we can just mux
+# avi and mp4 instead of encoding twice
+
+# xvid
+# mp3
+# aac
+
+# avi (xvid, mp3)
+echo ffmpeg -i "$1" -vcodec libxvid -b $V_BIT_RATE -acodec libmp3lame -ab $A_BIT_RATE "$2/$2.avi"
+# mp4 (xvid, aac)
+echo ffmpeg -i "$1" -vcodec libxvid -b $V_BIT_RATE -acodec libfaac -ab $A_BIT_RATE "$2/$2.mp4"
+# mpg (mpeg2, mp2)
+echo ffmpeg -i "$1" -vcodec mpeg2video -b $V_BIT_RATE -acodec mp2 -ab $A_BIT_RATE "$2/$2.mpg"
+# ogg (theora, vorbis)
+echo ffmpeg2theora -V $V_BIT_RATE -A $A_BIT_RATE -o "$2/$2.ogg" "$1"
+# flv
+echo ffmpeg -i "$1" -f flv -ab $A_BIT_RATE -b $V_BIT_RATE -ar 22050 "$2/$2.flv"
+# jpg
diff --git a/riptalk b/riptalk
new file mode 100755 (executable)
index 0000000..5eda123
--- /dev/null
+++ b/riptalk
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ $# !=  "1" ] ; then
+    echo "Usage riptalks output-prefix"; exit;
+fi
+
+sudo nice -n -10 dvgrab --opendml --size 0 $1-