Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-29-2007, 10:14 PM
|
#1
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Rep:
|
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?
Last edited by vortexdevice; 12-29-2007 at 11:17 PM.
|
|
|
12-29-2007, 10:21 PM
|
#2
|
Member
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 644
Rep:
|
What linux distribution are you using?
|
|
|
12-29-2007, 10:23 PM
|
#3
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
I'm using Debian 4.0
|
|
|
12-30-2007, 12:06 AM
|
#4
|
Member
Registered: Jul 2004
Location: Alton, IL
Distribution: Linux Mint; Slackware; Ubuntu; Slax
Posts: 172
Rep:
|
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.
|
|
|
12-30-2007, 12:26 AM
|
#5
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
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.
|
|
|
12-30-2007, 12:50 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Are they WAV files?
|
|
|
12-30-2007, 01:11 AM
|
#7
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
12-30-2007, 02:24 AM
|
#8
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
They are standard audio tracks on a CD image.
|
|
|
12-30-2007, 02:50 AM
|
#9
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
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...
Last edited by vortexdevice; 12-30-2007 at 02:52 AM.
Reason: forgotten to explain I had no success...
|
|
|
12-30-2007, 03:17 AM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Quote:
Originally Posted by vortexdevice
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?
|
|
|
12-30-2007, 03:58 AM
|
#11
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
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 
|
|
|
12-30-2007, 04:20 AM
|
#12
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Quote:
Originally Posted by vortexdevice
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).
|
|
|
12-30-2007, 04:45 AM
|
#13
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
Thank you. Interesting, I had never heard of a block device guru!! I'm doing some research in some websites, but nothing appropriate.
|
|
|
12-30-2007, 12:01 PM
|
#14
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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?
|
|
|
12-30-2007, 08:20 PM
|
#15
|
LQ Newbie
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25
Original Poster
Rep:
|
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  ... 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:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|