mp3 restore

ATROX mp3-restore v0.5

by Adrian Dabrowski

(eMail: mp3restore_at_atrox_dot_at )

What to do with corrupted mp3-Files ?
Do not delete them !


This Programm (with Source) [24 KB] can correct corrupt mp3 (downloaded via http with netscape)! Please read the following text (readme.txt):
Quick hack in C
22.Nov 97

   This program corrects mp3-filez downloaded as "text/plain". It should 
   also correct any other file downloaded this way... but never tested.
	
   Please keep in mind that using mp3-files could be illegal.

   You can distribute this program freely as long as the copyright-notice is
   not removed or altered and it is distributed with the source-code and this
   readme.
   This program is WITHOUT ANY WARRANTY.

   Code should be 100% ANSI C... so there should be no problem
   with compiling it.
   Tested:
     * W32 Console-Application (VC++) (with Long filename-Support!)
     * Dos-App (Borland C)

USE:
  a) From Commandline
     a1) Using a.mp3 and writing to b.mp3:
	   mp3rest a.mp3 b.mp3
     a2) Using a.mp3 and writing to the same file:
	   mp3rest a.mp3
	 In this case, the program renames the old file to "mp3rest.bak".
	 Attention: An existing backupfile is deleted without warning!
  b) From the Explorer
     see "TiPS"

TiPS:
  You can drag'n'drop a corrupt mp3 to "mp3rest.exe" in the explorer-
  window. Drop the file and the restoring is started in a Dos-box.

FAQ
  Q: What is the problem with downloading mp3 with Netscape?
  A: This Problem seems to appear only under Windows because PCs use
     CR+LF instead of a single LF (LineFeed) in textfiles. Many Webadmins
     did not set a correct mime-type for "mp3" so the standard mime-type
     is used (text/plain). If Netscape recieves something with this
     mime-type it expands every LF to CR+LF.
     Solution:
     *) Use "mp3rest" :))
     *) Set up a correct mime-type (If you are a Webadmin). Use
	audio/x-mpeg or audio/mpeg
     *) Use another protocol to download (if possible... e.g: ftp)
     *) Use another Browser to download (lynx... )
  Q: Is this a bug of Netscape ?
  A: No. This is an error in configuration of the webserver you are
     downloading from. (It sends the mp3 with the information that it
     is a plain textfile.)
     Converting textfiles for PCs (LF-> CR+LF), is a good function of
     Netscape Navigator. So you normaly do not have problems using
     downloaded textfiles with DOS/Win programs. 

BUGs:
* If you use the drag'n'drop method, the program put its backupfile on
  the desktop, and not in the folder of the mp3-file.
  If you start the program from commandline, it put the backupfile (only
  if you do not give a name for the new mp3-file) to the current folder.
* Useing the same filename as 1st and 2nd argument cuts down the file to
  1 Byte! So be carefull!

Adrian Dabrowski
http://www.atrox.at/projects/mp3/

Please mail me bugs,... etc.
DO NOT mail me things like "How do I use the program" or 
"Where can I get mp3-files".
Thank you.
atrox.at
other Projects
SMS Sending
mp3 repair
PIC 877 Ethernet
Wearable Computing

Date: Nov 1997
Status: discontinued
This is a rather quick hack in C from end of 1997. I was very annoyed about the big number of corrupt mp3s, So I've analyzed it, and wrote this program as solution.
Since the audio/mpeg MIME-Type is now common on all webservers, only very vew still need this program.
Thats why you should not expect any further updates.
If not otherwise marked: © Copyright 2000,2001,2002 Adrian Dabrowski. All rights reserved.     All trademarks belong to their respective owners.
  I am not liable for content of other sites which you may reach directly or indirectly by following external links.