View previous topic :: View next topic |
Author |
Message |
ReEkd n00b
Joined: 23 Aug 2014 Posts: 12
|
Posted: Tue Jan 27, 2015 6:01 am Post subject: [SOLVED] can't play audio cds (mplayer) |
|
|
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 |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Jan 28, 2015 7:04 pm Post subject: |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
ReEkd n00b
Joined: 23 Aug 2014 Posts: 12
|
Posted: Thu Jan 29, 2015 5:08 pm Post subject: |
|
|
@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 |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Jan 29, 2015 6:07 pm Post subject: |
|
|
Well do you mind making a request on bugs.gentoo.org please to improve our gentoo? |
|
Back to top |
|
|
ReEkd n00b
Joined: 23 Aug 2014 Posts: 12
|
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Jan 29, 2015 7:57 pm Post subject: |
|
|
Thanks.
I do participate to report broken features / ebuilds when I find those. And I try to answer posts here |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Jan 29, 2015 8:16 pm Post subject: |
|
|
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 |
|
|
rogerx Tux's lil' helper
Joined: 06 Apr 2004 Posts: 118
|
Posted: Thu Apr 30, 2015 11:44 pm Post subject: |
|
|
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3135
|
Posted: Fri May 01, 2015 9:14 pm Post subject: |
|
|
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 |
|
|
|