LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2003, 10:56 AM   #1
seidren
Member
 
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Rep: Reputation: 16
Unhappy Copying an Enhanced CD (CD-Plus/CD-Extra)


I got this CD (LinkinPark Meteora) it is an original and is an Enhaced CD. I want to make a copy of it.
First I used cdrdao to make a copy but that failed. The Enhanced CD part of it wasnt there and the tracks had gaps between them (in the original, one track continues on to the other).
Then I used cdda2wav and got the audio part of the cd on to my harddisk
cdda2wav --vall -B -D0,0 -Owav

then i wrote this data into a CD-RW using cdrecord

cdrecord dev=0,0 -v -dao -multi -useinfo -audio *wav

after writing i reloaded the disk (eject and then insert) i used cdrecord to get the msinfo. The weird thing was that when i used cdrecord i got a value diifferent from the value that i got when i used cdrdao

cdrecord -msinfo dev=0,0

returned 0,176445

cdrdao msinfo --device 0,0,0 --driver generic-mmc

returned 0,176595

I didn't know which one to use so i did both of them. First I inserted the original CD. Then I made two images of the Enhanced CD part.

mkisofs -R -o cd_plus1.raw -C 0,176445 /mnt/cdrom/
and
mkisofs -R -o cd_plus2.raw -C 0,176595 /mnt/cdrom/

after this i inserted the CD-RW again and wrote the first one

cdrecord dev=0,0 -v -data cd_plus1.raw

THAT CD DIDNT WORK. The data track was written in the same session as the audio track. There were supposed to be 2 sessions but there was only one.

The same happened when i Erased the CD-RW and did the whole thing again with the cd_plus2.raw file. (I did write the audio files first).

Does anyone know how to get this thing done.
Please!!!
 
Old 06-01-2003, 12:55 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you're going to need something that will make
you a .bin .cue image of the cdrom.

here's something i found that might help

Burning a Mixed-mode CD

A mixed-mode CD has both data and audio. It is a single session CD. The data is visible as a file system to a computer, and the audio is visible to CD players. The drawback to mixed mode is that the data track is visible to CD players, and some will even try to play it, and of course it does not sound good.

To create a mixed-mode CD, create an ISO image as for Burning a Data CD, and collect the audio tracks. Run cdrecord with the like this:

cdrecord "$@" speed=$SPEED dev=0,0,0 driveropts=burnproof -eject \
-data \
mixed_mode.iso \
-pad -audio \
song1.wav \
song2.wav \
(etc.)

Burning an Enhanced CD (A.K.A CD-Plus, or CD-ROM XA mode 2)

Similar to a mixed-mode CD, an enhanced CD also has both data and audio, and is a multi-session CD. The audio is written in the first session, and the data is written in the second session. Most CD players can only see tracks in the first session, effectively hiding the data track. The drawback to enhanced format is that some CD players cannot read multi-session CDs at all. See this entry in the CD-Writing HOW-TO on creating multi-session CDs.

To create an enhanced CD, arrange the data for an ISO image as for Burning a Data CD, and collect the audio tracks.

1. Write the audio tracks. Be sure to specify the -multi flag:

cdrecord "$@" speed=$SPEED dev=0,0,0 driveropts=burnproof \
-multi -audio -pad \
song1.wav \
song2.wav

2. Determine where the free space on the CD begins with:

NEXT_TRACK=`cdrecord -msinfo`

3. Create an ISO image using the two numbers returned in step 2:

mkisofs -o cd_plus.iso -R -J -C $NEXT_TRACK -r cd

4. Verify the ISO image with:

isoinfo -i cd_plus.iso -f -R -J -N ${NEXT_TRACK/*,}

5. Write the data track:

cdrecord "$@" speed=$SPEED dev=0,0,0 driveropts=burnproof -eject \
-data -pad \
cd_plus.iso

Here is a script to help manage ISO contents (where "cd" is the directory with the contents):

# Default speed
SPEED=10

# Process arguments. Identify speed and "blank" directives.
SESSION_1_ARGS=
SESSION_2_ARGS=
for A in "$@"; do
if [ "blank=" = "${A:0:6}" ]; then
# Erase only before first session.
SESSION_1_ARGS="$SESSION_1_ARGS $A"
elif [ "speed=" = "${A:0:6}" ]; then
SPEED=${A#speed=}
else
SESSION_1_ARGS="$SESSION_1_ARGS $A"
SESSION_2_ARGS="$SESSION_2_ARGS $A"
fi
done

# Audio session.
cdrecord $SESSION_1_ARGS speed=$SPEED dev=0,0,0 driveropts=burnproof \
-multi -audio -pad \
cd/song1.wav \
cd/song2.wav


# Figure out if the ISO image should be remade.
# Note that audio files are stored inside the 'cd' directory.
if [ ! -e cd_plus.iso -o -n "`find cd -newer cd_plus.iso`" ]; then
echo "Cleaning..."
find cd \( -name '*~' -o -name '*.bak' -o -type d -name '.*' -prune \) \
-print -exec rm -rf '{}' \;
echo
echo "Link check..."
html_link_check -start cd/READ-ME.html
echo
echo "Building ISO image..."
NEXT_TRACK=`cdrecord -msinfo`
echo $NEXT_TRACK > cd_plus_msinfo
mkisofs -o cd_plus.iso -R -J -C $NEXT_TRACK -r cd
echo
echo "Contents:"
isoinfo -i cd_plus.iso -f -R -J -N ${NEXT_TRACK/*,}
echo
fi


# Data session.
cdrecord $SESSION_2_ARGS speed=$SPEED dev=0,0,0 driveropts=burnproof -eject \
-data -pad \
cd_plus.iso
 
Old 06-02-2003, 01:55 AM   #3
seidren
Member
 
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Original Poster
Rep: Reputation: 16
Hey thanks, but I have done all that already and haven't got a proper result. I think I have found the problem.
I used Windows 98 and Prassi Primo CD Plus to make the copy. It had a small help on how to make CD-Extras.
It said that the first session should be written as TAO and Not Closed and then the second Session, TAO Closed Mode 2 XA.
But I want the tracks to have no pregaps. So I have to do the first session as a DAO and not close it. And then I will have to write the Second Session as Mode 2XA.
I tried this with Prassi but although I chose DAO the tracks had 2 seconds pregaps and was a bit dissapointing. But the CD-Extra came perfectly. It is possible to do the DAO without pregaps in Linux (cdrecord) and I have done it.

I want to know how to get the Mode 2XA done and how to edit the track label so that it will read 'Linkin_Park' instead of 'Data Track' or something boring.

Thanks!
 
Old 06-02-2003, 04:44 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
that .bin .cue stuff is what gives more control over
how to set up the cd.
this isn't linux software, but it has some of the terms in
the add you might search for.

http://www.gearsoftware.com/products/cdrw/index.cfm
 
Old 06-02-2003, 08:03 AM   #5
seidren
Member
 
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Original Poster
Rep: Reputation: 16
I dont understand the .bin .cue stuff.
Do you mean the inf files generated when I used cdda2wav to extract the audio from of the cd.
Other than that there are no files except for the wav files and the cdplus.iso file.

I am new to Linux and I will need some detailed help from you.

Thanks!!!
 
Old 06-02-2003, 10:28 PM   #6
seidren
Member
 
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Original Poster
Rep: Reputation: 16
Hey I got the thing done. I am sorry to be so stupid.
The problem was in the CDRW Disc. The blanking process had some problem and whenever I write using the -multi option the First session and the Second session were both open. And when I wrote the data track, it got appeneded to the First Session instead of the second and the then the First Session was closed.
I then experimentally wrote the data track again with the same options and it was written in the Second Session and properly closed. So it was a problem with CD-RW disc not the programs.

When I used a CD-R disc the thing worked perfectly. I think there is a problem with Blanking CDRWs. I used -blank=all but it still didn't work. Anyway I got my CD done and I am very happy.
Thanks for your help!!!
 
Old 06-02-2003, 10:41 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Try it like this:

cdrecord -v dev=0,0,0 speed=<your burning speed> blank=fast
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
enhanced speedstep.....how to get it working lumbrjackedpcj Linux - Laptop and Netbook 6 04-02-2005 04:59 PM
pentium 4 enhanced speed step lumbrjackedpcj Linux - Laptop and Netbook 1 03-29-2005 04:30 PM
Enhanced: ACPI_LCD Kernel Module! :) xbaez Linux - Laptop and Netbook 2 06-26-2004 05:52 AM
Enhanced Acpi_LCD Module installation! :) xbaez Linux - Laptop and Netbook 0 06-25-2004 07:28 PM
Anyone ever use Security Enhanced Linux from the NSA? Whitehat Linux - General 6 01-06-2004 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration