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.<br>
<br>best regards,<br>Katcipis<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 3:05 AM, na <span dir="ltr"><<a href="mailto:nahmed31@hotmail.com">nahmed31@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello Katcipis,<br>
<br>
Thanks for your kind reply.<br>
<br>
I changed the caps on the appsrc buffer and caps filter to:<br>
<div class="im"><br>
GstCaps *rescaps;<br>
rescaps = gst_caps_new_simple("audio/x-raw-int", "rate", G_TYPE_INT,<br>
</div>48000, "channels" ,G_TYPE_INT, (gint)1, "endianness",G_TYPE_INT,(gint)1234,<br>
"width", G_TYPE_INT, (gint)8, "depth", G_TYPE_INT, (gint)8, "signed",<br>
G_TYPE_BOOLEAN, TRUE, NULL);<br>
<div class="im"> g_object_set(capsfilt_res,"caps",rescaps,NULL);<br>
<br>
</div> GstCaps *caps;<br>
caps = gst_caps_new_simple("audio/x-raw-int", "rate", G_TYPE_INT, 8000,<br>
"channels" ,G_TYPE_INT, (gint)1, "endianness",G_TYPE_INT,(gint)1234,<br>
"width", G_TYPE_INT, (gint)8, "depth", G_TYPE_INT, (gint)8, "signed",<br>
G_TYPE_BOOLEAN, TRUE, NULL);<br>
gst_buffer_set_caps(app_buffer_src,caps);<br>
<br>
However, the result is the same "not negotiated" error. I have attached the<br>
relevant debug output. If you do have any other ideas, please do let me<br>
know. Thanks<br>
<br>
Best regards,<br>
<br>
Nadeem<br>
<br>
0:00:00.219005295 3697 0x884d008 INFO GST_EVENT<br>
gstevent.c:597:gst_event_new_new_segment_full: creating newsegment update 0,<br>
rate 1.000000, format bytes, start 0, stop -1, position 0<br>
0:00:00.220594821 3697 0x884d008 INFO GST_STATES<br>
gstelement.c:2238:gst_element_continue_state:<appsrc> completed state change<br>
to PAUSED<br>
0:00:00.220625877 3697 0x884d008 INFO GST_STATES<br>
gstelement.c:2251:gst_element_continue_state:<appsrc> posting state-changed<br>
READY to PAUSED<br>
0:00:00.220644133 3697 0x884d008 INFO GST_STATES<br>
gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'appsrc' changed<br>
state to 3(PAUSED) successfully<br>
0:00:00.220765315 3697 0x8956458 WARN basetransform<br>
<div class="im">gstbasetransform.c:1969:gst_base_transform_handle_buffer:<audiores> error:<br>
not negotiated<br>
</div>0:00:00.220820395 3697 0x8956458 WARN basetransform<br>
<div class="im">gstbasetransform.c:1969:gst_base_transform_handle_buffer:<audiores> error:<br>
not negotiated<br>
</div>0:00:00.220877203 3697 0x8956458 INFO GST_ERROR_SYSTEM<br>
gstelement.c:1763:gst_element_message_full:<audiores> posting message: not<br>
negotiated<br>
0:00:00.220930220 3697 0x8956458 INFO GST_ERROR_SYSTEM<br>
gstelement.c:1786:gst_element_message_full:<audiores> posted error message:<br>
not negotiated<br>
0:00:00.220960984 3697 0x8956458 INFO basesrc<br>
gstbasesrc.c:2326:gst_base_src_loop:<appsrc> pausing after gst_pad_push() =<br>
not-negotiated<br>
0:00:00.221001947 3697 0x8956458 WARN basesrc<br>
<div class="im">gstbasesrc.c:2378:gst_base_src_loop:<appsrc> error: Internal data flow<br>
error.<br>
</div>0:00:00.221025676 3697 0x8956458 WARN basesrc<br>
<div class="im">gstbasesrc.c:2378:gst_base_src_loop:<appsrc> error: streaming task paused,<br>
reason not-negotiated (-4)<br>
</div>0:00:00.221057825 3697 0x8956458 INFO GST_ERROR_SYSTEM<br>
gstelement.c:1763:gst_element_message_full:<appsrc> posting message:<br>
Internal data flow error.<br>
0:00:00.221090188 3697 0x8956458 INFO GST_ERROR_SYSTEM<br>
gstelement.c:1786:gst_element_message_full:<appsrc> posted error message:<br>
Internal data flow error.<br>
0:00:00.221205570 3697 0x8956458 INFO GST_STATES<br>
gstbin.c:2815:bin_handle_async_done:<pipeline0> committing state from READY<br>
to PAUSED, old pending PLAYING<br>
0:00:00.221236480 3697 0x8956458 INFO GST_STATES<br>
gstbin.c:2844:bin_handle_async_done:<pipeline0> continue state change,<br>
pending PLAYING<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n4.nabble.com/issue-with-appsrc-and-audioresample-tp1572395p1573184.html" target="_blank">http://n4.nabble.com/issue-with-appsrc-and-audioresample-tp1572395p1573184.html</a><br>
</font><div><div></div><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Download IntelŽ Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>