You are not logged in.
Pages: 1
Hi,
You can't mount an audio cd because it hasn't a filesystem right?
Is there any way I can view the contents of an audio cd, without having to open a certain program and click on "play cd"?
In other words how can I view media contents using the command line?
Greetz Daan
Offline
Is there any way I can view the contents of an audio cd, without having to open a certain program and click on "play cd"?
In other words how can I view media contents using the command line?Greetz Daan
Icedax (installed on my machine, I believe, as part of the Gnome installation*) provides some nice audio cd command line stuff (it is a fork of cdda2wav ... if you do a man of cdda2wav, it will produce the man pages for icedax).
Because I don't know exactly what you are looking for, here is a sample of output:
icedax -J -N -L 1 -D /dev/sr1
Type: ROM, Vendor 'LITE-ON ' Model 'DVDRW SOHW-832S ' Revision 'CG5J' MMC+CDDA
569344 bytes buffer memory requested, 4 buffers, 55 sectors
#icedax version 1.1.6, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis copy-permitted tracktype channels
1-11 no no audio 2
Table of Contents: total tracks:11, (total time 45:27.65)
1.( 4:45.37), 2.( 4:39.53), 3.( 3:45.07), 4.( 4:10.03), 5.( 3:44.07),
6.( 4:36.15), 7.( 3:23.10), 8.( 4:14.73), 9.( 5:43.22), 10.( 3:58.48),
11.( 2:27.15)
Table of Contents: starting sectors
1.( 0), 2.( 21412), 3.( 42390), 4.( 59272), 5.( 78025),
6.( 94832), 7.( 115547), 8.( 130782), 9.( 149905), 10.( 175652),
11.( 193550), lead-out( 204590)
CDINDEX discid: xx_xxxxxxxxxxxxxxxxxxxxxxxx-
CDDB discid: xxxxxxxxxx CDDBP titles: resolved
CD-Text: not detected
CD-Extra: not detected
Album title: 'The Divine Comedy' [from Milla]
Track 1: 'The Alien Song (For Those Who Listen)'
Track 2: 'Gentleman Who Fell'
Track 3: 'It's Your Life'
Track 4: 'Reaching From Nowhere'
Track 5: 'Charlie'
Track 6: 'Ruby Lane'
Track 7: 'Bang Your Head'
Track 8: 'Clock'
Track 9: 'Don't Fade Away'
Track 10: 'You Did It All Before'
Track 11: 'In A Glade'
No media catalog number present.
scanning for ISRCs: 11 ...
index scan: 4...
track mismatch: 4, in-track subchannel: 0 (index 1, sector 78007)
index scan: 11...
cdparanoia will give some output about audio CDs, but it has no CDDB look-up capability.
Hope this helps, but I may be on the wrong track (pun intended) for what you are asking.
* Edit:
Just to clarify, I did not install this program explicitly. The reason I think this was installed during Gnome installation is that I did:
pacman -Qo /usr/bin/icedax
/usr/bin/icedax is owned by cdrkit 1.1.6-1
then I looked up 'cdrkit' in my pacman logs and found that it was installed amongst a lot of programs that were installed at the time I installed Gnome (I think it's used by Nautilus' CD burning functionality). As far as I know, however, 'cdrkit' does not require any Gnome files to install it .
Last edited by MrWeatherbee (2007-08-11 17:41:35)
Offline
If you're using KDE, you might look at audiocd:/ kio-slave.
Offline
Check out cdfs in AUR:
http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
Actually, it's in community on i686.
Last edited by skottish (2007-08-11 23:08:07)
Offline
Check out cdfs in AUR:
http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
Actually, it's in community on i686.
The file in community is built against kernel 2.6.21; I'm running 2.6.22, so I went ahead and downloaded the source and compiled, then inserted the module and mounted the audio disc:
insmod cdfs.ko
mount -t cdfs -o ro /dev/sr1 /mnt/tmp02
Seems to work as advertised, so if you are interested in the possible benefits of mounting an audio cd, then you can add this to your arsenal. Though the files exported are manipulable just as any other file (in this case .wav), the information provided about the disc and especially the tracks is minimal, i.e., they of course are labeled as generic "track xx". Here is sample output with "cat" and "ls"using the same disc as in my previous post:
cat /proc/cdfs
[cdfs 2.6.19]
CD (discid=xxxxxxxx) contains 11 tracks:
Track 1: audio track (track-01.wav), [ 0 - 21411], length= 4:45
Track 2: audio track (track-02.wav), [ 21412 - 42389], length= 4:39
Track 3: audio track (track-03.wav), [ 42390 - 59271], length= 3:45
Track 4: audio track (track-04.wav), [ 59272 - 78024], length= 4:10
Track 5: audio track (track-05.wav), [ 78025 - 94831], length= 3:44
Track 6: audio track (track-06.wav), [ 94832 - 115546], length= 4:36
Track 7: audio track (track-07.wav), [ 115547 - 130781], length= 3:23
Track 8: audio track (track-08.wav), [ 130782 - 149904], length= 4:14
Track 9: audio track (track-09.wav), [ 149905 - 175651], length= 5:43
Track 10: audio track (track-10.wav), [ 175652 - 193549], length= 3:58
or
ls -al /mnt/tmp02
total 0
dr-xr-xr-x 1 root root 0 2007-08-11 20:02 .
drwxr-xr-x 8 root root 192 2007-08-11 19:20 ..
-r--r--r-- 1 root root 50361068 2007-08-11 20:02 track-01.wav
-r--r--r-- 1 root root 49340300 2007-08-11 20:02 track-02.wav
-r--r--r-- 1 root root 39706508 2007-08-11 20:02 track-03.wav
-r--r--r-- 1 root root 44107100 2007-08-11 20:02 track-04.wav
-r--r--r-- 1 root root 39530108 2007-08-11 20:02 track-05.wav
-r--r--r-- 1 root root 48721724 2007-08-11 20:02 track-06.wav
-r--r--r-- 1 root root 35832764 2007-08-11 20:02 track-07.wav
-r--r--r-- 1 root root 44977340 2007-08-11 20:02 track-08.wav
-r--r--r-- 1 root root 60556988 2007-08-11 20:02 track-09.wav
-r--r--r-- 1 root root 42096140 2007-08-11 20:02 track-10.wav
-r--r--r-- 1 root root 25966124 2007-08-11 20:02 track-11.wav
I believe this file system module has more utility when other tools are not available for handling certain files stored on CDs. In the case of audio CDs, there are plenty of tools available for extracting / ripping information without resorting to a file system kernel module. Even the author states that his intention for the tool was to "unlock information in old ISO images". But again, since I don't know specifically what the OP had in mind, maybe this is the ticket.
I'm gonna leave this on the system for a while, I think, and see what else I might use it for.
Thanks for the heads up, Skottish.
Edit: I had to correct spelling of skottish's name ... I mistakenly spelled it with a "c". Sorry.
Last edited by MrWeatherbee (2007-08-12 00:42:21)
Offline
My name is Scott after all...
Offline
Thx for your solutions
Hope this helps, but I may be on the wrong track (pun intended) for what you are asking.
I wanted to access a cd so all its contents are placed in a directory (just like in windows ) e.g. /mnt/cdrom.
But I'm gonna have a look at the cdfs system.
Greetz Daan
btw I use fluxbox so no cdrkit for me
Offline
Thx for your solutions
<snip>
But I'm gonna have a look at the cdfs system.
Greetz Daan
btw I use fluxbox so no cdrkit for me
You're welcome. Glad at least one of the solutions posted may work for you.
Also, by the way, as I said in my edit in my first post, cdrkit is available for explicit installation separate and completely apart from Gnome [with minimal dependencies]:
pacman -Si cdrkit
Repository : current
Name : cdrkit
Version : 1.1.6-1
Groups : None
Provides : cdrtools
Depends On : glibc libcap file
Removes : None
Conflicts With : cdrtools
Replaces : cdrtools
Download Size : 984.09 K
Installed Size : 0.00 K
Description : GPL replacement of cdrtools for recording CDs
MD5 Sum : 02ac18744ee12b6f978bc00000ab6966
I should have never brought Gnome up I suppose, but I was just mentioning that I didn't have to install cdrkit explicitly because of something I had already installed (I thought Gnome nautilus). To be more specific now, it was installed for me because of an extra package for nautilus, namely nautilus-cd-burner:
yaourt -Si nautilus-cd-burner
Repository : extra
Name : nautilus-cd-burner
Version : 2.18.2-1
Groups : gnome-extra
Provides : None
Depends On : cdrkit dvd+rw-tools nautilus>=2.18.1 gnome-mount>=0.6 desktop-file-utils
Removes : None
Conflicts With : None
Replaces : None
Download Size : 498.05 K
Installed Size : 0.00 K
Description : adds cd burner functionality to nautilus
MD5 Sum : f4060a63d5bf1d506aedf9c494d5a26b
Anyway, hope that clears things up like mud. Have fun.
Offline
Pages: 1