14 lines
179 B
Bash
Executable File
14 lines
179 B
Bash
Executable File
#!/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 ${PARAMS} -i - ${FILE}
|