LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rip a ISO9660 track (https://www.linuxquestions.org/questions/linux-newbie-8/rip-a-iso9660-track-609908/)

vortexdevice 12-29-2007 10:14 PM

rip an audio track from a ISO9660 image
 
Hello, guys, I have a data+audio ISO image and want to rip the audio tracks without burning a CD-RW first. In Windows I could use Alcohol 120%, but I really don't know about what to do in Linux... I wished to use cdparanoia, but I'm stuck. can somebody help me please?

xode 12-29-2007 10:21 PM

What linux distribution are you using?

vortexdevice 12-29-2007 10:23 PM

I'm using Debian 4.0

geek745 12-30-2007 12:06 AM

I wonder if you can dd the audio part out into a new ISO9660 loopback filesystem and then rip it from there once mounted? just a thought.

vortexdevice 12-30-2007 12:26 AM

Sorry, I didn't get it... But anyway, I once tried to mount it and rip the tracks with cdparanoia, but that was just the point. I had the image mounted, but then how to rip the tracks? I couldn't do it the same way I do with audio CDs.

win32sux 12-30-2007 12:50 AM

Are they WAV files?

Electro 12-30-2007 01:11 AM

Use losetup to create a loop device node for the ISO image. Then use cdparanoia with the force drive option with the loop device node. Though I have not tried it this way.

vortexdevice 12-30-2007 02:24 AM

They are standard audio tracks on a CD image.

vortexdevice 12-30-2007 02:50 AM

I have never used losetup. But I tried now (no success...):

#losetup -f
/dev/loop0

#losetup /dev/loop0 /media/usb/disk.iso
gave no output

#cdparanoia -Qvd /dev/loop0
cdparanoia III release 10pre0 (August 29, 2006)
(C) 2006 Monty <monty@xiph.org> and Xiph.Org

FreeBSD porting (c) 2003
Simon 'corecode' Schubert <corecode@corecode.ath.cx>

Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/

Checking /dev/loop0 for cdrom...
Testing /dev/loop0 for SCSI/MMC interface
SG_IO device: /dev/loop0
Inquiry command failed; unable to probe drive

Testing /dev/loop0 for cooked ioctl() interface
/dev/loop0 is not a cooked ioctl CDROM.


--- As I have never used losetup, I ever don't know if I did it correctly...

win32sux 12-30-2007 03:17 AM

Quote:

Originally Posted by vortexdevice (Post 3005498)
They are standard audio tracks on a CD image.

Oh, I get it now (mixed-mode). My bad. Sounds like you're on the right track with losetup, but I would think you'd need to isolate the first session (or whichever your audio is on), no?

vortexdevice 12-30-2007 03:58 AM

Yeah, no problem, of course... but I'm still trying to access the disk via /dev/loop0. I've seen some people said the same about losetup, but to access files contained in ISO images (that is not the way I do...). The search continues :scratch:

win32sux 12-30-2007 04:20 AM

Quote:

Originally Posted by vortexdevice (Post 3005520)
Yeah, no problem, of course... but I'm still trying to access the disk via /dev/loop0. I've seen some people said the same about losetup, but to access files contained in ISO images (that is not the way I do...). The search continues

Best of luck to you. I'll be keeping a close eye on this thread, as even though I'm pretty clueless in this area, I do find this dilema of yours really interesting and want to see how it plays out. It would be great if someone like AwesomeMachine would run into this thread, as I have a feeling he could set us straight in no time (he's some kind of block device guru from what I've seen).

vortexdevice 12-30-2007 04:45 AM

Thank you. Interesting, I had never heard of a block device guru!! I'm doing some research in some websites, but nothing appropriate.

tredegar 12-30-2007 12:01 PM

Can't you just mount the image, like this:
Code:

# mkdir /mnt/iso
# mount -o loop /path/to/yourimage.iso  /mnt/iso

Then convert the wav file(s):
Code:

lame /mnt/iso/track1.wav /home/me/track1.mp3
Or have I misunderstood the question?

vortexdevice 12-30-2007 08:20 PM

Tredegar, I don't think you have misunderstood the question. When I saw your post, I thought: "but that won't work". And I tried. I saw lame encoded a track from the ISO and so I couldn't believe it was so easy and so obvious. It was unbelieveble! But when I heard the file generated by lame, there was just a white noise on it :eek: ... I tried the same with .bin images too, without success. Already tried to just listen to the tracks with kscd (the cdda# files where there) using the tricks people have told here.

This is strange for me: I see some people tell on the web that ISO images can't hold audio tracks alongside with a data track (they say that kind of image must be .bin, .mdf/mds or the like), but I have at least 2 ISO images like that, and they are working.

Thank all the people helping me. I'm still trying. I could just flip to Windows and use software like the Daemon Tools, but I'm sure we can do it with Linux too!! Freedom for all!


All times are GMT -5. The time now is 06:45 PM.