diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-14 13:49:45 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-14 13:49:45 -0600 |
commit | 3d3421b0059daa778601488edb7dbb05319d20e6 (patch) | |
tree | 6c0956ad5b9ce2ba02bb866f92b7db8defb70557 /bin/ringtone | |
parent | b9bbd243a9fc4fa0ed29cd05daf4e0c2ae44d206 (diff) | |
download | conf-3d3421b0059daa778601488edb7dbb05319d20e6.tar.gz conf-3d3421b0059daa778601488edb7dbb05319d20e6.zip |
script for simple ringtone generation
Diffstat (limited to 'bin/ringtone')
-rwxr-xr-x | bin/ringtone | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/ringtone b/bin/ringtone new file mode 100755 index 0000000..5c8cfe1 --- /dev/null +++ b/bin/ringtone @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ $# -lt 3 ]; then + echo "usage: ringtone <input> <output> <fake_video_file>" + echo "note: fake_video_file is unused, but must be valid" + echo " and at least the length of the output" + exit 1 +fi + +mencoder -ovc frameno \ + -oac mp3lame \ + -lameopts cbr:br=64 \ + -of rawaudio \ + -o $2 \ + -audiofile $1 \ + -endpos 256kb \ + $3 |