/usr/share/bashburn/lib/convert/convert_audio.sh is in bashburn 3.0.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | convert_audio()
{
typeset filetype="$1"
shopt -s nocaseglob
if [[ "$filetype" == '*.flac' ]]
then
${BB_FLACCMD} -d *.flac
message "$bb_conv_flac_1"
elif [[ "$filetype" == '*.mp3' ]]
then
typeset bbmpthree
while read bbmpthree
do
echo
if ${BB_MP3DEC} -r 44100 -w "${bbmpthree%%.mp3}.wav" "${bbmpthree}"
then
echo "${bbmpthree}: $bb_conv_mp3_1 (${bbmpthree%%.mp3}.wav) $bb_conv_mp3_2"
else
echo "${bbmpthree}: $bb_conv_mp3_3"
fi
echo
done < <(find ${BBBURNDIR} -iname '*.mp3')
sleep 2s
elif [[ "$filetype" == '*.ogg' ]]
then
${BB_OGGDEC} *.ogg
message "$bb_conv_ogg"
fi
shopt -u nocaseglob
}
|