View previous topic :: View next topic |
Author |
Message |
ale n00b
Joined: 12 Feb 2004 Posts: 13 Location: Córdoba, Argentina
|
Posted: Wed Sep 22, 2004 10:22 pm Post subject: [ALSA Gstreamer] - Yet Another Sound Problem... |
|
|
Code: |
RUNNING pipeline ...
gst-launch-0.8: pcm.c:2094: snd_pcm_wait: Assertion `err == 1' failed.
Aborted
|
This is what I get when running:
Code: |
gst-launch-0.8 sinesrc ! alsasink
|
It all started when I decided to install rhythmbox, and I notice that there
wasn't sounds mixing. I check the setting (gstreamer-properties) and tried to set it to alsa, but gstreamer-properties crashed when I clicked test.
I've kernel 2.6.8-r3 (gentoo-dev-sources). The kernel is compiled with alsa
support and alsa has oss support. Alsa is mixing sounds... at least I've got
Quake2 and xmms running together fine .
I'm new to this gstreamer thingy... so any links, docs, solutions are welcomed.
--Ale. |
|
Back to top |
|
|
abali n00b
Joined: 19 Sep 2004 Posts: 69 Location: Budapest, Hungary
|
Posted: Thu Sep 23, 2004 12:22 am Post subject: |
|
|
I had the same problem and it turned out that either I had to resample the audio stream to 48000 hertz before piping it into alsasink ("audioscale" might be the appropriate filter to insert into the chain) or I had to remove the period_time, period_size, buffer_size and rate settings from the ALSA dmix config. But even though I got it working, it was far from perfect: I experienced random delays and cracks in the output. Therefore I set up ESD to use ALSA as output and configured gstreamer to use esdsink instead of alsasink. Interestingly this introduction of an additional layer solved the problems, which led me to the conclusion that alsasink is way to buggy to use (at least with my crappy onboard soundcard). |
|
Back to top |
|
|
ale n00b
Joined: 12 Feb 2004 Posts: 13 Location: Córdoba, Argentina
|
Posted: Thu Sep 23, 2004 2:16 am Post subject: |
|
|
Well, ESD is the default sound server for GNOME, so I guess it should work... I'm trying it right now... most applications seem to work.
Guess we'll have to wait for an upgrade
Anyway thanx.
--Ale |
|
Back to top |
|
|
abali n00b
Joined: 19 Sep 2004 Posts: 69 Location: Budapest, Hungary
|
Posted: Thu Sep 23, 2004 10:09 am Post subject: |
|
|
What I meant was that gstreamer-based applications only worked correctly if I told gstreamer to use ESD instead of ALSA. This is because the alsasink in gstreamer is buggy. However ESD can be set up to use native ALSA output (and thus dmixing) so it is still possible to run ESD/gstreamer and other ALSA-aware applications such as xmms at the same time. |
|
Back to top |
|
|
ale n00b
Joined: 12 Feb 2004 Posts: 13 Location: Córdoba, Argentina
|
|
Back to top |
|
|
thrope n00b
Joined: 03 Nov 2004 Posts: 66
|
|
Back to top |
|
|
askoff Tux's lil' helper
Joined: 15 Apr 2004 Posts: 77
|
Posted: Tue Mar 22, 2005 2:17 pm Post subject: |
|
|
How can I get Gstreamer to resample audio? I guess there is a good resampler plugin for Gstreamer? I'm using amaroK with Gstreamer.
EDIT: And is there a way to get dithering also for Gstreamer? |
|
Back to top |
|
|
|