summaryrefslogtreecommitdiffstats
path: root/bin/ringtone
blob: 5c8cfe15e03281aaabe0a30a6d75c8fd18919ad4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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