Not able connect to alsa sink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Not able connect to alsa sink

vijayp
Hi,
I am writing a decoder plugin for mp3 decoder, when i am try to connect to alsasink,i am getting error as,

ERROR: from element /GstPipeline:pipeline0/GstAlsa
Sink:alsasink0: The stream is in the wrong format.
Additional debug info:
gstbaseaudiosink.c(929): gst_base_audio_sink_preroll (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
sink not negotiated.
ERROR: pipeline doesn't want to preroll.

I have set the capabilities as,

static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
  GST_PAD_SRC,
  GST_PAD_ALWAYS,
  GST_STATIC_CAPS ( "audio/x-raw-int, "
  "rate = (int) [ 1, MAX ], "
  "channels = (int) [ 1, MAX ], "
  "endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
  "width = (int) 16, "
  "depth = (int) [ 1, 16 ], "
  "signed = (boolean) { true, false }")
  );

Regards,
Vijay P

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Not able connect to alsa sink

Stefan Sauer
On 07/25/11 17:32, vijay wrote:

> Hi,
> I am writing a decoder plugin for mp3 decoder, when i am try to
> connect to alsasink,i am getting error as,
>
> ERROR: from element /GstPipeline:pipeline0/GstAlsa
> Sink:alsasink0: The stream is in the wrong format.
> Additional debug info:
> gstbaseaudiosink.c(929): gst_base_audio_sink_preroll ():
> /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
> sink not negotiated.
> ERROR: pipeline doesn't want to preroll.

That is not enough context. Either post some code snippets, or e.g. add
a GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS to the bus error message handler
(check gst-launch source code for how to) and run your app with
GST_DEBUG_DUMP_DOT_DIR=$PWD ./myapp to check the caps on both sides of
the link where it fails.

Stefan

>
> I have set the capabilities as,
>
> static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
>   GST_PAD_SRC,
>   GST_PAD_ALWAYS,
>   GST_STATIC_CAPS ( "audio/x-raw-int, "
>   "rate = (int) [ 1, MAX ], "
>   "channels = (int) [ 1, MAX ], "
>   "endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
>   "width = (int) 16, "
>   "depth = (int) [ 1, 16 ], "
>   "signed = (boolean) { true, false }")
>   );
>
> Regards,
> Vijay P
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel