LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-29-2007, 10:14 PM   #1
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Rep: Reputation: 15
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.
 
Old 12-29-2007, 10:21 PM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 636
Blog Entries: 1

Rep: Reputation: 51
What linux distribution are you using?
 
Old 12-29-2007, 10:23 PM   #3
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
I'm using Debian 4.0
 
Old 12-30-2007, 12:06 AM   #4
geek745
Member
 
Registered: Jul 2004
Location: Alton, IL
Distribution: Linux Mint; Slackware; Ubuntu; Slax
Posts: 172
Blog Entries: 2

Rep: Reputation: 34
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.
 
Old 12-30-2007, 12:26 AM   #5
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
Unhappy

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.
 
Old 12-30-2007, 12:50 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Are they WAV files?
 
Old 12-30-2007, 01:11 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 12-30-2007, 02:24 AM   #8
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
They are standard audio tracks on a CD image.
 
Old 12-30-2007, 02:50 AM   #9
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
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...
 
Old 12-30-2007, 03:17 AM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by vortexdevice View Post
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?
 
Old 12-30-2007, 03:58 AM   #11
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 12-30-2007, 04:20 AM   #12
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by vortexdevice View Post
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).
 
Old 12-30-2007, 04:45 AM   #13
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
Cool

Thank you. Interesting, I had never heard of a block device guru!! I'm doing some research in some websites, but nothing appropriate.
 
Old 12-30-2007, 12:01 PM   #14
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,142

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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?
 
Old 12-30-2007, 08:20 PM   #15
vortexdevice
LQ Newbie
 
Registered: Dec 2007
Location: Brazil
Distribution: Slackware 13 64-bit
Posts: 25

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dvd:rip / transcode users: when you rip dvds, is the output file the size you expect? 144419855310001 Linux - Software 0 09-02-2006 08:56 AM
does anyone know how to rip a cd as one track? solusrex Linux - Software 1 03-27-2006 06:12 AM
Rip music always stalls at 98% of track jlangelier Linux - Software 4 08-01-2004 10:18 PM
Can't rip DVDs with dvd::rip Hammett Linux - Software 2 10-27-2003 08:35 AM
Rip Audio Track from DVD MikeyCarter Linux - Software 4 07-24-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 PM.

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