WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mount sr0 with audio-cd - how?  (Read 4718 times)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
mount sr0 with audio-cd - how?
« on: December 27, 2015, 05:37:44 PM »
For sure i'm missing something: While i can nicely mount (with the graphical mount tool) sr0 when there is in it a "normal" cd with e.g. image files or even mpegs, i'm unable to do that with an audio cd. I'd suspect i miss some extensions, but which ones?


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: mount sr0 with audio-cd - how?
« Reply #1 on: December 28, 2015, 12:58:49 AM »

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: mount sr0 with audio-cd - how?
« Reply #2 on: December 28, 2015, 02:59:13 AM »
 :-[

I learned something ... BUT:

Not one of the audio players in the repos plays or even recognizes the audio cd. Therefore i had the idea, may be the cd should be mounted (but i learned that's not the case).

So, i should specify my problem: Which extension is missing to be able to play audio cds? And yes, i googled before asking ;)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: mount sr0 with audio-cd - how?
« Reply #3 on: December 28, 2015, 10:04:12 AM »
Try the config menu in the player and set the CD device.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: mount sr0 with audio-cd - how?
« Reply #4 on: December 29, 2015, 01:22:12 AM »
I tried several audio players and, as you say, none recognise the cd drive.

I compiled cdtool - "cdplay dir" will list the contents of an audio cd, but not play it. This being said, cdtool is so old that it might be expecting an analogue cable from the cd drive to the sound card or it is fooled by the fact that my laptop speakers are not the default sound device (thanks alsa/intel...).

This however will play, for example, the 4th track of an audio cd;
Code: [Select]
$ gst-launch-1.0 playbin uri=cdda://4..which makes me wonder why rhythmbox cannot find and play an audio cd.

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: mount sr0 with audio-cd - how?
« Reply #5 on: December 29, 2015, 02:24:34 PM »
Hi Juanito! Your cli line works for me too. But how to translate it to a media player (vlc e.g.)?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: mount sr0 with audio-cd - how?
« Reply #6 on: December 30, 2015, 01:55:53 AM »
It works with xmms  :)

Code: [Select]
Right Click: on XMMS panel
Click: Options > Preferences
  AUDIO I/O PLUGINS--
    Input Plugins, Click: CD Audio Player 1.2.11
    Press: Configure
    CD Audio Player--
       Device & Drive 1:
         For Device enter: /dev/cdrom
         For Directory enter: /mnt/sr0
         For Play Mode click: Digital Audio Extraction
           (ignores whether there is an audio cable connected)
         Click: Check Drive
         Click: Close on pop-up dialog box
         Note: Click on Add Drive only if needing multiple drives
         Click: OK

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: mount sr0 with audio-cd - how?
« Reply #7 on: December 30, 2015, 05:08:56 AM »
Thanks a lot Juanito (btw, how do you do to know all these things?? :D )!

But, please don't take me wrong, xmms is not the most intuitive and logical gui mediaplayer.

Is it an insolent request to ask for a nicer, more intuitive and not so sourcehungry mediaplayer extension (at a first step i went vlc because from other linuxes i know often it works even when other don't - but you cannot call it small)?

In slackware i use whaawmp (which seems to me small but pretty much functional; i tried to built of it my own extension but i was unable to find all dependencies - and for sure i'm not so close to compiling that i'd be able to create the missing dependencies too). Another app that comes up to my mind would be exaile (but i didn't use it since a long time - when i gave up lubuntu for slackware ;) ).

In any case, big thank you for your patience!

PS. Left aside the question, if audacious is able to do the same as xmms, i don't know why there isn't a nicer skin for it (in lubuntu it looks totally different).

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: mount sr0 with audio-cd - how?
« Reply #8 on: December 30, 2015, 05:43:11 AM »
cvlc cdda://[device][@[track]]

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: mount sr0 with audio-cd - how?
« Reply #9 on: January 15, 2016, 03:29:12 AM »
Hi Juanito! Your cli line works for me too. But how to translate it to a media player (vlc e.g.)?

I believe some or all of audacious, banshee, brasero, rhythmbox, sound-juicer, totem and vlc require "gvfs-mount cdda://sr0" to work and it doesn't  :(

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: mount sr0 with audio-cd - how?
« Reply #10 on: January 29, 2016, 12:37:50 AM »
I managed to do something :P that enabled "gvfs-mount cdda://sr0" to work.

Nautilus would display audio tracks as "wav" files, audacious would play an audio cd, but rhythmbox still would not play.

Now to find what that something was...

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: mount sr0 with audio-cd - how?
« Reply #11 on: January 30, 2016, 03:10:48 AM »
It seems the trick is:

*xdg-user-dirs-update
*start gnome-session
*open nautilus
*exit to console prompt
*start gnome-session again (alt=f2-r does not seem to be sufficient)
*gvfs-load cdda://sr0 (with an audio cd already in the drive)

..and then audacious, nautilus and sound-juicer will display/play the audio cd.

'Hard to believe so many apps depend on this to be able to play an audio cd - I'll definately be sticking to xmms outside of gnome-session  :P

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: mount sr0 with audio-cd - how?
« Reply #12 on: February 09, 2016, 08:21:02 AM »
To correct/expand on the above:

Using flwm (without the dbus or gvfs daemons started)

* audacious will play an audio cd (services -> play cd)
* rhythmbox will not play an audio cd
* sound juicer will play an audio cd
* totem will not play an audio cd
* vlc will play an audio cd (playback -> play -> disk -> audio cd)
* xmms will play an audio cd

Using gnome-session (with cli command "gvfs-mount cdda://sr0)

* nautilus will display audio cd tracks
* rhythmbox will not play an audio cd
* totem will play an audio cd

Using gnome-session (with udev-extra loaded)
* nautilus auto-mounts the audio cd
* rhythmbox will play the audio cd

Note the above will not work if wbar is used to launch apps in gnome-session.