File: convert_mp3s.sh

package info (click to toggle)
bashburn 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,140 kB
  • sloc: sh: 2,584; sed: 64; makefile: 19
file content (17 lines) | stat: -rwxr-xr-x 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
convert_mp3s()
{
    typeset bbmpthree
    cd ${BBBURNDIR}
    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
}