Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. for f in *.mp3
  2. do
  3. OUTF=`echo "$f" | sed s/\.mp3$/.aac/g`
  4.  
  5. ARTIST=`ID3 "$f" --show-tag=GENRE| sed s/.*=//g`
  6. TITLE=`ID3 "$f" --show-tag=GENRE| sed s/.*=//g`
  7.  
  8.  
  9. ALBUM=`ID3 "$f" --show-tag=GENRE| sed s/.*=//g`
  10. GENRE=`ID3 "$f" --show-tag=GENRE | sed s/.*=//g`
  11. TRACKTOTAL=`ID3 "$f" --show-tag=TRACKTOTAL | sed s/.*=//g`
  12. DATE=`ID3 "$f" --show-tag=DATE | sed s/.*=//g`
  13. TRACKNUMBER=`ID3 "$f" --show-tag=TRACKNUMBER | sed s/.*=//g`
  14.  
  15.  
  16.  
  17.  
  18.  
  19. lame --decode "$f" - | neroAacEnc -if - -cbr 320000 -of "$OUTF"
  20. neroAacTag "$OUTF" -meta:artist="$ARTIST" -meta:title="$TITLE"
  21. done
  22. mkdir "$ALBUM" && mv *.aac "$ALBUM"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement