Does anybody know, how to write a programm which can ceck if a MP3 file is corrupt or not ?
Thanks for help,
Thomas
Printable View
Does anybody know, how to write a programm which can ceck if a MP3 file is corrupt or not ?
Thanks for help,
Thomas
Easy. Run it in Winamp and see if it crashes. (Snicker)
Seriously,
There are two ways I can think of. The first is to get an Mp3 playing OCX and load the file into it. If the OCX returns an error (Could not open file, Invalid file, etc.) then the file is corrupt. The second method involves figuring out how Mp3's are encoded and testing it byte by byte. If something is off, the file is corrupt.
I'd reccomend the first one.
-Zero the Inestimable
Play the MP3 file in the WINAMP clone in LINUX.
If you run it in windows, You may never know if it is the windows or the file that is corrrupt