[gst-devel] issue with appsrc and audioresample

Tiago Katcipis katcipis at inf.ufsc.br
Mon Mar 1 13:08:45 CET 2010


Try to set the property "caps" on the appsrc instead of using a capsfilter.
But setting full caps is still a need, maybe to work properly appsrc need to
have the caps property defined, i never used appsrc, only appsink, and using
only capsfilters usually worked when i needed then, but i remember that some
problems with udpsrc where solved when i defined the "caps" property.

best regards,
Katcipis

On Mon, Mar 1, 2010 at 3:05 AM, na <nahmed31 at hotmail.com> wrote:

>
> Hello Katcipis,
>
> Thanks for your kind reply.
>
> I changed the caps on the appsrc buffer and caps filter to:
>
>  GstCaps *rescaps;
>  rescaps = gst_caps_new_simple("audio/x-raw-int", "rate", G_TYPE_INT,
> 48000, "channels" ,G_TYPE_INT, (gint)1, "endianness",G_TYPE_INT,(gint)1234,
> "width", G_TYPE_INT, (gint)8, "depth", G_TYPE_INT, (gint)8, "signed",
> G_TYPE_BOOLEAN, TRUE, NULL);
>   g_object_set(capsfilt_res,"caps",rescaps,NULL);
>
>   GstCaps *caps;
>  caps = gst_caps_new_simple("audio/x-raw-int", "rate", G_TYPE_INT, 8000,
> "channels" ,G_TYPE_INT, (gint)1, "endianness",G_TYPE_INT,(gint)1234,
> "width", G_TYPE_INT, (gint)8, "depth", G_TYPE_INT, (gint)8, "signed",
> G_TYPE_BOOLEAN, TRUE, NULL);
>  gst_buffer_set_caps(app_buffer_src,caps);
>
> However, the result is the same "not negotiated" error.  I have attached
> the
> relevant debug output. If you do have any other ideas, please do let me
> know.  Thanks
>
> Best regards,
>
> Nadeem
>
> 0:00:00.219005295  3697  0x884d008 INFO               GST_EVENT
> gstevent.c:597:gst_event_new_new_segment_full: creating newsegment update
> 0,
> rate 1.000000, format bytes, start 0, stop -1, position 0
> 0:00:00.220594821  3697  0x884d008 INFO              GST_STATES
> gstelement.c:2238:gst_element_continue_state:<appsrc> completed state
> change
> to PAUSED
> 0:00:00.220625877  3697  0x884d008 INFO              GST_STATES
> gstelement.c:2251:gst_element_continue_state:<appsrc> posting state-changed
> READY to PAUSED
> 0:00:00.220644133  3697  0x884d008 INFO              GST_STATES
> gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'appsrc' changed
> state to 3(PAUSED) successfully
> 0:00:00.220765315  3697  0x8956458 WARN           basetransform
> gstbasetransform.c:1969:gst_base_transform_handle_buffer:<audiores> error:
> not negotiated
> 0:00:00.220820395  3697  0x8956458 WARN           basetransform
> gstbasetransform.c:1969:gst_base_transform_handle_buffer:<audiores> error:
> not negotiated
> 0:00:00.220877203  3697  0x8956458 INFO        GST_ERROR_SYSTEM
> gstelement.c:1763:gst_element_message_full:<audiores> posting message: not
> negotiated
> 0:00:00.220930220  3697  0x8956458 INFO        GST_ERROR_SYSTEM
> gstelement.c:1786:gst_element_message_full:<audiores> posted error message:
> not negotiated
> 0:00:00.220960984  3697  0x8956458 INFO                 basesrc
> gstbasesrc.c:2326:gst_base_src_loop:<appsrc> pausing after gst_pad_push() =
> not-negotiated
> 0:00:00.221001947  3697  0x8956458 WARN                 basesrc
> gstbasesrc.c:2378:gst_base_src_loop:<appsrc> error: Internal data flow
> error.
> 0:00:00.221025676  3697  0x8956458 WARN                 basesrc
> gstbasesrc.c:2378:gst_base_src_loop:<appsrc> error: streaming task paused,
> reason not-negotiated (-4)
> 0:00:00.221057825  3697  0x8956458 INFO        GST_ERROR_SYSTEM
> gstelement.c:1763:gst_element_message_full:<appsrc> posting message:
> Internal data flow error.
> 0:00:00.221090188  3697  0x8956458 INFO        GST_ERROR_SYSTEM
> gstelement.c:1786:gst_element_message_full:<appsrc> posted error message:
> Internal data flow error.
> 0:00:00.221205570  3697  0x8956458 INFO              GST_STATES
> gstbin.c:2815:bin_handle_async_done:<pipeline0> committing state from READY
> to PAUSED, old pending PLAYING
> 0:00:00.221236480  3697  0x8956458 INFO              GST_STATES
> gstbin.c:2844:bin_handle_async_done:<pipeline0> continue state change,
> pending PLAYING
>
> --
> View this message in context:
> http://n4.nabble.com/issue-with-appsrc-and-audioresample-tp1572395p1573184.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100301/c097dcae/attachment.htm>


More information about the gstreamer-devel mailing list