#!/bin/bash

PARAMS="-ac 2 -ar 44000 -f s16le -acodec pcm_mulaw"

if [ $# != 1 ]
then
    echo "usage: $0 music-file" 1>&2
    exit 1
fi

FILE="$1"

ffmpeg -loglevel 0 -i ${FILE} ${PARAMS} -