projects
/
dtbartle
/
csc-encode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit.
[dtbartle/csc-encode.git]
/
encodetalks-audio
1
#!/bin/sh
2
3
A_BIT_RATE=128
4
5
if [ $# != "2" ] ; then
6
echo "Usage input.wav output_prefix"; exit;
7
fi
8
9
mkdir $2 2> /dev/null
10
11
# mp3
12
echo ffmpeg -i $1 -acodec mp3 -ab $A_BIT_RATE $2/$2.mp3
13
# ogg
14
echo ffmpeg -i $1 -acodec vorbis -ab $A_BIT_RATE $2/$2.ogg
15
# flac
16
echo ffmpeg -i $1 -acodec flac $2/$2.flac
17
# TODO: ram, wma