Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for f in *.mp3
- do
- OUTF=`echo "$f" | sed s/\.mp3$/.aac/g`
- ARTIST=`ID3 "$f" --show-tag=GENRE| sed s/.*=//g`
- TITLE=`ID3 "$f" --show-tag=GENRE| sed s/.*=//g`
- ALBUM=`ID3 "$f" --show-tag=GENRE| sed s/.*=//g`
- GENRE=`ID3 "$f" --show-tag=GENRE | sed s/.*=//g`
- TRACKTOTAL=`ID3 "$f" --show-tag=TRACKTOTAL | sed s/.*=//g`
- DATE=`ID3 "$f" --show-tag=DATE | sed s/.*=//g`
- TRACKNUMBER=`ID3 "$f" --show-tag=TRACKNUMBER | sed s/.*=//g`
- lame --decode "$f" - | neroAacEnc -if - -cbr 320000 -of "$OUTF"
- neroAacTag "$OUTF" -meta:artist="$ARTIST" -meta:title="$TITLE"
- done
- mkdir "$ALBUM" && mv *.aac "$ALBUM"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement