Scripts related to creating and distributing talks and media files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
842 B

if [ $# != "2" ] ; then
echo "Usage: encodetalks-video input.avi output_prefix"; exit;
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