7

How can I verify if a file is protected by DRM?

On OS X, by command line or by other methods.

ıɾuǝʞ
  • 241

3 Answers3

5

As Daniel Beck noted in comments, you can use the mdls command to get the file metadata. The kMDItemKind field should hold the info you’re looking for.

$ mdls plain-mp3.mp3 | grep kMDItemKind
kMDItemKind                     = "MP3 audio"

$ mdls protected-aac.m4p | grep kMDItemKind
kMDItemKind                    = "protected MPEG-4 audio"

$ mdls unprotected-aac.m4a | grep kMDItemKind
MDItemKind                    = "Apple MPEG-4 audio"

(Note also the different extensions, .m4a vs. .m4p.)

David Moles
  • 504
  • 2
  • 7
  • 21
1
mplayer $filename

If you hear sound, there are no (effective) restrictions.

mplayer can be obtained from this place.

Eroen
  • 6,561
1

In the finder, just Get Info on your file, and look at the More Info area. Within this area of the info panel it should state whether the file is protected or not. Here's an example of a protected AAC file:

Part of info panel

Aaron McIver
  • 1,415