Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ALSA Gstreamer] - Yet Another Sound Problem...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ale
n00b
n00b


Joined: 12 Feb 2004
Posts: 13
Location: Córdoba, Argentina

PostPosted: Wed Sep 22, 2004 10:22 pm    Post subject: [ALSA Gstreamer] - Yet Another Sound Problem... Reply with quote

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
View user's profile Send private message
abali
n00b
n00b


Joined: 19 Sep 2004
Posts: 69
Location: Budapest, Hungary

PostPosted: Thu Sep 23, 2004 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
ale
n00b
n00b


Joined: 12 Feb 2004
Posts: 13
Location: Córdoba, Argentina

PostPosted: Thu Sep 23, 2004 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message
abali
n00b
n00b


Joined: 19 Sep 2004
Posts: 69
Location: Budapest, Hungary

PostPosted: Thu Sep 23, 2004 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
ale
n00b
n00b


Joined: 12 Feb 2004
Posts: 13
Location: Córdoba, Argentina

PostPosted: Thu Sep 23, 2004 4:43 pm    Post subject: Reply with quote

Sorry, I didn't understand very well, as I said, I'm new to this whole dmixing stuff. (Actually I just cut and paste conf code from google :)... I guess I should read more).

Anyway I set esd to use alsa, and got a 'nicer' asound.conf :)

This link was helpfull too.
[url]
http://alsa.opensrc.org/index.php?page=Dmix+Kde+-+arts%2C+ESD+and+SDL+quick+and+dirty+HOWTO
[/url]

Thanx for your help and time.
Back to top
View user's profile Send private message
thrope
n00b
n00b


Joined: 03 Nov 2004
Posts: 66

PostPosted: Fri Nov 12, 2004 8:01 pm    Post subject: Reply with quote

There is a patch here which fixes this problem...

There is a bug filed (no 623 i think) on http://bugtrack.alsa-project.org/
Back to top
View user's profile Send private message
askoff
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2004
Posts: 77

PostPosted: Tue Mar 22, 2005 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum