Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- lista=( -iname \*.mp3 -o -iname \*.flac -o -iname \*.wma -o -iname \*.mpc -o -iname \*.m4a )
- Converter () {
- clear
- echo Conversão em andamento . . .
- echo ${1##*/} para formato OGG.
- echo
- /usr/bin/avconv -y -i "$1" -acodec libvorbis -aq 3 -vn -ac 2 -b:a 320 -r:a 44100 "${1%.*}.ogg"
- rm "$1"
- }
- export -f Converter
- find -L . \( "${lista[@]}" \) -type f -exec bash -c 'Converter "{}"' \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement