<div dir="ltr"><div><div><div><div><div><div><div>Hi Sebastian,<br></div>Thanks for figuring out the issue.<br></div>I have modified the code completely.As of now instead of streaming over udp i am testing it with fakesink.<br></div>Now the Start Feed and Stop Feed Function get called once.<br></div><div><br>The Error Log:<br><br>**************************************start feeding******************************************8<br>inside read_data<br>inside read_data<br>inside read_data<br>*********************stop feeding*********************<br>ERROR from element mysource: Internal data flow error.<br>Debugging info: gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstAppSrc:mysource:<br>streaming task paused, reason not-negotiated (-4)<br><br></div><div><br><br>Currently appsrc looks like:<br><br>gst_parse_launch("appsrc name=mysource ! vpe num-input-buffers=8 ! ducatimpeg4enc bitrate=4000 ! fakesink dump=1 ", NULL);<br><br> caps = gst_caps_new_simple ("video/x-raw",<br> "format",G_TYPE_STRING,"RGB",<br> "bpp",G_TYPE_INT,24,<br> "depth",G_TYPE_INT,24,<br> "width", G_TYPE_INT, 640,<br> "height", G_TYPE_INT, 480,<br> "framerate", GST_TYPE_FRACTION, 30, 1,<br> NULL);<br> <br> gst_app_src_set_caps(GST_APP_SRC(app->appsrc), caps);<br><br></div>Can you please check what could be the issue.I have attached the complete code .Please review it and figure out the root couse.<br></div><br></div>Regards,<br></div>Biswajit<br><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 11, 2016 at 11:17 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Di, 2016-05-10 at 14:17 +0530, Biswajit Panigrahi wrote:<br>
> Hi Sebastian,<br>
> Thanks a lot for your help.<br>
> Basically I would like to stream a mpeg4 encoded data over udp. <br>
> If i execute a pipline on the command prompt like :<br>
><br>
> gst-launch-1.0 -e videotestsrc ! "video/x-raw, format=(string)YUY2,<br>
> width=(int)640, height=(int)480, framerate=(fraction)30/1" ! vpe num-<br>
> input-buffers=8 ! queue ! ducatimpeg4enc bitrate=4000 ! queue !<br>
> mpeg4videoparse ! rtpmp4vpay config-interval= 10 pt=96 ! udpsink<br>
> host=192.168.43.2 port=5000<br>
><br>
> and Play the same in Vlc player on 192.168.43.2 by "vlc test.sdp "<br>
> then it works fine.<br>
><br>
> Contents of test.sdp:<br>
><br>
> v=0<br>
> m=video 5000 RTP/AVP 96<br>
> c=IN IP4 192.168.43.2<br>
> a=rtpmap:96 MP4V-ES/90000<br>
><br>
> I would like to do similar kind of test using appsrc where instead of<br>
> using videotestsrc like to stream our own data.<br>
> So for that we are filling the gstbuffer.I have tried both with and<br>
> without mpeg4videoparse but the result is same.<br>
> cb_need_data function is not getting called for not even once.<br>
><br>
> Since i am new to gstreamer can you please help me in figuring out<br>
> the issue.<br>
> I am attaching the modified code.<br>
<br>
</div></div>Your pipeline still has the 3 problems from the previous mail. Fix<br>
those first and then report what exactly is happening again.<br>
<br>
Without fixing those your pipeline will never go to PAUSED or PLAYING<br>
and the callback will never be called. Even more, you should get<br>
various assertions at runtime.<br>
<br>
Also I looked another time now and there's two more problems:<br>
4) You're creating and assigning pipeline twice, the first one is<br>
just overwritten and not useful, you can remove it.<br>
Same goes for the appsrc.<br>
5) On the appsrc you have to set emit-signals to TRUE, otherwise<br>
the signals are never emitted but only the callbacks.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>