From 3d3421b0059daa778601488edb7dbb05319d20e6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 14 Feb 2011 13:49:45 -0600 Subject: script for simple ringtone generation --- bin/ringtone | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/ringtone (limited to 'bin/ringtone') 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 " + 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 -- cgit v1.2.3-54-g00ecf