Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] can't play audio cds (mplayer)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ReEkd
n00b
n00b


Joined: 23 Aug 2014
Posts: 12

PostPosted: Tue Jan 27, 2015 6:01 am    Post subject: [SOLVED] can't play audio cds (mplayer) Reply with quote

Hallo,
after switching to a new gentoo installation (with kernel 3.17.2) I cannot play audio cds...
Everything works on the old one (2.6.38), the new one lets me list the audio tracks (cd-info even reads CDDB information nicely),
but no playback.

I have libcdio (pulled in by mplayer with a cdio flag) installed, cdplay

The device is a BD-RW drive on /dev/sr0 with a link /dev/cdrom pointing to it

Code:
# mplayer cdda://
MPlayer SVN-r37293 (Gentoo)-4.8.3 (C) 2000-2014 MPlayer Team

Playing cdda://.
No stream found to handle url cdda://


Exiting... (End of file)


Code:
# mplayer cdda:// -cdrom-device /dev/sr0
MPlayer SVN-r37293 (Gentoo)-4.8.3 (C) 2000-2014 MPlayer Team

Playing cdda://.
No stream found to handle url cdda://


Exiting... (End of file)


The old installation uses udev, the new one is on eudev but I assume that's not the issue,
esp. since there are no /etc/udev/rules.d/70-persistent-cd.rules on neither system for this device and pointing the player to /dev/sr0 gives nothing either...

Anyone can help me with this:-?

edit: marked as solved and changed the title to indicate that the solution applies for the mplayer only


Last edited by ReEkd on Thu Jan 29, 2015 5:12 pm; edited 3 times in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Jan 28, 2015 7:04 pm    Post subject: Reply with quote

hmm.

you may check if your user is in the right groups?

Code:
roman@localhost ~ $ groups
wheel audio cdrom video games cdrw usb vboxusers android plugdev roman wireshark dropbox


and than you may use vlc and check if it happens with vlc too.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Jan 29, 2015 2:45 pm    Post subject: Reply with quote

In addition to what tw04l124 said, is the kernel the only thing you updated? Did you update only the kernel, or did you update the kernel as part of an emerge -uDN world (or similar)? This doesn't sound like a kernel issue to me.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
ReEkd
n00b
n00b


Joined: 23 Aug 2014
Posts: 12

PostPosted: Thu Jan 29, 2015 5:08 pm    Post subject: Reply with quote

@tw04l124: vlc plays CDs, groups are correct plus I was trying as root

@audiodef: sorry, I didn't emphasize the "new installation" enough, I meant that everything works on my old (circa 2008) installation,
and now I was trying to play a CD on a totally fresh one;-) I never said it was a kernel issue, though I didn't rule out the possibility of something missing in my new configuration

Thank you both anyways:-)

Upon further investigation it turns out that the cdio flag in the mplayers ebuild doesn't make a difference anymore,
because the mplayer source doesn't support header changes made in libcdio-0.90 and nobody seems to care,
also libcdio-0.92 is the only one in portage now...
So src_configure ends up without libcdio support in all cases.

Once that was clear I managed to compile it with libcdio, and also found a patch from 2013 that would make a nice addition to mplayer in portage:
https://github.com/pld-linux/mplayer/blob/master/mplayer-libcdio.patch

So the mplayer ebuilds in portage should be revised, IMO, to add dev-libs/libcdio-paranoia to cdio flag dependencies (missing headers) and the above patch...
Nevertheless mplayer needs cdparanoia or libcdio-paranoia to play audio CDs now.

As for media-sound/cdplay app it still doesn't work for me, nor does media-sound/cdcd, but I don't care much for these...


It looks like the "current" mplayer doesn't support reading the cddb information either ("Command syntax error"), but thats for some other time...
And some other patch ;__;
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Jan 29, 2015 6:07 pm    Post subject: Reply with quote

Well do you mind making a request on bugs.gentoo.org please to improve our gentoo?
Back to top
View user's profile Send private message
ReEkd
n00b
n00b


Joined: 23 Aug 2014
Posts: 12

PostPosted: Thu Jan 29, 2015 6:45 pm    Post subject: Reply with quote

Hmmm, I did that, hopefully correctly...
https://bugs.gentoo.org/show_bug.cgi?id=538186

But I see three years old open mplayer tickets there...
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Jan 29, 2015 7:57 pm    Post subject: Reply with quote

Thanks.

I do participate to report broken features / ebuilds when I find those. And I try to answer posts here
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Jan 29, 2015 8:16 pm    Post subject: Reply with quote

ReEkd wrote:
But I see three years old open mplayer tickets there...

mplayer itself doesn't get a whole lot of work any more.

Try USE="cdparanoia -cdio" on it first. If that doesn't help, you might want to give mpv a try. (Or mplayer2, but I don't use that.)
Back to top
View user's profile Send private message
rogerx
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2004
Posts: 118

PostPosted: Thu Apr 30, 2015 11:44 pm    Post subject: Reply with quote

I too recently found libcdio (cdda-player) not playing audio CD's.

MPlayer would also not playback audio CD's when compiled against libcdio (cdio).

However, USE="cdparanoia -cdio" mplayer does now playback audio CD's; but stutter, likely due to cache issues.

I think cdda-player (as well as media-sound/grip) might be dependent on the CD/DVD player's audio-out being connected directly to the audio card?
_________________
Roger
http://rogerx.freeshell.org/
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3135

PostPosted: Fri May 01, 2015 9:14 pm    Post subject: Reply with quote

Quote:
I think cdda-player (as well as media-sound/grip) might be dependent on the CD/DVD player's audio-out being connected directly to the audio card?
It is actually pretty likely. You might try plugging headphones directly into your drive, some still have small jack slots and only require power to play CDA. Providing software-level controls seems to be a sane choice.

The more important thing is you can increase cache size in mplayer so it has enough time to spin-up the CD. Perhaps reducing it could also help as buffer woudl be too small to let CD stop spinning. Never tried this way though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum