Moving old scripts, they are still good examples.
authorBrennan Taylor <taylor.brennan@gmail.com>
Tue, 13 Apr 2010 20:05:43 +0000 (16:05 -0400)
committerBrennan Taylor <taylor.brennan@gmail.com>
Tue, 13 Apr 2010 20:05:43 +0000 (16:05 -0400)
encodetalk-audio [deleted file]
encodetalk-preview [deleted file]
encodetalk-video [deleted file]
old-scripts/encodetalk-audio [new file with mode: 0755]
old-scripts/encodetalk-preview [new file with mode: 0755]
old-scripts/encodetalk-video [new file with mode: 0755]

diff --git a/encodetalk-audio b/encodetalk-audio
deleted file mode 100755 (executable)
index f81a956..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/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
deleted file mode 100755 (executable)
index ca9d887..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/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
deleted file mode 100755 (executable)
index 0f3a43a..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/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/old-scripts/encodetalk-audio b/old-scripts/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/old-scripts/encodetalk-preview b/old-scripts/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/old-scripts/encodetalk-video b/old-scripts/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