home *** CD-ROM | disk | FTP | other *** search
/ modiromppu / modiromppu.iso / PROGRAMS / ORGPACKS / CDDA.ZIP / HOWTO401.TXT < prev    next >
Text File  |  1996-08-30  |  24KB  |  449 lines

  1.  
  2.    . . . .  Digital Audio Crew  . . . .
  3.    .                                  .
  4.    .       .______  ___ ______. .     .
  5.    .     .:\_ .  \/   \\_  .  \:..    .
  6.    .     ../ ./  / <\  \/ ./__/.      .
  7.    .    .:<_____<____\  >___  >: .    .
  8.    .       .mr!       \/    \/:.      .
  9.    .                                  .
  10.    . . . . . .  MP3 How-To  . . . . . .
  11.  
  12.  
  13.    DAC MP3 "Mini How-To" V4.0.1
  14.    Revision [30/08/1996 EDT 00:00]
  15.    (Non-internal/First public release)
  16.    by ShereKhan/MegaByte/MindRape of DAC
  17.  
  18.  
  19.    This Mini HowTo started out as an internal document for DAC members, to
  20.    standardize how DAC music releases are ripped, encoded, and packaged.
  21.    Since then, MPEG Layer III Audio (heretofore called "MP3") has grown in
  22.    popularity rapidly. However, quality has not improved similarly and many
  23.    of the new encodings I've encountered sound like crap. Most people who
  24.    have approached DAC (and I'm sure this is even more the case for the
  25.    online community in general) just do not have the experience in recording
  26.    digital audio, nor the familiarity with encoding MP3 needed to produce
  27.    the near-perfect quality we expect in all DAC releases. Hopefully this
  28.    guide will help you achieve the purest possible encodes from your CDs as
  29.    well.
  30.                                          
  31.    Before going further, you need to get latest MP3 encoder, L3ENC v2.60 for
  32.    DOS (Linux/SunOS/NeXT versions are also available if you prefer), one or
  33.    more of the CD-ripping utilities mentioned in this guide (CDDA, DIDO, DAC,
  34.    CD-Grab Pro), and a good WAV-editing program such as CoolEdit95, Sound
  35.    Forge/32, or GoldWave. DAC members also need the current release NFO and
  36.    DIZ files. Please read through this ENTIRE HowTo, before running to one
  37.    of us for help!
  38.  
  39.    Many of these tools can be found at MindRape's DAMAGED CYBERNETICS page at:
  40.   
  41.      http://www.futureone.com/~damaged
  42.  
  43.    Good Luck!
  44.  
  45.  
  46.    1.  Resources for DAC members
  47.  
  48.       1.1  /DAC-PAK on the #DAC bot(s)
  49.  
  50.            All the ripping/encoding utilities, plus the current NFO and DIZ
  51.            for packaging into releases (as well as this How-To) are available
  52.            from the channel bot. Always make sure you are using the LATEST
  53.            versions of the NFO/DIZ before finalizing any release!
  54.  
  55.       1.2  DAC WWW Page (ask members for address)
  56.  
  57.            fRSTGUMP has put up a quick WWW page for DAC, with the latest NFO,
  58.            DIZ, and a table of DAC releases (not always 100% current, but the
  59.            closest thing). The server is secured with htaccess (DAC internal
  60.            use ONLY); if you have access to the channel bot, you should be
  61.            able to use the same login and passwd for the WWW page.
  62.  
  63.  
  64.    2.  Ripping a song from CD (direct digital copy)
  65.  
  66.       2.1  Mitsumi CD-ROM drives
  67.  
  68.            Before pulling out your hair trying to rip with a Mitsumi CD-ROM,
  69.            I should tell you that most (all?) Mitsumi CD-ROM drives cannot
  70.            read "raw" CDDA data (Read_Long) and therefore cannot be used to
  71.            aquire CD-audio by direct digital copy with ANY program; this
  72.            includes CDDA/DIDO/DAC/etc. Mitsumi FX001D/FX001DE (2X) and the
  73.            newer FX400* (4X) drives are known to have this "defect"; the
  74.            manufacturer has purposely not included Read_Long in their drive
  75.            logic or drivers to prevent copyright infringement (lesson: don't
  76.            buy Mitsumi from now on.)
  77.  
  78.       2.2  CDDA Version 1.4 build 12c [DOS]
  79.  
  80.            CDDA is a DOS-based, command line CD ripping tool which allows
  81.            you to copy CD redbook audio DIRECT to WAV without recording or
  82.            sampling of any kind ... This type of "copying" gives the cleanest
  83.            possible results and is MUCH preferred over trying to record the
  84.            playback from the CD with CoolEdit or GoldWave. Direct copying, or
  85.            "ripping" as we like to call it, gives you the maximum dynamic
  86.            range from the songs, and thus NO clipping (which is a real problem
  87.            with the "record" technique), since with CDDA  you are copying the
  88.            original signal strengths too with every signal peak. Think of it
  89.            as "Automatic Level Detection" for your CDROM drive. Also ripping
  90.            does not have problems with "skipping" due to buffer over/underrun
  91.            you often encounter when record CD playback using SoundRecorder,
  92.            CoolEdit, etc.
  93.                                     
  94.            MegaByte has done a quick comparison test of CDDA and DIDO4 and
  95.            lists a few pros and cons for CDDA:
  96.  
  97.              PROS: De-jittering technique MAY improve sound quality (unknown)
  98.  
  99.              CONS: Must use /o switch to override CD copy protection.
  100.                    DOS based; may not work under windows on some systems.
  101.                    Does not work on some systems.
  102.  
  103.            If you are using Win95, you will need to first make sure you are
  104.            using the DOS or 16-bit (Real Mode) Win3.x drivers for your CD-ROM
  105.            drive, as the Win95 built-in drivers are NOT compatible with CDDA
  106.            or any of the other direct copy utilities! Also make sure to read
  107.            the manual with CDDA and use the included tester programs to see
  108.            if your CDROM drive is capable of "long reads" (if not, you can't
  109.            do a direct rip). These test utilities (for DOS) are useful even
  110.            if you decide to use another ripper than CDDA.
  111.            
  112.            A sample command line to rip a track off an *IDE* CD-Rom drive with
  113.            CD-DA might be: "CDDA /t [track] /m /f [filewav.wav] /w /o" PLEASE
  114.            read the CDDA manual to see what switches you need to use ... ATAPI,
  115.            SCSI, IDE all need different command line options! Additional info
  116.            from MegaByte's comparison tests on CDDA's dejitter feature:
  117.  
  118.              [From CDDA.DOC:]
  119.              > "Many CDs have been mastered from digital sources. In this
  120.              > case the source may have been synthesized digitally which gives
  121.              > absolutely perfect sounds which are very repetitive and exactly
  122.              > the same. When this happens, it may possibly confuse the jitter
  123.              > correction routines. There is not a lot I can do about it at
  124.              > the moment, and there is less that any of the other programs
  125.              > like mine can do."
  126.  
  127.              In one particular CD, which had repeating sound patterns, CDDA
  128.              had a dejitter error. In another CD, which had more "analog"
  129.              music, the error wasn't preesent. This may or may not be a
  130.              result of the problem expressed in the above quote.
  131.                        
  132.       2.3  DIDO 4.0 [Windows]
  133.  
  134.            DIDO4 is a Windows-based CD ripping tool with a GUI. Like CDDA, it
  135.            copies the RedBook audio data directly from the CD to WAV. I have
  136.            not personally tested it but from MegaByte's comparison testing,
  137.            DIDO4 sounds very good. As with the other ripping utilities, you
  138.            need to use the *DOS* or older 16-bit "real mode" Win3.1 CDROM
  139.            drivers if you're under Win95. Some pros/cons from MegaByte:
  140.  
  141.              PROS: GUI, easy to use, easy track view/recording time selector.
  142.  
  143.              CONS: Has errors on some systems in accessing CD-ROM drives.
  144.                    (see the workaround below)
  145.                    Sometimes produces synchronization errors.
  146.                    (can be worked around by changing end time a little)
  147.  
  148.            MegaByte's workaround for the DIDO4 errors:
  149.  
  150.              DIDO4 seems to have some difficulties reading CD's under Windows.
  151.              On [my] computer it stalls at 0 sectors on the read. To work
  152.              around this problem, eject the CD and reinsert it at the Save
  153.              File dialog box. Remember to hold the shift key under Windows 95
  154.              to prevent Autoplay. Also, disabling Flexi-CD can solve some
  155.              problems. If the CD is ejected, reinserted, and then "ok" in the
  156.              save dialog box is clicked, recording works... as long as no
  157.              autoplay program has opened.
  158.  
  159.       2.4  DAC 2.2 [DOS]
  160.  
  161.            People who have not been able to use CDDA has reported success
  162.            with DAC in some cases. DAC has a nicer menu interface and is
  163.            fairly easy to use. However, we do not have a registered version
  164.            of DAC, which means you cannot do partial rips (to test sound
  165.            quality, as you can with DIDO4 or CDDA) ... only the full track.
  166.            Also at least one of the optimization switches is missing in the
  167.            shareware version of DAC.
  168.  
  169.            Here is a quick start to using DAC to rip CD tracks:
  170.  
  171.              Load up DAC 2.2
  172.              Select the track to copy
  173.              Go to Action
  174.              Select copy
  175.              Pretty easy eh?
  176.  
  177.            Of course, read the docs for DAC to see if you need to enable any
  178.            special options. As with CDDA and DIDO, you'll have to use the DOS
  179.            or old 16-bit "real mode" Win3.x CD-ROM drivers under Win95, NOT
  180.            the built-in Win95 miniport drivers! (Win95 CDROM drivers usually
  181.            don't support CDDA/"raw" mode).
  182.  
  183.       2.5  CD-Grab Pro V3.21 [DOS]
  184.  
  185.            This is similar to CDDA, just a bit older. Haven't used this yet,
  186.            anyone want to review it and let me know if it's good? I know that
  187.            this ripper DOES have dejitter functions.
  188.  
  189.       2.6  General problems ripping in Win95
  190.  
  191.            Some Win95 users may encounter problems when starting a copy with
  192.            CDDA, even if they have the correct DOS/real-mode drivers installed
  193.            and their drive DOES support Read_Long ... this can often be fixed
  194.            by starting up CD Player (in Win95) and putting the CD-ROM into
  195.            pause mode; while the player is still paused, open a DOS window
  196.            (if you're using a DOS-based ripper) and start copying the audio
  197.            with CDDA/DIDO/etc.
  198.       
  199.       2.7  Using a CD-R (burner)
  200.  
  201.            If you are lucky enough to have use of a CD-R burner, you can use
  202.            EZ-CD Pro (for Win3/Win95) or one of the various programs bundled
  203.            with the burner to direct COPY audio tracks from any CD. Typically
  204.            the read mechanism in CD-R drives are higher quality than regular
  205.            CD-ROMs and the drivers/software are made with copying in mind.
  206.  
  207.  
  208.    3.  Sampling (recording output from CD player)
  209.  
  210.        Although this method of aquiring a CD track as WAV isn't recommended,
  211.        many people either have incompatible hardware (Mitsumi or other CDROM
  212.        incapable of Read_Long) or software (try booting to DOS mode if you use
  213.        Win95, though!) and thus have no other choice than to sample the audio.
  214.        Unfortunately, many people who CAN (and should) use direct digital copy
  215.        are still sampling their CDs, either out of ignorance or laziness. This
  216.        accounts for MANY of the shittier sounding MP3 encodes out there.
  217.  
  218.        You'll need good WAV-editing tools if you want to do a good sampling
  219.        job; the "standard" recorder/editor programs bundled with Sound Blaster
  220.        or PAS16, etc. usually aren't flexible enough and lack the buffering
  221.        features required to make a skip-free recording. Instead, you should
  222.        use a high-quality package such as SoundForge32, CoolEdit95, or Gold
  223.        Wave to do your sampling and post-processing (read on). A section on
  224.        using these programs will be in a future version of this How-To ...
  225.  
  226.  
  227.    4.  Examining the WAV prior to compression
  228.  
  229.        This is perhaps the MOST IMPORTANT STEP quality-wise in the process!
  230.        It is critical that you load the WAV you're ripped with CDDA/DIDO4/etc
  231.        into CoolEdit95 or SoundForge32 (or similar wave editors) and examine
  232.        it for defects, clipping, too quiet, etc. Visually you can see defects
  233.        that might not be noticible to the ear until AFTER compression (then
  234.        it's much more annoying to fix!) Here are some common problems you might
  235.        find in your freshly ripped (or if you cannot rip, recorded *bleh*) WAV:
  236.  
  237.       4.1  Clipping
  238.  
  239.            If you hear a tiny "pops" during playback of your WAV, and/or see
  240.            a lot of sound peaks that look cut off (pops and cut-off waveforms
  241.            should coincide) you've clipped the audio. This shouldn't happen
  242.            with direct ripping, but with recording it happens often. You'll
  243.            have to do it over if you have any noticible clips. Remember that
  244.            different parts of the same song may have very different volume
  245.            levels, so it isn't sufficient to just listen to one part of the
  246.            WAV when determining the correct recording level (if you sampled).
  247.  
  248.       4.2  Too quiet
  249.  
  250.            The other common problem is the entire wave is too quiet. When you
  251.            view a properly ripped/recorded WAV in SoundForge or CoolEdit, etc,
  252.            the loudest parts of the song should have peaks that ALMOST reach
  253.            the top/bottom edges of the waveform display; if even the loudest
  254.            peaks never get close to the limits, then you'll either have to set
  255.            the recording level a bit higher (if you're recording), or use the
  256.            "Normalize" feature of CoolEdit/SoundForge (do this ONLY if you did
  257.            a direct digital copy and know that no noise was introduced, other
  258.            wise the flaws will be amplified) Again, IF you did a direct rip,
  259.            and the resulting WAV is still very quiet, the Normalize (sort of
  260.            a smart amplify) function to maximize the dynamic range for the
  261.            entire file. Now you should see the loudest peaks in the song JUST
  262.            touch the top/bottom margins, without blowing out the passages in
  263.            the song that are supposed to be quiet.
  264.  
  265.       4.3  Rough ends
  266.  
  267.            After you're satisfied with the quality of your WAV rip, use your
  268.            wave editor to create "smooth ends" for the song. In CoolEdit95,
  269.            Select Entire Wave, use the "Envelope" function and choose "Smooth
  270.            Ends". If you cut the beginning or end of the song accidentally (or
  271.            on purpose) you might have to use the "fade-in" and or "fade-out"
  272.            tools to make a nice intro/ending. Finally, save to Microsoft PCM
  273.            (.WAV) at 44100Hz/16-bit/stereo.
  274.  
  275.  
  276.    5.  Compressing from WAV to MPEG Layer III Audio (MP3)
  277.  
  278.       5.1  L3ENC 2.60 Registered [DOS] - ftp.fhg.de /pub/layer3/
  279.  
  280.            This is the encoder for DOS. Make SURE you register the encoder,
  281.            otherwise many of the command-line options will be locked out,
  282.            ones DAC members will need to use for their releases! (Registration
  283.            codes are below:
  284.  
  285.            > From: Psychotron <mikead@slip.net>
  286.            > X-Sender: ShereKhan <ursus@alpha.c2.org>
  287.            > Newsgroups: alt.binaries.sounds.music,alt.binaries.sounds.utilities
  288.            > Subject: THE "FIRST" REG CODES 4 WINPLAY3 AND L3ENC This iz kewl!!!
  289.            > Date: Tue, 06 Aug 1996 23:28:13 -0700
  290.            > 
  291.            > You may like to know that these are the very first reg
  292.            > codes for both "l3enc" and "WinPlay3", They will not make
  293.            > the programs run any better then from any other code but
  294.            > if you look at the serial number on your program after
  295.            > you reg your software with these number it will say 0001.
  296.            > kina kewl isn't it. Get it while you can
  297.            >
  298.            > L3ENC    = 909GCB0A091E-9
  299.            > WINPLAY3 = 100011-301000-5000
  300.  
  301.              NOTE: Here is another reg code for WinPlay3 v1.40
  302.              (from WinPlay3 v1.30, when it was freeware):
  303.  
  304.              UserName=ISO FreeWare
  305.              RegistrationCode=222221-025226-0002
  306.  
  307.            Here is a sample commandline for compressing a WAV (infile.wav) to
  308.            MP3 (outfile.mp3) REMEMBER YOU MUST REGISTER THE ENCODER FIRST!:
  309.  
  310.              l3enc [infile.wav] [outfile.mp3] -br 128000 -crc
  311.     
  312.            The -br 128000 tells L3ENC to produce a MP3 that will playback at
  313.            at 128000 bit/s ... this is the optimum compromise setting to get
  314.            the maximum compression ratio for CD-quality music while still
  315.            producing a MP3 that has virtually all the clarity of the original
  316.            song and a very respectable dynamic range (16khz rolloff at -br
  317.            128000) Compare this to the original CD-audio specification, which
  318.            rolls off at 22khz; humans can only hear up to about 20khz besides,
  319.            and virtually no natural sources, and very few artificially created
  320.            sounds you might find on a CD ever approach 20khz.
  321.  
  322.            The default for the shareware L3ENC (pre-2.60) USED to be -br
  323.            128000 but for 2.60 and newer, it has been changed to -br 112000.
  324.            We at DAC feel a 112k bitrate sacrifices too much dynamic range
  325.            for a minimal gain in compression ratio, and therefore recommend
  326.            that -br 128000 be used for all encodes from CD sources.
  327.  
  328.            An average 3-4 minute song will need about 10,000 frames to encode;
  329.            if you're smart, you'll encode only about 1,000 frames or so the
  330.            first time around (press CTRL+C to stop the encoder) to see if the
  331.            MP3 sounds good (no popping or dropouts, not too quiet) When you
  332.            seem to have a good test encode then delete the partial MP3 and
  333.            make the full-length MP3. L3ENC v2.60 has a nice progress indicator
  334.            which tells you what % of the encoding is completed.
  335.  
  336.            If you have a fast computer (>P100) then you can try using the
  337.            "High Quality" switch in L3ENC (-hq). This will make the encoder
  338.            do extra quality checking so no errors are produced in the final
  339.            MP3 file. WARNING: this may take up to 3x as long (according to
  340.            RainMkr). Basically, -hq possibly may give you slightly higher
  341.            quality MP3, but at greatly reduced encoding speed. Try it for
  342.            yourself.
  343.  
  344.            You better have a fast CPU, like P133 -> PP200, if you're going to
  345.            do a lot of encoding. ESPECIALLY if you want to use the -hq switch.
  346.            Otherwise do the encoding at night while you are sleeping, watching
  347.            tele, or whatnot. Encoding a 5 minute song on a i586-133 takes
  348.            approximately 15-20 minutes, while on a i486-80 it takes almost
  349.            1 hour. L3ENC is a 32-bit DOS executable, but it will run under
  350.            Win95/NT DOS boxes just fine. In fact. many people have run 4 DOS
  351.            sessions parallel, encoding 4 songs at once without problems.
  352.                                                                 
  353.       5.2  Linux version of L3ENC V2.60
  354.  
  355.            Some people report that the unix L3ENCoder is faster than the DOS
  356.            version, although I haven't tested it myself. Should work exactly
  357.            the same as DOS version. There is no Linux realtime player like
  358.            WinPlay3, unfortunately. Also since I don't know which tools you'd
  359.            use to rip the cd audio to WAV, I'm not sure it would be practical
  360.            to encode MP3 with Linux unless you also had DOS bootable on the
  361.            same machine (FTPing 40-50MB isn't fun, even on a T1).
  362.  
  363.  
  364.    6.  Testing the completed MPEG3 file
  365.  
  366.       6.1  Listening test
  367.    
  368.            After you've finished compressing the MP3 you'll want to check it
  369.            over thoroughly of course ... Listen to it with WinPlay3 V1.40
  370.            REGISTERED (unregged V1.40 has a 20-second time limit for playback)
  371.            The reg code for WinPlay3 V1.40 is listed above. Make sure you have
  372.            at least a P90 to be able to playback at full 44100Hz/16-bit/stereo
  373.            output. You should not hear ANY nasty clicks, pops, or other defect
  374.            that aren't heard on the CD; these might mean doing the rip/encode
  375.            again. Also, if the song is VERY quiet, you might have set the
  376.            record level too low, or forgot to Normalize the WAV before
  377.            compressing (if you ripped). Lesson: be careful when you're making
  378.            the source WAV; most problems aren't from the L3ENC, so save time
  379.            by making sure the input WAV is pristine before encoding!
  380.  
  381.  
  382.    7.  Packaging for DAC release
  383.  
  384.        Non-DAC members can probably skip this section, which simply outlines
  385.        our procedure for putting together a release, starting from the freshly
  386.        encoded MP3 song.
  387.                        
  388.       7.1  Generate a MD5 checksum
  389.  
  390.            After you've finished encoding your song(s) with L3ENC, use the
  391.            utility MD5SUM to calculate a MD5 checksum for the file. This is
  392.            for the release list maintainer to archive, as it allows you to
  393.            see if a file is the same as the checksum you originally generated
  394.            (test for dupes, other groups ripping off DAC releases, etc). The
  395.            way to use MD5SUM is as follows:
  396.  
  397.              md5sum -bv file.mp3
  398.  
  399.            This will print the MD5 sum for file.mp3 to the screen; put it into
  400.            the appropriate place in the DAC.NFO file (which you will e-mail to
  401.            dac@jt.org as well as package into the release ZIP ... read on)
  402.  
  403.            If you have a whole list of files, you can generate a set of their
  404.            MD5 checksums by piping the output to a text file:
  405.  
  406.              md5sum -bv *.mp3>md5sum.txt
  407.  
  408.            After the output file is generated (md5sum.txt) you can later check
  409.            any of the MP3 files against their checksums in the md5sum.txt
  410.            (tells  you if the files are identical). This is accomplished by
  411.            executing:
  412.  
  413.              md5sum -cv md5sum.txt
  414.  
  415.            NOTE: md5sum.exe will expect the files to check to be in the same
  416.            locations as were defined in the input list (md5sum.txt), so if you
  417.            later move the MP3s you should edit the paths in the MD5SUM.TXT to
  418.            reflect that.
  419.  
  420.       7.2  Filling out the NFO/DIZ
  421.  
  422.            This part is probably the easiest, just fill in all the appropriate
  423.            checkboxes and blanks in the DAC.NFO and DAC.DIZ. Remember to
  424.            rename DAC.DIZ to File_ID.DIZ before you zip up the package! Always
  425.            use the most current NFO and DIZ from ShereKhan or the channel bot.
  426.  
  427.       7.3  Email NFO to fRSTGUMP
  428.  
  429.            Don't forget to Email your completed NFO to fRSTGUMP so he can keep
  430.            an accurate list of our releases ... This is particularly important
  431.            to avoid duping already encoded songs by CDA or other groups.In the
  432.            near future this step may be replaced with a WWW forms inteface ...
  433.  
  434.       7.4  Releasing the package
  435.  
  436.            Each release should include a filled-out DIZ, NFO (always use the
  437.            latest available) and the actual MP3 song. Make sure the ZIP file
  438.            is named DAC-????.zip and FTP the completed package to the archive
  439.            site and/or any mirror sites DAC is feeding at the time. Also make
  440.            sure you DCC a copy of the ZIP to whomever is managing the current
  441.            offer bot(s).
  442.  
  443.  
  444. --
  445. DAC MP3 "Mini How-To" V4.0.1
  446. Revision [30/08/96 EDT 00:00]
  447. by ShereKhan, et al of DAC
  448.  
  449.