A few days ago I upgraded alsa-lib from 1.0.9_rc3 to 1.0.9 (I'm also using alsa-driver 1.0.9 instead of default kernel alsa) and I noticed that this upgrade broke gst-plugins-alsa-0.8.8 and with it a few other plugins: I can still play mp3 files but musepack and ogg files don't work anymore. This is the output I get: alsa-lib-1.0.9_rc3 (works as usual): ghepeu@KazeNoTani ~ $ LC_ALL="C" gst-launch-0.8 filesrc location="lugradio-s2e12-280305.ogg" ! spider ! alsasink RUNNING pipeline ... alsa-lib-1.0.9: ghepeu@KazeNoTani ~ $ LC_ALL="C" gst-launch-0.8 filesrc location="lugradio-s2e12-280305.ogg" ! spider ! alsasink RUNNING pipeline ... ERROR: from element /pipeline0/alsasink0: Could not get/set settings from/on resource. ERROR: from element /pipeline0/spider0/vorbisdec0: Internal GStreamer error: pad problem. File a bug. Additional debug info: gstpad.c(2563): gst_pad_set_explicit_caps: /pipeline0/spider0/vorbisdec0: failed to negotiate (try_set_caps with "audio/x-raw-float, rate=(int)22000, channels=(int)1, endianness=(int)1234, width=(int)32, buffer-frames=(int)0" returned REFUSED) Execution ended after 15 iterations (sum 276687000 ns, average 18445800 ns, min 34000 ns, max 147733000 ns). I was going to submit this bug upstream, but I read on http://gstreamer.freedesktop.org/releases/gst-plugins/0.8.9.html that there is a new gst-plugins stable release, not in portage, so I decided to file the report here, in case this issue is now fixed. Eventually I'm going to bump the ebuilds in my overlay, if needed, when I'll have some free time. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-ck8-r1 i686) ================================================================= System uname: 2.6.11-ck8-r1 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 18:19:18)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="it_IT" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" LINGUAS="it en_GB de fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 16bit 3dnow 3dnowext X a52 aac acpi acpi4linux alsa apache2 audiofile avi bash-completion berkdb bmp bzip2 cdparanoia cdr crypt cups curl dbus divx4linux dlloader dts dv dvd dvdread eds emboss encode faac faad fbcon fbdev ffmpeg flac font-server foomaticdb fortran gd gif glitz gnome gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib innodb ithreads java javascript jce jpeg kdeenablefinal lcms libg++ libwww live lzw-tiff mad matroska mmap mmx mmxext mng motif mozilla mozsvg mp3 mpeg mysql ncurses network nls no-old-linux nomac nptl objc ogg oggvorbis opengl pam pdflib perl png ppds python qt quicktime readline real rtc samba sdl slang sndfile spell sse ssl svg svga tcpd tetex tga theora threads tiff truetype truetype-fonts type1 type1-fonts uptimed usb userlocales videos vidix vorbis win32codecs wmf xchatdccserver xine xml2 xprint xv xvid yv12 zlib video_cards_radeon linguas_it linguas_en_GB linguas_de linguas_fr userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL
That's more a gstreamer problem than an alsa one.
the upgrade didn't fix the problem, so I submitted the bug upstream and discovered that it is due to changes in alsa http://bugzilla.gnome.org/show_bug.cgi?id=306934 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1101 It seems that nobody's working on it. A workaround is setting "alsasink device=hw:0" as default audio sink in the Multimedia Systems Selector
This problem is a bug in alsa, only showing up since 1.0.9 of the drivers. For certain sound cards alsa advertises it supports audio with certain parameters and when setting those parameters it says parameters invalid. However not many cards have this problem.. Just for your information, spider is now deprecated and decodebin is recommended instead. So try: gst-launch-0.8 filesrc location="lugradio-s2e12-280305.ogg" ! decodebin ! audioconvert ! alsasink
Same error. ghepeu@KazeNoTani ~ $ LC_ALL="C" gst-launch-0.8 filesrc location="lugradio-s2e12-280305.ogg" ! decodebin ! alsasink RUNNING pipeline ... ERROR: from element /pipeline0/alsasink0: Could not get/set settings from/on resource. ERROR: from element /pipeline0/decodebin0/vorbisdec0: Internal GStreamer error: pad problem. File a bug. Additional debug info: gstpad.c(2562): gst_pad_set_explicit_caps: /pipeline0/decodebin0/vorbisdec0: failed to negotiate (try_set_caps with "audio/x-raw-float, rate=(int)22000, channels=(int)1, endianness=(int)1234, width=(int)32, buffer-frames=(int)0" returned REFUSED) Execution ended after 16 iterations (sum 253732000 ns, average 15858250 ns, min 21000 ns, max 235830000 ns). My soundcard is a Sound Blaster Live! 5.1 (emu10k1): 0000:00:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07) Subsystem: Creative Labs SB Live! 5.1 Model SB0100 Flags: bus master, medium devsel, latency 32, IRQ 19 I/O ports at e800 Capabilities: [dc] Power Management version 1
I have the same problem. I'm using alsa from kernel 2.6.15-r1 and gst-plugins-base-0.10.4-r1 and 5(own ebuild). fausto@ryba mp3_3_other % gst-launch-0.10 playbin uri=file:///mnt/music/mp3_3_other/1.mp3 Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /playbin0/abin/audiosink/actual-sink: Could not get/set settings from/on resource. Additional debug info: gstalsasink.c(570): set_hwparams (): /playbin0/abin/audiosink/actual-sink: Rate doesn't match (requested 44100Hz, get 0Hz) ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... fausto@ryba mp3_3_other % Setting various audio outputs in gstreamer-properties doesnt help. Forum topic related to this: http://forums.gentoo.org/viewtopic-t-451439.html This seems to prevent media-sound/banshee from working. According to gstream developers it is a gentoo-specific bug. Is there a solution or workaround yet?
Not going anywhere; if you have issues w/ 0.10.x and recent alsa-lib (1.0.14_rcX), feel free to reopen. gstreamer 0.8.x is basically dead.