Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: emninger on December 27, 2015, 02:37:44 PM

Title: mount sr0 with audio-cd - how?
Post by: emninger on December 27, 2015, 02: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?

Title: Re: mount sr0 with audio-cd - how?
Post by: Rich on December 27, 2015, 09:58:49 PM
Hi emninger
A little Googling would seem to suggest you can't:
http://www.linuxquestions.org/questions/linux-newbie-8/how-to-mount-audio-cd-manually-859558/
Title: Re: mount sr0 with audio-cd - how?
Post by: emninger on December 27, 2015, 11:59:13 PM
 :-[

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 ;)
Title: Re: mount sr0 with audio-cd - how?
Post by: gerald_clark on December 28, 2015, 07:04:12 AM
Try the config menu in the player and set the CD device.
Title: Re: mount sr0 with audio-cd - how?
Post by: Juanito on December 28, 2015, 10:22:12 PM
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.
Title: Re: mount sr0 with audio-cd - how?
Post by: emninger on December 29, 2015, 11:24:34 AM
Hi Juanito! Your cli line works for me too. But how to translate it to a media player (vlc e.g.)?
Title: Re: mount sr0 with audio-cd - how?
Post by: Juanito on December 29, 2015, 10:55:53 PM
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
Title: Re: mount sr0 with audio-cd - how?
Post by: emninger on December 30, 2015, 02: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).
Title: Re: mount sr0 with audio-cd - how?
Post by: patrikg on December 30, 2015, 02:43:11 AM
cvlc cdda://[device][@[track]]
Title: Re: mount sr0 with audio-cd - how?
Post by: Juanito on January 15, 2016, 12: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  :(
Title: Re: mount sr0 with audio-cd - how?
Post by: Juanito on January 28, 2016, 09:37:50 PM
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...
Title: Re: mount sr0 with audio-cd - how?
Post by: Juanito on January 30, 2016, 12: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
Title: Re: mount sr0 with audio-cd - how?
Post by: Juanito on February 09, 2016, 05: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.