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 455571 - [alsasink] set_hwparams: rate doesn't match (requested 44100Hz, get 0Hz)
[alsasink] set_hwparams: rate doesn't match (requested 44100Hz, get 0Hz)
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.11
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-10 14:27 UTC by Rodrigo Castro
Modified: 2011-02-17 02:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug.log (3.05 KB, text/plain)
2007-07-10 14:55 UTC, Rodrigo Castro
Details

Description Rodrigo Castro 2007-07-10 14:27:11 UTC
USB speakers on a system with ALSA play perfectly when using mplayer or when setting it to use gstreamer+plughw, but not when using gstreamer+hw.

1 - MPlayer output when playing an ogg file (indicates a 48KHz as output):

==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) 

2 - gst-launch:

gst-launch-0.10 filesrc location=my.ogg ! oggdemux ! vorbisdec ! 
audioconvert ! audioresample ! alsasink device=hw:1
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /pipeline0/alsasink0: Could not get/set settings 
from/on resource.
Additional debug info:
gstalsasink.c(570): set_hwparams (): /pipeline0/alsasink0:
Rate doesn't match (requested 44100Hz, get 0Hz)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
FREEING pipeline ...

--
Changing output rates from 44.1KHz down to 8KHz results in the same error. See attached debug.log for above gst-launch command.

Please let me know if any further information is needed.
Comment 1 Rodrigo Castro 2007-07-10 14:55:42 UTC
Created attachment 91548 [details]
debug.log

gst-launch debug information
Comment 2 Tim-Philipp Müller 2007-07-11 09:21:03 UTC
Could you try with a more recent gst-plugins-base by any chance? (ie. 0.10.13 or CVS)
Comment 3 Rodrigo Castro 2007-07-11 12:04:23 UTC
I installed CVS versions of gstreamer and gst-plugins-base. My experience so far:

- Once it failed exactly like reported above.
- Sometimes it seems to be playing, but no sound comes out of the speakers. Playing the same ogg files with mplayer right after that works fine. That happens all the time with a particular ogg file.
- When it plays any sound, only the start portion of the file is played and gets muted after that. For example, with an ogg file that is 3s, it plays around 0.5s and nothing comes out of the speakers in the remaining time.

Comment 4 Tim-Philipp Müller 2010-12-29 13:02:27 UTC
Sorry, is this still an issue these days? :)

If yes, could you provide an updated GST_DEBUG=*:5 log of your pipeline running for a few (10 or so) seconds?
Comment 5 Fabio Durán Verdugo 2011-02-17 02:42:16 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!