[gst-devel] issue with appsrc and audioresample

na nahmed31 at hotmail.com
Mon Mar 1 07:05:54 CET 2010


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.




More information about the gstreamer-devel mailing list