gstreamer-1.0 appsrc sample example

Sebastian Dröge sebastian at centricular.com
Wed May 11 08:23:47 UTC 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160511/34d23482/attachment.sig>


More information about the gstreamer-devel mailing list