Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175491 - gstreamer-0.10 + playbin unable to play audio cds.
Summary: gstreamer-0.10 + playbin unable to play audio cds.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-21 21:02 UTC by Pacho Ramos
Modified: 2007-04-22 17:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2007-04-21 21:02:12 UTC
I have:
media-sound/exaile-0.2.9-r1  USE="aac alsa cdparanoia flac gnome libnotify libsexy mad musepack ogg streamripper vorbis -ipod -oss -serpentine"


Reproducible: Always

Steps to Reproduce:
1. Load an Audio CD and trying to play it
2. When I press "play" button exaile doesn't start to reproduce
3.

Actual Results:  
I get the following in console:
/usr/lib64/python2.4/site-packages/mutagen/m4a.py:40: DeprecationWarning: mutagen.m4a is deprecated; use mutagen.mp4 instead.
  warnings.warn(
Plugins 'IM Status' version '0.10' loaded successfully
Plugins 'Mini Mode' version '0.1' loaded successfully
Plugins 'Streamripper!' version '0.1' loaded successfully
Plugins 'Gossip Status' version '0.1' loaded successfully
Plugins 'LibNotify Plugin' version '0.1' loaded successfully
Plugins 'Remove taskbar entry' version '0.1' loaded successfully
Plugins 'Serpentine Plugin' version '0.1' loaded successfully
Plugins 'Mass Storage Driver' version '0.1' loaded successfully
Plugins 'Python Console' version '0.1' loaded successfully
Plugins 'Desktop Cover' version '0.2' loaded successfully
Plugins 'Alarm Clock' version '0.1' loaded successfully
Plugins 'Sound Juicer' version '0.1' loaded successfully
Plugins 'resume.py' version '0.1' loaded successfully
Plugins 'iPod Device Driver' version '0.2' loaded successfully
Created db for thread Thread-1
{'Thread-1': <pysqlite2.dbapi2.Connection object at 0x2b9ad927d390>}
scale = 17 (height = 21)
scale = 17 (height = 21)
loading tracks...
mmkeys are available.
Closed db for thread Thread-1
done loading tracks...
loading songs
Clearing tracks cache
scale = 17 (height = 21)
Importing /home/pacho/.exaile/saved/playlist0000.m3u
Last playlist loaded
Loading page 0
scale = 17 (height = 21)
scale = 17 (height = 21)
scale = 17 (height = 21)
scale = 17 (height = 21)
scale = 17 (height = 21)
new thread created with Dire Straits - 1984 - Alchemy Dire Straits Live (Disc 2)
cover thread started
Thread done.... *shrug*, no covers found
Aborted cover thread
Last active is: 0
Exiting, bye!

It fails after logging:
Thread done.... *shrug*, no covers found
Aborted cover thread


My emerge --info:
Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-ck1 x86_64)
=================================================================
System uname: 2.6.20-ck1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 21 Apr 2007 17:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -msse3"
DISTDIR="/usr/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LINGUAS="es en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 arts asf audiofile bash-completion beagle bitmap-fonts bzip2 bzlib cairo caps cdb cdda cddb cdparanoia cdr cli cpdflib cpudetection cracklib cross crypt cups curl dbus dga divx4linux dlloader dri dts dvb dvd dvdr dvdread encode erandom escreen esd evo evolution exif fam fbcon flac foomaticdb fortran ftp galago gb gcj ggi gif gimp gimpprint glitz glut glx gnome gnome-print gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imlib isdnlog ithreads jabber java jpeg kde kdeenablefinal kdehiddenvisibility latex lcms libg++ libnotify logrotate mad madwifi midi mikmod mime mng mono motif mp3 mpeg mpi mplayer musepack musicbrainz nas nautilus ncurses nethack network nls nocardbus nptl nptlonly nvidia ogg oggvorbis openal opengl pam pcre pdf perl pic plotutils png posix ppds pppd python qt3 qt4 quicktime readline reflection rtc ruby scanner sdl seamonkey session slang slp sockets spell spl sse3 ssl startup-notification svg sysvipc tcltk tcpd tetex theora threads tiff timidity tk totem trayicon truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd videos vim vorbis wma wmf xcomposite xine xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 15:56:39 UTC
Try re-emerging cddb-py, and running python-updater if you have upgraded at some point from 2.3 to 2.4..

Because it seems to be 'worksforme' case.
Comment 2 Pacho Ramos gentoo-dev 2007-04-22 16:20:56 UTC
(In reply to comment #1)
> Try re-emerging cddb-py, and running python-updater if you have upgraded at
> some point from 2.3 to 2.4..
> 
> Because it seems to be 'worksforme' case.
> 

The problem persists :-(, What USE flags are you using?

My exaile:
 media-sound/exaile-0.2.9-r1  USE="aac alsa cdparanoia flac gnome libnotify libsexy mad musepack ogg streamripper vorbis -ipod -oss -serpentine"

Thanks
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 16:21:35 UTC
Also, it might be a gstreamer problem so please insert an audio cd and try this command from terminal:

gst-launch-0.10 playbin uri="cdda://1"

and music should start playing.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 16:23:00 UTC
(In reply to comment #2)
> The problem persists :-(, What USE flags are you using?

Your USE flags are fine.
Comment 5 Pacho Ramos gentoo-dev 2007-04-22 16:28:31 UTC
(In reply to comment #3)
> Also, it might be a gstreamer problem so please insert an audio cd and try this
> command from terminal:
> 
> gst-launch-0.10 playbin uri="cdda://1"
> 
> and music should start playing.
> 

I get the following:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /playbin0/source: Could not open CD device for reading.
Additional debug info:
gstcdparanoiasrc.c(246): gst_cd_paranoia_src_open (): /playbin0/source:
cdda_open failed
Setting pipeline to NULL ...
FREEING pipeline ...

The cdrom device is /dev/hdc

Thanks
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 16:33:02 UTC
So it's a bug in your gstreamer installation, not exaile itself. Try rebuilding *all of gstreamer*, *including plugins* you have installed.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 16:33:54 UTC
Also, i'd check for..

drac@unique ~/gentoo-x86/media-sound/exaile $ ls -l /dev/cdrom 
lrwxrwxrwx 1 root root 3 2007-04-21 18:16 /dev/cdrom -> hdc
Comment 8 Pacho Ramos gentoo-dev 2007-04-22 16:50:32 UTC
(In reply to comment #7)
> Also, i'd check for..
> 
> drac@unique ~/gentoo-x86/media-sound/exaile $ ls -l /dev/cdrom 
> lrwxrwxrwx 1 root root 3 2007-04-21 18:16 /dev/cdrom -> hdc
> 

# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 abr 22 12:14 /dev/cdrom -> hdd

But I have changed exaile prefs for accessing directly to /dev/hdc, Could the problem be here?

Also, banshee and rhythmbox don't have this problem :-|

Thanks
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 17:13:35 UTC
(In reply to comment #8)
> lrwxrwxrwx 1 root root 3 abr 22 12:14 /dev/cdrom -> hdd
> But I have changed exaile prefs for accessing directly to /dev/hdc, Could the
> problem be here?

Seems like for playbin to work, /dev/cdrom needs to be a symlink to correct device?

drac@unique ~/gentoo-x86 $ sudo rm /dev/cdrom 
drac@unique ~/gentoo-x86 $ gst-launch-0.10 playbin uri="cdda://1"
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /playbin0/source: Could not open CD device for reading.
Additional debug info:
gstcdparanoiasrc.c(240): gst_cd_paranoia_src_open (): /playbin0/source:
cdda_identify failed
Setting pipeline to NULL ...
FREEING pipeline ...

> 
> Also, banshee and rhythmbox don't have this problem :-|
> 
> Thanks
> 

They might be using alternative ways.. playbin isn't absolute.
Comment 10 Pacho Ramos gentoo-dev 2007-04-22 17:26:00 UTC
Changing the link to correct device fixed the problem

Thanks a lot :-)

Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 17:45:30 UTC
(In reply to comment #10)
> Changing the link to correct device fixed the problem
> 
> Thanks a lot :-)
> 

Seems a bit lame still. Trying to figure out if there is a way to tell playbin + cdda a device.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 17:48:42 UTC
from #gstreamer, Freenode:

20:46 < thaytan> drac: there's no way via the uri at the moment
20:46 < thaytan> there's a bug open about it
20:46 < thaytan> I think you can connect to the notify::source signal on playbin and change the device property at the moment playbin creates the cddasrc element

Anyway, passed this information also to Exaile upstream and discussed about it. So likely this is going to change one way or other in future gst and/or exaile releases.