Summary: | gstreamer: choppy Ogg Vorbis playback through alsasink | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Philip Allison <mangobrain> |
Component: | Current packages | Assignee: | GStreamer package maintainers <gstreamer> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Philip Allison
2005-06-16 05:58:38 UTC
can you try with alsasink device=hw:0 and alsasink device=plug:dmix and let me know if either of those improves the sound. device=hw:0 didn't make any difference, and device=plug:dmix resulted in silence. I expected the latter; I don't have dmix configured in any way, as I'm lucky enough to have a card with supported hardware mixing (SoundFusion CS46**) I suppose I could configure dmix temporarily and try again, would that be worthwhile? what version of alsa-lib? also can you give me the output of: gst-launch-0.8 -v filesrc location=file.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink alsa-lib 1.0.9 "gst-launch-0.8 -v filesrc location=lokki.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink" says: RUNNING pipeline ... /pipeline0/filesrc0.src: caps = application/ogg /pipeline0/oggdemux0.sink: caps = application/ogg /pipeline0/filesrc0.src: active = TRUE /pipeline0/oggdemux0.sink: active = TRUE /pipeline0/oggdemux0.serial_1434747362: caps = audio/x-vorbis /pipeline0/vorbisdec0.sink: caps = audio/x-vorbis /pipeline0/vorbisdec0.sink: active = TRUE /pipeline0/vorbisdec0.src: active = TRUE /pipeline0/audioconvert0.sink: active = TRUE /pipeline0/audioconvert0.src: active = TRUE /pipeline0/alsasink0.sink: active = TRUE /pipeline0/audioconvert0.src: caps = audio/x-raw-int, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true/pipeline0/alsasink0.sink: caps = audio/x-raw-int, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true /pipeline0/vorbisdec0.src: caps = audio/x-raw-float, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)32, buffer-frames=(int)0 /pipeline0/audioconvert0.sink: caps = audio/x-raw-float, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)32, buffer-frames=(int)0 Execution ended after 459 iterations (sum 4463011000 ns, average 9723335 ns, min 5000 ns, max 46618000 ns). Caught interrupt. /pipeline0/filesrc0.src: active = FALSE /pipeline0/oggdemux0.sink: active = FALSE /pipeline0/oggdemux0.serial_1434747362: active = FALSE /pipeline0/vorbisdec0.sink: active = FALSE /pipeline0/vorbisdec0.src: active = FALSE /pipeline0/audioconvert0.sink: active = FALSE /pipeline0/audioconvert0.src: active = FALSE /pipeline0/alsasink0.sink: active = FALSE /pipeline0/filesrc0.src: caps = NULL /pipeline0/oggdemux0.sink: caps = NULL /pipeline0/vorbisdec0.src: caps = NULL /pipeline0/audioconvert0.sink: caps = NULL /pipeline0/audioconvert0.src: caps = NULL /pipeline0/alsasink0.sink: caps = NULL please try downgrading to alsa-lib 1.0.8 and use 2.6.11 kernel rather than 2.6.12, i believe the alsa 1.0.9 drivers and libs caused a few soundcards to have issues. The reason ogg123 and other alsa apps sound fine, is that gstreamer uses more of the alsa api which in certain alsa device drivers is buggy. Things seem to improve greatly when using "alsasink period-size=1024 buffer-size=4096", however, Ogg Vorbis absolutely REQUIRES that audioconvert be placed in the pipeline between vorbisdec and alsasink if it is to work at all. This is on a cs46xx (Cirrus Logic CS 4614/22/24) with alsa-lib 1.0.9, gst-plugins-alsa 0.8.11, and in-kernel ALSA drivers from gentoo-sources 2.6.13-r3, with no /etc/asound.conf. To summarise, setting GNOME's default audio sink to "audioconvert ! alsasink period-size=1024 buffer-size=4096" results in working, clear playback of Ogg Vorbis, WAV and MP3. Append "... when previewing sound files in Nautilus" to the last paragraph above; sorry. Using a similar pipe on the command line also works, of course. All 3 formats could already be played back fine with other (non-gstreamer) ALSA apps. Hi I'm having the same problem with the alsasink. This is my asound.conf pcm.mixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" #period_time 0 period_size 1024 buffer_size 8192 rate 44100 } } pcm.!default { type plug slave.pcm "mixer" } This gives a choppy sound: gst-launch-0.8 sinesrc ! alsasink and this doesn't: gst-launch-0.8 sinesrc ! alsasink period-size=1024 There appears to be a bug on the gnome bugzilla that deals with this problem: http://bugzilla.gnome.org/show_bug.cgi?id=314689 I'm using gstreamer-0.8.11, alsa-driver-1.0.10_rc3. Ih op this helps. My emerge info: Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r4 i686) ================================================================= System uname: 2.6.14-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-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=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://ftp.belnet.be/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X a52 aac alsa ao aotuv apache2 artworkextra atlas audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cairo cdf cdr cpdflib cpudetection crypt cups curl dbus dga dio directfb divx4linux djbfft dlloader dnd doc dpms droproot dts dv dvb dvd dvdread edl eds effects encode erandom ethereal evms2 exif expat fam fb fbcon fbdev fftw flac foomaticdb fortran fs gd gdbm gif ginac glut gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn imagemagick imap imlib inkjar ipv6 java jpeg justify lapack lcms libcaca libg++ libgda libvisual libwww live lm_sensors lzo mad matroska mbpx md5sum mhash mikmod mmx mng mp3 mpeg mpeg4 mplayer msql mysql mysqli mythtv ncurses nls no-old-linux nomac nomotif noplugin nptl nptlonly ogg oggvorbis openal opengl oss pam pango pcre pdflib perl physfs plotutils plugin png ppds python quicktime readline real recode rrdtool rtc sapdb sdk sdl sharedmem shorten slang sockets speex spell sse sse2 ssl subp svg sysfs sysvipc tcltk tcpd tetex theora threads tiff toolbar transcode truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l v4l2 vcd vidix vim-with-x vorbis wifi wmf xanim xine xml xml2 xmms xscreensaver xv xvid xvmc yv12 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS If you still have issues w/ current gstreamer versions, file a new bug. Thanks. |