07-11-2005 09:51 PM
07-12-2005 02:47 AM
Well, I'm not an expert on this, but this is probably because these are two wildly different formats - wave is very old and is simply a digital representation of the sound wave. MP3 is much newer and compresses the file, giving much smaller file sizes.
In this case, what do you mean by "header"? Are you looking for content information? If you are, you can read the last 128 bytes of the file, which make up the ID3 tag. It's plain ASCII and it's well documented on the internet.
Are you currently using the sound VIs to read the file? How about using media player's ActiveX interface (if you're using windows)?
07-12-2005 03:28 AM
I'm creating a database for mp3s and i'm trying to get the header data (not ID3) of each mp3s, and I don't want to use activex.
Does anybody know how to go about it?
07-12-2005 03:55 AM
07-12-2005 03:56 AM
07-12-2005 04:11 AM
07-12-2005 04:18 AM
I've read information on mp3 and its anatomy. If i'm able to get the first header of the first frame, i'm able to count the number of frames and extract information from the header of the first frame and use it my database.
with mp3 source code they use pointers. I'm using labview 7.1.
07-12-2005 06:31 AM
I had a quick read of this page, and made the following VI as an example for how to turn the header into a boolean array, which you can now analyze.
If I understand correctly, you will still need to find the header, because there is no gurantee that it will be at the beginning of the file. I'm sure you can convert the entire file into a boolean array and look for 11 elements in a row, but that would probably be inefficient and inaccurate. Also, I'm fairly sure that there are better ways to get the bit array using the VIs in the Advanced>>Data Manipulation palette.
07-13-2005 12:09 AM
Hi tst,
I've opened through one whole and displayed it in a string indicator, but it looks exactly the same as viewing mp3 through word pad.
How could I compare for 11111111111, if i can't check it if its right.
07-13-2005 02:36 AM