GStreamer fails when trying to play back through alsasink. Output from 'gst-launch-0.8 sinesrc ! alsasink --gst-debug-level=2' ---------------------------------------------------------------- RUNNING pipeline ... WARN (0x50ac20 - 309203:26:00.499925000) alsa(11095) gstalsa.c(1701):gst_alsa_probe_hw_params:<alsasink0> "snd_pcm_hw_params_set_period_size_near (this->handle, hw_params, &period_size, 0)": Invalid argument ERROR: pipeline doesn't want to play. ---------------------------------------------------------------- The following versions are installed: media-libs/gstreamer-0.8.9-r3 media-libs/gst-plugins-0.8.8 media-plugins/gst-plugins-alsa-0.8.8 A workaround for this issue is to use osssink instead which works fine. Reproducible: Always Steps to Reproduce: 1. Running 'gst-launch-0.8 sinesrc ! alsasink --gst-debug-level=2' 2. GStreamer refuses to play. Actual Results: The pipeline doesn't want to play. Expected Results: GStreamer should play back through alsasink. output from emerge info: ---------------------------------------------------------------------- Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 x86_64) ================================================================= System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 FX-55 Processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 15:51:28)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 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.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at" LANG="de_DE@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/gentoo-de" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa bash-completion berkdb bitmap-fonts cdr crypt cups curl dvd dvdr esd fam flac font-server foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 java jp2 jpeg libwww lzw lzw-tiff mad motif mozilla mp3 ncurses nls nptl oggvorbis opengl oss pam perl png ppds python readline ssl tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xmms xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
What version of alsa-lib? Also what alsa driver and what sound card? I doubt its amd64 specific...
media-libs/alsa-lib-1.0.8 I'm using the Asus A8N-SLI deluxe onboard soundcard with the intel8x0 driver. Kernel is 2.6.11-gentoo-r6. lspci says: ---------------------------- 0000:00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
Ok I managed to reproduce this on my amd64 box....you may be right it may be an upstream issue with amd64. I'm investigating.
this is a bug in alsa returning a bad period size, i got round it on my amd64 by using alsasink device=hw:0 or updating to newest kernel (2.6.12)...but it seems depending on device, different kernel versions and alsa-lib are required.
Still a problem with gst-plugins 0.8.12? Also more importasntly, is it a problem with latest 0.10 series (they are ~amd64 currently)
It is working for some time now. I'm now using kernel 2.6.15-gentoo-r5 gstreamer 0.10.4 As I remember, it also worked with gstreamer 0.8.12
thanks