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

    Jul 30, 2008
    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


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

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


    Staff Member

    Aug 16, 2005
    New England

Share This Page