📄 cd_ripping.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#cd_ripping" class="toc">CD Ripping</a></span></div><ul class="toc"><li class="clear"><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#hardware_setup" class="toc">Hardware Setup</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#software_setup" class="toc">Software Setup</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#ripping_a_cd" class="toc">Ripping a CD</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#encoding" class="toc">Encoding</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#screenshots" class="toc">Screenshots</a></span></div></li></ul></li></ul></li></ul></div></div><h1><a name="cd_ripping" id="cd_ripping">CD Ripping</a></h1><div class="level1"><p> With the ability to interact with <a href="compactflash_ide_ata_nand_flash_-_interface_card.html" class="wikilink1" title="compactflash_ide_ata_nand_flash_-_interface_card.html">IDE devices</a> now, a common topic that comes up is ripping CDs. Lets dive in.</p></div><!-- SECTION [1-191] --><h3><a name="hardware_setup" id="hardware_setup">Hardware Setup</a></h3><div class="level3"><p> There is a quirk at the moment with the addon card where you cannot hook up a slave device (typically a cdrom) without a master device (typically a hard drive). So if you are only hooking up one device, make sure your jumper settings has it set as master.</p><p>A typical setup is to have a hard disk hooked up as master with the cdrom hooked up as slave. That way you can rip the full cdrom to the hard drive before encoding.</p><p>For in depth hardware details, please see <a href="compactflash_ide_ata_nand_flash_-_interface_card.html#ide_ata_introduction" class="wikilink1" title="compactflash_ide_ata_nand_flash_-_interface_card.html">this page</a>.</p></div><!-- SECTION [192-770] --><h3><a name="software_setup" id="software_setup">Software Setup</a></h3><div class="level3"><p> The standard ripping program in the Linux world is <a href="http://www.xiph.org/paranoia/" class="urlextern" title="http://www.xiph.org/paranoia/" rel="nofollow">cdparanoia</a>. However, since this application uses floating point and the Blackfin has to emulate all floating point instructions, we will use a fixed point implementation called <a href="http://vertigo.fme.vutbr.cz/~stibor/dagrab.html" class="urlextern" title="http://vertigo.fme.vutbr.cz/~stibor/dagrab.html" rel="nofollow">dagrab</a>.</p><p>This has been integrated into the uClinux-dist already, so you just need to select it in the user/vendor customization menu.</p><pre class="code">Miscellaneous Applications ---> --- Audio tools [*] dagrab</pre></div><!-- SECTION [771-1326] --><h3><a name="ripping_a_cd" id="ripping_a_cd">Ripping a CD</a></h3><div class="level3"><p> Running dagrab is pretty straight forward. </p><pre class="code">root:~> dagrab --longhelpdagrab S0.513 -- dumps digital audio from IDE CD-ROM to riff wave filesUsage: dagrab [options] [track list | all]Options: -v verbose execution --help short help -i display track list --examples examples of using -d device set cdrom device (default=/dev/cdrom) -n sectors sectors per request (8); beware, higher values can *improve performance*, but not all drives works fine -J turn jitter correction filter on -j delta delta for jitter correction filter (24) -f file set output file name: (-f - outputs to stdout) embed %02d for track numbering (no CDDB mode) or variables in CDDB mode (see below) -m mode default mode for files (octal number) -s enable free space checking before dumping a track -e string executes string for every copied track embed %s for track's filename (also see -f) -C or -N use CDDB name, changes behavior of -f's parameter -H host CDDB server and port (de.freedb.org:888) -D dir base of local CDDB database -S save new CDDB data in local database (implies -C) CDDB variables for -f and -e: (use lowcases for removing slashes) @TRK Track name @FDS Full disk name (usually author/title) @AUT Disk author (guessed) @NUM Track number @DIS Disk name (guessed) @GNR Genre @YER Year</pre><p>To grab all the tracks: </p><pre class="code">root:~> dagrab -d /dev/hdb alldagrab: Track 1 dumped at 8.23x speed in 00:00:24, jitter corrections offdagrab: Track 2 dumped at 10.73x speed in 00:00:13, jitter corrections off</pre><p>To grab track 1 and listen to it: </p><pre class="code">root:~> dagrab -d /dev/hdb -f - 1 | vplay</pre></div><!-- SECTION [1327-3445] --><h3><a name="encoding" id="encoding">Encoding</a></h3><div class="level3"><p> At the moment we don’t have any documentation for encoding the raw wav files produced by dagrab into another format (like mp3, flac, ac3, etc...). You could use something like <a href="http://lame.sourceforge.net/" class="urlextern" title="http://lame.sourceforge.net/" rel="nofollow">lame</a>, but that is floating point based and so is quite slow.</p><p>Keep in mind that any encoding software you use should be fixed point based if you want significant performance. Floating point implementations will work, but again, not very well.</p></div><!-- SECTION [3446-3920] --><h3><a name="screenshots" id="screenshots">Screenshots</a></h3><div class="level3"><p> We have some pictures of the hardware in action.</p><p><a href="media/cd-ripper-side.jpg" class="media" target="_blank" title="cd-ripper-side.jpg"><img src="media/cd-ripper-side.jpg" class="media" alt="" width="200" /></a> <a href="media/cd-ripper-front.jpg" class="media" target="_blank" title="cd-ripper-front.jpg"><img src="media/cd-ripper-front.jpg" class="media" alt="" width="200" /></a> <a href="media/cd-ripper-bottom-expanded.jpg" class="media" target="_blank" title="cd-ripper-bottom-expanded.jpg"><img src="media/cd-ripper-bottom-expanded.jpg" class="media" alt="" width="200" /></a> <a href="media/cd-ripper-top-expanded.jpg" class="media" target="_blank" title="cd-ripper-top-expanded.jpg"><img src="media/cd-ripper-top-expanded.jpg" class="media" alt="" width="200" /></a> </p></div><!-- SECTION [3921-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -