On Mon, 31 Mar 2003, august wrote:
a) is there any good way to tell if a file is an mp3 or not other than to check the file ending for ".mp3" ? I can check if it has an "ID3" tag at the header, but most mp3's dont seem to have this.
files without the ID3 are detected by /usr/bin/file as MPEG 1.0 Audio Layer 3, which is what an MP3 is. Look in "/usr/share/misc/magic" and "man 5 magic" for details.
Mathieu Bouchard http://artengine.ca/matju