libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] Retrieving DATA session from multisession audio disc


From: Robert William Fuller
Subject: Re: [Libcdio-devel] Retrieving DATA session from multisession audio disc
Date: Wed, 17 Feb 2010 08:35:01 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20091103)

Hi,

I looked at extracting CD EXTRA at one point.  I concluded that to do it
properly, you really needed to parse the extended TOC information,
especially in the case of multi-session discs.  Then, I went to grad
school :-)

It looks like there is a newer option to Linux "mount" for accessing the
extracted iso.  The manual page for mount now has "sbsector=xxx  Session
begins from sector xxx. (Since 2.3.4.)"  So, presumably you can loopback
mount it to access it, although I have not tried this.  It would look
something like this:

modprobe loop
mount -o loop,sbsector=somenumber foo.iso /mnt

Regardless, libcdio ought to have an option for this.  Perhaps it does,
but iso-info does not use it?  Unfortunately, I have an exam today, and
no time to look for this.

Rob

Eric Shattow wrote:
> Using cdrtools and extricate ( http://www.phong.org/extricate/ ) it is
> possible to extract a data session from a "CD EXTRA" audio disc.
> 
> See (5) there is no option in the "iso-info" example tool to specify a
> sector offset.
> 
> How to extract the data session from a multi-session audio cd and interact
> with the resulting "offset" ISO using libcdio tools?
> 
> # 1.) cd-info /dev/sr0
> cd-info version 0.82 i686-pc-linux-gnu
> Copyright (c) 2003, 2004, 2005, 2007, 2008 R. Bernstein
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> CD location   : /dev/sr0
> CD driver name: GNU/Linux
>    access mode: ioctl
> 
> Vendor                      : HL-DT-ST
> Model                       : DVD+-RW GSA-T21N
> Revision                    : A100
> Hardware                                  : CD-ROM or DVD
> Can eject                                 : Yes
> Can close tray                            : Yes
> Can disable manual eject                  : Yes
> Can select juke-box disc                  : No
> 
> Can set drive speed                       : No
> Can read multiple sessions (e.g. PhotoCD) : Yes
> Can hard reset device                     : Yes
> 
> Reading....
>   Can read Mode 2 Form 1                  : Yes
>   Can read Mode 2 Form 2                  : Yes
>   Can read (S)VCD (i.e. Mode 2 Form 1/2)  : Yes
>   Can read C2 Errors                      : Yes
>   Can read IRSC                           : Yes
>   Can read Media Channel Number (or UPC)  : Yes
>   Can play audio                          : Yes
>   Can read CD-DA                          : Yes
>   Can read CD-R                           : Yes
>   Can read CD-RW                          : Yes
>   Can read DVD-ROM                        : Yes
> 
> Writing....
>   Can write CD-RW                         : Yes
>   Can write DVD-R                         : Yes
>   Can write DVD-RAM                       : No
>   Can write DVD-RW                        : No
>   Can write DVD+RW                        : No
> Disc mode is listed as: CD-DA
> CD-ROM Track List (1 - 11)
>   #: MSF       LSN    Type   Green? Copy? Channels Premphasis?
>   1: 00:02:00  000000 audio  true   yes   2        no
>   2: 05:03:11  022586 audio  true   yes   2        no
>   3: 08:38:08  038708 audio  true   yes   2        no
>   4: 12:19:49  055324 audio  true   yes   2        no
>   5: 16:53:39  075864 audio  true   yes   2        no
>   6: 21:06:45  094845 audio  true   yes   2        no
>   7: 23:53:08  107333 audio  true   yes   2        no
>   8: 27:16:71  122621 audio  true   yes   2        no
>   9: 30:36:19  137569 audio  true   yes   2        no
>  10: 37:05:11  166736 audio  true   yes   2        no
>  11: 49:23:70  222145 data   false  no
> 170: 49:44:24  223674 leadout (501 MB raw, 501 MB formatted)
> Media Catalog Number (MCN): 0000000000000
> Last CD Session LSN: 222145
> audio status: no status
> volume level port 0: 255 (0..255) 100 (0..100)
> volume level port 1: 255 (0..255) 100 (0..100)
> volume level port 2:   0 (0..255)   0 (0..100)
> volume level port 3:   0 (0..255)   0 (0..100)
> CD Analysis Report
> session #2 starts at track 11, LSN: 222145, ISO 9660 blocks:   1384
> ISO 9660: 1384 blocks, label `_MM                             '
> 
> 
> # 2.) extricate -i /dev/sr0
> Drive ready...
> Mixed type CD detected...
> Start track: 1    End Track: 11
> Track  1 (audio): 00:02:00 (0)
> Track  2 (audio): 05:03:11 (22586)
> Track  3 (audio): 08:38:08 (38708)
> Track  4 (audio): 12:19:49 (55324)
> Track  5 (audio): 16:53:39 (75864)
> Track  6 (audio): 21:06:45 (94845)
> Track  7 (audio): 23:53:08 (107333)
> Track  8 (audio): 27:16:71 (122621)
> Track  9 (audio): 30:36:19 (137569)
> Track 10 (audio): 37:05:11 (166736)
> Track 11 (data) : 49:23:70 (222145)
> Leadout  (data) : 49:44:24 (223674)
> 
> # 3.) ./extricate /dev/sr0 8mm-songs_to_love_and_die_by.iso
> Drive ready...
> Mixed type CD detected...
> Start track: 1    End Track: 11
> Track  1 (audio): 00:02:00 (0)
> Track  2 (audio): 05:03:11 (22586)
> Track  3 (audio): 08:38:08 (38708)
> Track  4 (audio): 12:19:49 (55324)
> Track  5 (audio): 16:53:39 (75864)
> Track  6 (audio): 21:06:45 (94845)
> Track  7 (audio): 23:53:08 (107333)
> Track  8 (audio): 27:16:71 (122621)
> Track  9 (audio): 30:36:19 (137569)
> Track 10 (audio): 37:05:11 (166736)
> Track 11 (data) : 49:23:70 (222145)
> Leadout  (data) : 49:44:24 (223674)
> Copying track 11 to '8mm-songs_to_love_and_die_by.iso'...
> 100% (49:44:23)
> Done.
> Remember, the path table and directory structure of the iso reflect
> the fact that the ISO filesystem starts on sector 222145 (49:23:70)
> of the CD.  If it is burned to another CD at a different position,
> it won't work.  Likewise, any program that reads the iso will need
> to be able to compensate for the offset.  Try, for example:
>     isoinfo -N 222145 -d -i '8mm-songs_to_love_and_die_by.iso'
> 
> # 4.) isoinfo -N 222145 -d -i 8mm-songs_to_love_and_die_by.iso
> CD-ROM is in ISO 9660 format
> System id: MacImage - 7.3.12.868
> Volume id: _MM
> Volume set id:
> Publisher id:
> Data preparer id:
> Application id:
> Copyright File id:
> Abstract File id:
> Bibliographic File id:
> Volume set size is: 1
> Volume set sequence number is: 1
> Logical block size is: 2048
> Volume size is: 1384
> Joliet with UCS level 1 found
> NO Rock Ridge present
> 
> # 5.) iso-info  8mm-songs_to_love_and_die_by.iso
> iso-info version 0.82 i686-pc-linux-gnu
> Copyright (c) 2003, 2004, 2005, 2007, 2008 R. Bernstein
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> __________________________________
> ISO 9660 image: 8mm-songs_to_love_and_die_by.iso
> Application:
> Preparer   :
> Publisher  :
> System     : MacImage
> Volume     : 8mm
> Volume Set :
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]