gstreamer-1.0 appsrc sample example

Biswajit Panigrahi biswajit.p at mistralsolutions.com
Wed May 11 09:33:11 UTC 2016


Hi Sebastian,
Thank a lot for debugging .

Now both fakesink as well as filesink location=testSRC1.mpeg in appsrc
works fine.
But while streaming over udp ,its getting failed.

app->pipeline = gst_parse_launch("appsrc name=mysource ! videoconvert ! vpe
num-input-buffers=8 !  ducatimpeg4enc bitrate=4000 ! queue ! rtpmp4vpay
config-interval= 10 pt=96 ! udpsink host=192.227.1.20 port=5000 ", NULL);

I am getting continuous message like :
(GST_Final:1639): GStreamer-CRITICAL **: gst_segment_to_running_time:
assertion 'segment->format == format' failed

Any idea what could be the root couse for this.
I have attached the complete code also in  this mail.

Regards,
Biswajit



On Wed, May 11, 2016 at 1:53 PM, Sebastian Dröge <sebastian at centricular.com>
wrote:

> On Mi, 2016-05-11 at 13:31 +0530, Biswajit Panigrahi wrote:
> > Hi Sebastian,
> > Thanks for figuring out the issue.
> > I have modified the code completely.As of now instead of streaming
> > over udp i am testing it with fakesink.
> > Now the Start Feed and Stop Feed Function get called once.
> > [...]
> > ERROR from element mysource: Internal data flow error.
> > Debugging info: gstbasesrc.c(2865): gst_base_src_loop ():
> > /GstPipeline:pipeline0/GstAppSrc:mysource:
> > streaming task paused, reason not-negotiated (-4)
> >
> >
> >
> > Currently appsrc looks like:
> >
> > gst_parse_launch("appsrc name=mysource ! vpe num-input-buffers=8 !
> > ducatimpeg4enc bitrate=4000 ! fakesink dump=1 ", NULL);
> >
> >  caps = gst_caps_new_simple ("video/x-raw",
> >             "format",G_TYPE_STRING,"RGB",
> >             "bpp",G_TYPE_INT,24,
> >              "depth",G_TYPE_INT,24,
> >             "width", G_TYPE_INT, 640,
> >             "height", G_TYPE_INT, 480,
> >             "framerate", GST_TYPE_FRACTION, 30, 1,
> >              NULL);
>
> vpe probably does not accept RGB input. Put a videoconvert after your
> appsrc as mentioned in my previous mail (instead of the
> ffmpegcolorspace you had there before and which does not exist).
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160511/e033d051/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GST_Final.c
Type: text/x-csrc
Size: 5181 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160511/e033d051/attachment.c>


More information about the gstreamer-devel mailing list