After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 310859 - Gstreamer/alsa-sink sounds wierd
Gstreamer/alsa-sink sounds wierd
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.10
Other Linux
: Normal blocker
: 0.10.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 314948 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-19 11:43 UTC by tmp
Modified: 2006-07-14 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description tmp 2005-07-19 11:43:16 UTC
Play a song using an arbitray gstreamer-application.
Comment 1 tmp 2005-07-19 11:47:42 UTC
Ooops, forgot all the info:

When playing a song using an arbitray gstreamer-app it sounds like an
echo-effect is applied: The song is played in 2-3 overlays with 1/4 seconds apart.
Playing the song directly with alsaplayer works just fine.

I use debian/sid.

$ dpkg -l | grep gstr | cut -d " " -f 1-20
ii  gstreamer-alsa                0.6.4-5.1
ii  gstreamer-audiofile           0.6.4-5.1
rc  gstreamer-flac                0.6.4-5.1
ii  gstreamer-gconf               0.6.4-5.1
ii  gstreamer-gnomevfs            0.6.4-5.1
ii  gstreamer-mad                 0.6.4-5.1
ii  gstreamer-misc                0.6.4-5.1
ii  gstreamer-oss                 0.6.4-5.1
ii  gstreamer-plugin-apps         0.6.4-5.1
ii  gstreamer-plugin-libs         0.6.4-5.1
ii  gstreamer-plugin-libs-dev     0.6.4-5.1
ii  gstreamer-tools               0.6.4-1.1
ii  gstreamer-vorbis              0.6.4-5.1
ii  gstreamer0.8-a52dec           0.8.10-1
ii  gstreamer0.8-aa               0.8.10-1
ii  gstreamer0.8-alsa             0.8.10-1
ii  gstreamer0.8-artsd            0.8.10-1
ii  gstreamer0.8-audiofile        0.8.10-1
ii  gstreamer0.8-caca             0.8.10-1
ii  gstreamer0.8-cdparanoia       0.8.10-1
ii  gstreamer0.8-dv               0.8.10-1
ii  gstreamer0.8-dvd              0.8.10-1
ii  gstreamer0.8-esd              0.8.10-1
ii  gstreamer0.8-faad             0.8.8-0.2
ii  gstreamer0.8-festival         0.8.10-1
ii  gstreamer0.8-flac             0.8.10-1
ii  gstreamer0.8-gnomevfs         0.8.10-1
ii  gstreamer0.8-gsm              0.8.10-1
ii  gstreamer0.8-hermes           0.8.10-1
ii  gstreamer0.8-jack             0.8.10-1
ii  gstreamer0.8-jpeg             0.8.10-1
ii  gstreamer0.8-mad              0.8.10-1
ii  gstreamer0.8-mikmod           0.8.10-1
ii  gstreamer0.8-misc             0.8.10-1
ii  gstreamer0.8-mpeg2dec         0.8.10-1
ii  gstreamer0.8-musepack         0.8.10-1
ii  gstreamer0.8-oss              0.8.10-1
ii  gstreamer0.8-plugin-apps      0.8.10-1
ii  gstreamer0.8-plugins          0.8.10-1
ii  gstreamer0.8-sdl              0.8.10-1
ii  gstreamer0.8-sid              0.8.10-1
ii  gstreamer0.8-speex            0.8.10-1
ii  gstreamer0.8-swfdec           0.8.10-1
ii  gstreamer0.8-theora           0.8.10-1
ii  gstreamer0.8-tools            0.8.10-2
ii  gstreamer0.8-vorbis           0.8.10-1
ii  gstreamer0.8-x                0.8.10-1
ii  libgstreamer-gconf0.8-0       0.8.10-1
ii  libgstreamer-plugins0.8-0     0.8.10-1
ii  libgstreamer-plugins0.8-dev   0.8.10-1
ii  libgstreamer0.6-0             0.6.4-1.1
ii  libgstreamer0.8-0             0.8.10-2
ii  libgstreamer0.8-dev           0.8.10-2


$ dpkg -l | grep alsa | cut -d " " -f 1-25
ii  alsa-base                     1.0.9b-2
ii  alsa-oss                      1.0.9-1
ii  alsa-utils                    1.0.9a-3
ii  alsaplayer                    0.99.76-0.3
ii  alsaplayer-alsa               0.99.76-6
ii  alsaplayer-common             0.99.76-6
ii  alsaplayer-gtk                0.99.76-6
ii  alsaplayer-oss                0.99.76-6
rc  alsaplayer-text               0.99.76-0.3
ii  gnome-alsamixer               0.9.6-1
ii  gstreamer-alsa                0.6.4-5.1
ii  gstreamer0.8-alsa             0.8.10-1
ii  libbio2jack0                  0.7-0.1
ii  libpt-plugins-alsa            1.8.4-1
Comment 2 Ronald Bultje 2005-07-19 11:50:29 UTC
Did you enable dmix? Does it work without?
Comment 3 tmp 2005-07-20 16:21:18 UTC
Yes, dmix is enabled. But when I disable dmix it still doesn't work. Same
symptoms (the echo-effect).
Comment 4 Andy Wingo 2005-07-22 07:35:59 UTC
What sound card do you have? Does it happen with every song? Also, run this command:

gst-launch-0.8 sinesrc ! alsasink

Does it produce a sine tone? (Confirmation from another debian user would be nice..)
Comment 5 tmp 2005-07-22 12:25:36 UTC
I have an Audiophile 2496 sound card. The problem occurs with every song, yes.
-And also when I press "Test" in gstreamer-properties.

The command you wrote produces a sine tone, but with the same disturbance as
described above.

Notice, that it worked fine for a couple of weeks ago - but after an "apt-get
upgrade" the error came (maybe it came together with the change from gnome2.8 to
2.10?)

Also, the sound is error-free when playing with e.g. alsaplayer. It's only when
the sound comes through gstreamer there is a problem, so I guess it indicates
that it indeed is gstreamer that causes the wierd sound.
Comment 6 Ronald Bultje 2005-07-22 13:20:31 UTC
Does it get better if you manually specify a period-size?

gst-launch-0.8 sinesrc ! alsasink period-size=8192
Comment 7 tmp 2005-07-22 16:53:54 UTC
Yes, with a period size of 2048 or 1024 the click/echo-sound in the sine tune
disappears.
How can I try that out on an mp3 file?
And how can I configure a permanent period size of 1024 or 2048?
Comment 8 Ronald Bultje 2005-07-22 17:18:00 UTC
Start 'gstreamer-properties' from the commandline, and as audio sink, select
'Custom' and type 'alsasink period-size=1024'. From then on, RB/Totem will use
that new sink.
Comment 9 tmp 2005-07-22 18:08:17 UTC
OK, I've just done that and the sine test tone now sounds perfect in
gstreamer-properties. But for some reason the problems with
juk/amarok/any-gstreamer-mp3-player is still there - unaffected. Quite strange
actually.
Comment 10 Ronald Bultje 2005-07-22 18:25:58 UTC
KDE apps don't use GNOME preferences. ;). In AmaroK, preferences, you can select
an audiosink, same method applies there. Don't know for juk, though.
Comment 11 tmp 2005-07-23 20:10:41 UTC
OK - amarok has a "parameters" field in which I can type the options you
described above. But some considerations:

1) Amarok performs really poor now (guess it have something to do with the
period size): Even the smallest load disturbs the music.

2) Why is it up to the applications to read the gstreamer config? Shouldn't it
be something gstreamer took care of itself? Wouldn't it be more optimal if
applications could just make use the "secret black box" called gstreamer that
just works - instead of letting the app's all reimplement this fundamental
functionallity?

3) I still think it's wierd that the upgrade spoiled the working setup. -And we
haven't really found the reason for that yet. :-)
Comment 12 Ronald Bultje 2005-07-23 21:43:18 UTC
2; yes, that'd be lovely. It'd even be more lovely if alsa would actually allow
that to happen.

It doesn't.

Welcome to ALSA hell.
Comment 13 kimiko 2005-07-24 19:38:49 UTC
See also Ubuntu bug <a
href="http://bugzilla.ubuntu.com/show_bug.cgi?id=11486">#11486</a>
A temporary solution is to downgrade the ALSA plugin to version 0.8.8something
Comment 14 Ole Laursen 2005-08-14 22:57:36 UTC
I also have very audible clicks usually with a random period of about 2-3
seconds (i.e. 2-3 seconds of music, then a click, then 2-3 seconds of music
etc.) when using alsasink. It happens also with the sinesrc through the above
command-line. Playback with ogg123 using its alsa backend works fine. I'm on
Debian unstable with version 0.8.10 of gstreamer-alsa. The sound card is a SIS
integrated laptop one.

Setting period-size to a lower value decreases the period of the clicks, whereas
a larger value increases the period.
Comment 15 Ole Laursen 2005-08-14 23:04:57 UTC
I tried setting the alsasink buffer-size=24756 (3 * 8192) as hinted in another
bug. This made the clicks go away as far as I can tell.
Comment 16 Justin Mason 2005-10-01 01:19:59 UTC
btw, I'm running into this on Juk now, and came across this bug.  Having
wrestled with Juk and Gstreamer before, here's a useful snippet -- how to change
its sink.     In ~/.kde/share/config/jukrc just add:

[GStreamerPlayer]
SinkName=alsasink 

guess what though -- arguments to the sink aren't permitted :(
Comment 17 Andy Wingo 2005-11-30 11:22:39 UTC
*** Bug 314948 has been marked as a duplicate of this bug. ***
Comment 18 Alexander “weej” Jones 2005-11-30 11:43:18 UTC
I'm experiencing this on my Audiophile 2496.
Comment 19 Andy Wingo 2006-01-12 19:24:59 UTC
Does this still happen with the latest gst-plugins 0.8 CVS ?

Alternately does it work for you with gstreamer 0.10?
Comment 20 Andy Wingo 2006-01-27 14:21:59 UTC
Ping on everybody that had this problem. Can anyone reproduce with the latest alsasink from 0.8? Some patches fixed problems for a lot of people. Also I would like testing with 0.8, por favor :-)
Comment 21 Ole Laursen 2006-01-29 16:04:38 UTC
0.8.11 has the same problem, if that's what you are referring to? Else do you have a tarball available somewhere? I don't know what to fetch from the CVS repository.
Comment 22 Daniel Holbach 2006-07-14 13:21:46 UTC
Ubuntu bug comment: "Ow, is this bug still open? I haven't had any stuttering for months now. I guess it was fixed in 0.10. Yes, I have version 0.10.4-1ubuntu1 here, from Dapper." - I think it's safe to close the bug.
Comment 23 Wim Taymans 2006-07-14 13:38:50 UTC
thanks, closing now, not going to bother with 0.8.x anymore.