How do I distinguish an AAC and Apple Lossless audio file?

Discussion in 'Mac Programming' started by pacers721, Dec 23, 2010.

  1. pacers721 macrumors member

    Joined:
    Jul 30, 2008
    #1
    Hey guys. I'm writing a perl script to help organize my music collection. In each album folder, I'm thinking about having the songs in lossless (Apple Lossless) and lossy (AAC) formats. My question is how (preferably through perl) can I tell which format an audio file is. Both of them use the .m4a extension.
     
  2. Consultant macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #2
    Read the bit rate info of music to distinguish between files.

    (In iTunes you can do a smart playlist.)
     
  3. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #3

Share This Page