Help - Search - Members - Calendar
Full Version: Checking Integrity Of Mpc Files
Hydrogenaudio Forums > Lossy Audio Compression > MPC
hödyr
I had a bit trouble with my harddrive and now some of my mpc files are damaged sad.gif. Is there any utility out there to check which files are okay and which are not? I would save a helluva lot of time by re-ripping only the damaged tracks.

Thanks smile.gif.
user
Use Easy MD5 Creator.
for each folder, each album, one checksum file.
Jan S.
This will of course only work if you created the checksum files after encoding and before they were possibly damaged.
lucpes
I use out_null in winamp (a friend created it for me). You'll need to adjust winamp's process to idle though...

out_null
Case
Here's one way: run mppdec on every file decoding to null device and redirect screen output to text file. You can then search the text file for messages about broken files.

Example:
create batch file "check.bat", store it somewhere in path:
for %%i in (*.mp?) do mppdec --scale 0 "%%i" /dev/null 2>> C:\report.txt

Run check.bat on every directory with mpc files:
sweep check.bat

Open file "c:\report.txt" in text editor and search for text "unexpected end of file". If you find this text you have broken files. The name of broken file is listed couple of lines before the message.
Frank Klemm
QUOTE(Case @ Sep 7 2002 - 10:33 PM)
Here's one way: run mppdec on every file decoding to null device and redirect screen output to text file. You can then search the text file for messages about broken files.

Example:
create batch file "check.bat", store it somewhere in path:
for %%i in (*.mp?) do mppdec --scale 0 "%%i" /dev/null 2>> C:\report.txt

Run check.bat on every directory with mpc files:
sweep check.bat

Open file "c:\report.txt" in text editor and search for text "unexpected end of file". If you find this text you have broken files. The name of broken file is listed couple of lines before the message.

mppdec --scale 0 .\ /dev/null 2> report.txt

On typical computers speed mainly depends on HDD speed.
Case
Oh well, I made a simple integrity scanner for MPCs. This can scan through all musepack files in one drive and report names of broken files. As a bonus it identifies files with ID3v2 tags.
Use is easy: mpcscan [-r] [directory]
(-r to work recursively, directory to work in other than current dir)

win32 binary
source
hödyr
Thanks alot Case that did the job smile.gif. I was lucky, only about 125 damaged files unsure.gif.
Somebody
Thanks for this, Case.
Case
No problem smile.gif
I made minor improvements to the tool, it now shows progress on windows titlebar and uses idle priority so computer remains usable during scanning.
guruboolez
very nice : I only have ONE of my personal files - 1 on 5000 ! - who is damaged. Downloaded files is another story wink.gif


EDIT : Thank you VERY VERY much user posted image

Now, can you did that little job tongue.gif
http://membres.lycos.fr/guruboolez/img/tagger.png

Plîîîzze I ouant it !!
sven_Bent
QUOTE(userSep 7 2002 - 07:55 PM)
Use Easy MD5 Creator.
for each folder, each album, one checksum file.
.


why not use QuicK SFV

- its free
- it work with the contex menu (trightclick on selecte files in explorer)

http://www.geocities.com/SiliconValley/Mouse/4668/
rjamorim
QUOTE(sven_Bent @ Sep 9 2002 - 01:33 PM)
why not use QuicK SFV

SFV uses CRC32 instead of MD5 (which is much better)

And there are lots of free MD5 generators, for several platforms. SFV isn't as well supported.
Jan S.
QUOTE(rjamorim @ Sep 9 2002 - 08:33 PM)
QUOTE(sven_Bent @ Sep 9 2002 - 01:33 PM)
why not use QuicK SFV

SFV uses CRC32 instead of MD5 (which is much better)

And there are lots of free MD5 generators, for several platforms. SFV isn't as well supported.

Easy DM5 Creator is very good and easy.
Hanky
QUOTE(hödyr @ Sep 7 2002 - 06:13 PM)
...now some of my mpc files are damaged sad.gif. Is there any utility out there to check which files are okay and which are not?

MPC Scan

Followup Q:

I used this program myself, and sadly I recognised that some of my mpcs were corrupt. I guess it can be brought back to one of those tagging software, because the corrupted files were all produces around the same date.
The corruption always occurs in one of the last few frames.
My question is: Is there software that can trim those last few corrupt frames so that I have valid MPC files again (MPCTrim?)

Example MPCScan output:

- Scanning -
'01a_The Lifting_R.E.M..mpc': broken after frame 10676/10677 (04:38)
'02_I've Been High_R.E.M..mpc': broken after frame 7844/7855 (03:24)
'08_Imitation Of Life_R.E.M..mpc': broken after frame 9056/9059 (03:56)
'10_Chorus And The Ring_R.E.M..mpc': broken after frame 10347/10350 (04:30)

Scanned 13 file(s)
Errors with 4
[-I]
Case
QUOTE(Hanky @ Sep 18 2002 - 10:52 PM)
Is there software that can trim those last few corrupt frames so that I have valid MPC files again (MPCTrim?)

Not yet, I'll see if I have time to make one tomorrow.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.