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.
17 lines
320 B
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
|
|
|