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.
 
 
talk-scripts/old-scripts/encodetalk-audio

17 lines
320 B

#!/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