<div dir="ltr"><div><div><div>Hi Sebastian,<br></div>Thanks a lot for your help.<br></div>Basically I would like to stream a mpeg4 encoded data over udp. <br></div>If i execute a pipline on the command prompt like :<div><br></div><div><div>gst-launch-1.0 -e videotestsrc ! "video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, framerate=(fraction)30/1" ! vpe num-input-buffers=8 ! queue ! ducatimpeg4enc bitrate=4000 ! queue ! mpeg4videoparse ! rtpmp4vpay config-interval= 10 pt=96 ! udpsink host=192.168.43.2 port=5000<br></div><div><br></div><div>and Play the same in Vlc player on 192.168.43.2 by "vlc test.sdp "</div><div>then it works fine.</div><div><br></div><div>Contents of test.sdp:</div><div><br></div><div>v=0</div><div>m=video 5000 RTP/AVP 96</div><div>c=IN IP4 192.168.43.2</div><div>a=rtpmap:96 MP4V-ES/90000</div><div><br></div><div>I would like to do similar kind of test using appsrc where instead of using videotestsrc like to stream our own data.</div><div>So for that we are filling the gstbuffer.I have tried both with and without mpeg4videoparse but the result is same.<br>cb_need_data function is not getting called for not even once.<br></div><div><br></div><div>Since i am new to gstreamer can you please help me in figuring out the issue.<br></div><div>I am attaching the modified code.<br><br></div><div>Regards,<br></div><div>Biswajit<br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 12:06 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Fr, 2016-05-06 at 18:59 +0530, Biswajit Panigrahi wrote:<br>
> Hi ,<br>
> I am trying to test the streaming of mpeg4 encoded over udp.<br>
> Is there any appsrc pipline sample code is available which can solve<br>
> my problem.<br>
> I have searched in internet but i didn't get any working test code.<br>
> I have attached a code which i am reffering .But couldn't figure out<br>
> why its not working.<br>
<br>
</span>What is your appsrc producing? Raw video or something else?<br>
<br>
I assume raw video, in which case there are various bugs in your<br>
pipeline (I didn't look at the surrounding code).<br>
<br>
1) There is no ffmpegcolorspace element in 1.x, use videoconvert<br>
2) Don't put a capsfilter after appsrc but instead set the caps<br>
property on appsrc accordingly<br>
3) Don't put mpeg4videoparse after the appsrc. It can't parse raw<br>
video but is for parsing MPEG-4 Part 2 encoded video.<br>
<br>
Apart from that there might be more problems of course, but that's what<br>
I saw for now. Also try using an alternative h264 encoder (x264enc) if<br>
this still doesn't work, no idea how well the ducati elements are<br>
working these days and how well their error reporting is.<br>
<br>
<br>
In general, for your pipeline you should've seen gst_parse_launch()<br>
returning NULL. If you had used the GError parameter you would also get<br>
a more meaningful error, or if you set GST_DEBUG=3 in the environment<br>
you should also already get a few hints.<br>
<span><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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></div></div>