[gst-devel] Problems with USB speakers
Stefan Kost
ensonic at hora-obscura.de
Thu Jun 21 10:08:32 CEST 2007
Hi Rodrigo,
Quoting Rodrigo Castro <rodrigo.castro at mezzano.com.br>:
> Rodrigo Castro wrote:
>> Stefan Kost wrote:
>>
>>> I suspect that the driver is bahiving strange. Can you run:
>>>
>>> GST_DEBUG="alsa*:5" GST_DEBUG_NO_COLOR=1 gst-launch-0.10
>>> 2>debug.log filesrc
>>> location=my.ogg ! oggdemux ! vorbisdec ! audioconvert !
>>> audioresample ! alsasink
>>> device=hw:1
>>>
>>> and post the log?
>>>
>
> One additional information. I tried to change the rate from 44100 down
> to 8000 and I always have the same error message as below.
>
setting the sample-rate fails even though the driver says its
supported. Can you try to enforce 48kHz:
GST_DEBUG="alsa*:5" GST_DEBUG_NO_COLOR=1 gst-launch-0.10 2>debug.log filesrc
location=my.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample
! audio/x-raw-int,rate=48000,channels=2,width=16,depth=16,signed=true
! alsasink
device=hw:1
Stefan
>
> Thanks for your help.
>
> Rodrigo
>
>>
>> Sure. Please let me know if you need further information or testing.
>>
>> 0:00:00.573144000 21063 0x8050a08 DEBUG alsa
>> gstalsaplugin.c:75:plugin_init: binding text domain
>> gst-plugins-base-0.10 to locale dir /usr/share/locale
>> 0:00:00.574139000 21063 0x8050a08 DEBUG alsa
>> gstalsasink.c:279:gst_alsasink_init:<GstAlsaSink at 0x80f4000>
>> initializing alsasink
>> 0:00:00.587925000 21063 0x8050a08 DEBUG alsa
>> gstalsasink.c:385:gst_alsasink_getcaps:<alsasink0> device not open,
>> using template caps
>> Setting pipeline to PAUSED ...
>> Pipeline is PREROLLING ...
>> 0:00:00.759235000 21063 0x8062890 LOG alsa
>> gstalsasink.c:398:gst_alsasink_getcaps:<alsasink0> probing channels
>> ...
>> 0:00:00.759440000 21063 0x8062890 LOG alsa
>> gstalsasink.c:425:gst_alsasink_getcaps:<alsasink0> Min. channels =
>> 2 (2)
>> 0:00:00.759506000 21063 0x8062890 LOG alsa
>> gstalsasink.c:426:gst_alsasink_getcaps:<alsasink0> Max. channels =
>> 2 (2)
>> 0:00:00.759618000 21063 0x8062890 DEBUG alsa
>> gstalsasink.c:447:gst_alsasink_getcaps:<alsasink0> returning caps
>> audio/x-raw-int, endianness=(int){ 1234, 4321 }, signed=(boolean){
>> true, false }, width=(int)16, depth=(int)16, rate=(int)[ 1,
>> 2147483647 ], channels=(int)2; audio/x-raw-int, signed=(boolean){
>> true, false }, width=(int)8, depth=(int)8, rate=(int)[ 1,
>> 2147483647 ], channels=(int)2
>> 0:00:00.760310000 21063 0x8062890 DEBUG alsa
>> gstalsasink.c:391:gst_alsasink_getcaps:<alsasink0> Returning cached
>> caps audio/x-raw-int, endianness=(int){ 1234, 4321 },
>> signed=(boolean){ true, false }, width=(int)16, depth=(int)16,
>> rate=(int)[ 1, 2147483647 ], channels=(int)2; audio/x-raw-int,
>> signed=(boolean){ true, false }, width=(int)8, depth=(int)8,
>> rate=(int)[ 1, 2147483647 ], channels=(int)2
>> 0:00:00.761270000 21063 0x8062890 DEBUG alsa
>> gstalsasink.c:391:gst_alsasink_getcaps:<alsasink0> Returning cached
>> caps audio/x-raw-int, endianness=(int){ 1234, 4321 },
>> signed=(boolean){ true, false }, width=(int)16, depth=(int)16,
>> rate=(int)[ 1, 2147483647 ], channels=(int)2; audio/x-raw-int,
>> signed=(boolean){ true, false }, width=(int)8, depth=(int)8,
>> rate=(int)[ 1, 2147483647 ], channels=(int)2
>> 0:00:00.762415000 21063 0x8062890 DEBUG alsa
>> gstalsasink.c:391:gst_alsasink_getcaps:<alsasink0> Returning cached
>> caps audio/x-raw-int, endianness=(int){ 1234, 4321 },
>> signed=(boolean){ true, false }, width=(int)16, depth=(int)16,
>> rate=(int)[ 1, 2147483647 ], channels=(int)2; audio/x-raw-int,
>> signed=(boolean){ true, false }, width=(int)8, depth=(int)8,
>> rate=(int)[ 1, 2147483647 ], channels=(int)2
>> 0:00:00.763006000 21063 0x8062890 DEBUG alsa
>> gstalsasink.c:481:set_hwparams:<alsasink0> Negotiating to 2
>> channels @ 44100 Hz
>> 0:00:00.763156000 21063 0x8062890 WARN alsa
>> gstalsasink.c:570:set_hwparams:<alsasink0> error: Rate doesn't
>> match (requested 44100Hz, get 0Hz)
>> ERROR: pipeline doesn't want to preroll.
>> Setting pipeline to NULL ...
>> 0:00:00.764056000 21063 0x8062890 WARN alsa
>> gstalsasink.c:788:gst_alsasink_prepare:<alsasink0> error: Setting
>> of hwparams failed: Invalid argument
>> FREEING pipeline ...
>>
>>
More information about the gstreamer-devel
mailing list