blob: 19dddb6099cadcf490b7bd821a83d4b6d85a2620 (
plain) (
tree)
|
|
#!/bin/sh
set -eu
set -o pipefail
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"
|