Chinaunix首页 | 论坛 | 博客
  • 博客访问: 377848
  • 博文数量: 95
  • 博客积分: 1773
  • 博客等级: 上尉
  • 技术积分: 1641
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-17 23:28
  • 认证徽章:
文章分类
文章存档

2018年(2)

2017年(10)

2016年(7)

2015年(48)

2014年(2)

2013年(2)

2012年(2)

2011年(7)

2010年(7)

2009年(3)

2008年(1)

2007年(4)

分类: LINUX

2017-09-04 15:39:18

Debian下安装了libcdio-utils 工具包后就可以方便的实现音轨抓取。
主要涉及其中的 cd-paranoia工具。
cd-paranoia使用方法:
  1. cd-paranoia [选项] <> [输出文件]
其中选项有很多参数开关实现不同的功能;是CD设备或者镜像文件(支持ISO和nrg等格式);输出文件是可选的,对单独音轨来说决定输出位置。
一般进行批量抓取简单的是
  1. cd-paranoia -d <> -B
这将从中抓取所有音轨输出到当前目录,并分别以轨道序号命名存储为wav文件。

附cd-paranoia详细选项说明(待翻译)
:
  1. USAGE:
      cd-paranoia [options] [outfile]


    OPTIONS:
      -v --verbose                    : extra verbose operation
      -q --quiet                      : quiet operation
      -e --stderr-progress            : force output of progress information to
                                        stderr (for wrapper scripts)
      -l --log-summary         : save result summary to file
      -V --version                    : print version info and quit
      -Q --query                      : autosense drive, query disc and quit
      -B --batch                      : 'batch' mode (saves each track to a
                                        seperate file.
      -s --search-for-drive           : do an exhaustive search for drive
      -h --help                       : print help


      -p --output-raw                 : output raw 16 bit PCM in host byte
                                        order
      -r --output-raw-little-endian   : output raw 16 bit little-endian PCM
      -R --output-raw-big-endian      : output raw 16 bit big-endian PCM
      -w --output-wav                 : output as WAV file (default)
      -f --output-aiff                : output as AIFF file
      -a --output-aifc                : output as AIFF-C file


      -c --force-cdrom-little-endian  : force treating drive as little endian
      -C --force-cdrom-big-endian     : force treating drive as big endian
      -n --force-default-sectors  : force default number of sectors in read
                                        to n sectors
      -o --force-search-overlap    : force minimum overlap search during
                                        verification to n sectors
      -d --force-cdrom-device   : use specified device; disallow
                                        autosense
      -g --force-generic-device : really an alias for -d. Kept for
                                        compatibility.
      -S --force-read-speed       : read from device at specified speed
      -t --toc-offset             : Add sectors to the values reported
                                        when addressing tracks. May be negative
      -T --toc-bias                   : Assume that the beginning offset of
                                        track 1 as reported in the TOC will be
                                        addressed as LBA 0.  Necessary for some
                                        Toshiba drives to get track boundaries
                                        correct
      -m --mmc-timeout            : Set SCSI-MMC timeout to seconds.
      -O --sample-offset          : Add samples to the offset when
                                        reading data.  May be negative.
      -z --never-skip[=n]             : never accept any less than perfect
                                        data reconstruction (don't allow 'V's)
                                        but if [n] is given, skip after [n]
                                        retries without progress.
      -Z --disable-paranoia           : disable all paranoia checking
      -Y --disable-extra-paranoia     : only do cdda2wav-style overlap checking
      -X --abort-on-skip              : abort on imperfect reads/skips
      -x --test-flags=mask            : simulate CD-reading errors of ilk-mask n
                                        mask & 0x10  - simulate underrun errors


    OUTPUT SMILIES:
      :-)   Normal operation, low/no jitter
      :-|   Normal operation, considerable jitter
      :-/   Read drift
      :-P   Unreported loss of streaming in atomic read operation
      8-|   Finding read problems at same point during reread; hard to correct
      :-0   SCSI/ATAPI transport error
      :-(   Scratch detected
      ;-(   Gave up trying to perform a correction
      8-X   Aborted (as per -X) due to a scratch/skip
      :^D   Finished extracting


    PROGRESS BAR SYMBOLS:
    No corrections needed
       -    Jitter correction required
       +    Unreported loss of streaming/other error in read
       !    Errors are getting through stage 1 but corrected in stage2
       e    SCSI/ATAPI transport error (corrected)
       V    Uncorrected error/skip


    SPAN ARGUMENT:
    The span argument may be a simple track number or a offset/span
    specification.  The syntax of an offset/span takes the rough form:


                           1[ww:xx:yy.zz]-2[aa:bb:cc.dd]


    Here, 1 and 2 are track numbers; the numbers in brackets provide a
    finer grained offset within a particular track. [aa:bb:cc.dd] is in
    hours/minutes/seconds/sectors format. Zero fields need not be
    specified: [::20], [:20], [20], [20.], etc, would be interpreted as
    twenty seconds, [10:] would be ten minutes, [.30] would be thirty
    sectors (75 sectors per second).


    When only a single offset is supplied, it is interpreted as a starting
    offset and ripping will continue to the end of he track.  If a single
    offset is preceeded or followed by a hyphen, the implicit missing
    offset is taken to be the start or end of the disc, respectively. Thus:


        1:[20.35]    Specifies ripping from track 1, second 20, sector 35 to
                     the end of track 1.


        1:[20.35]-   Specifies ripping from 1[20.35] to the end of the disc


        -2           Specifies ripping from the beginning of the disc up to
                     (and including) track 2


        -2:[30.35]   Specifies ripping from the beginning of the disc up to
                     2:[30.35]


        2-4          Specifies ripping from the beginning of track two to the
                     end of track 4.


    Don't forget to protect square brackets and preceeding hyphens from
    the shell...


    A few examples, protected from the shell:
      A) query only with exhaustive search for a drive and full reporting
         of autosense:
           cd-paranoia -vsQ


      B) extract up to and including track 3, putting each track in a separate
         file:
           cd-paranoia -B -- "-3"


      C) extract from track 1, time 0:30.12 to 1:10.00:
           cd-paranoia "[:30.12]-1[1:10]"


    Submit bug reports to bug-libcdio@gnu.org


阅读(114) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册