Initial commit

This commit is contained in:
David Bartley 2008-01-08 01:40:21 -05:00
commit 338f828024
4 changed files with 61 additions and 0 deletions

17
encodetalk-audio Executable file
View File

@ -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

7
encodetalk-preview Executable file
View File

@ -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

30
encodetalk-video Executable file
View File

@ -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

7
riptalk Executable file
View File

@ -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-