appsrc example not works with 1.0.10 on Linux ?

comicfans44 comicfans44 at gmail.com
Sun Sep 29 19:32:57 PDT 2013


Hello,
   I have tried  appsrc example code with lastest version 1.2 ,found that the example code has a little bug (or gstreamer behaver change? )
when specified appsrc caps:

code in document 

   g_object_set (G_OBJECT (appsrc), "caps",
    gst_caps_new_simple ("video/x-raw",
         "format", G_TYPE_STRING, "RGB16",
         "width", G_TYPE_INT, 384,
         "height", G_TYPE_INT, 288,
         "framerate", GST_TYPE_FRACTION, 0, 1,
         NULL), NULL);
could not run :basesrc ../../../../libs/gst/base/gstbasesrc.c:2865:gst_base_src_loop:<source> error: streaming task paused, reason not-negotiated (-4)

but with additional 
        "pixel-aspect-ratio" ,GST_TYPE_FRACTION, 1, 1,

everything works OK . I have not tried 1.0.10 back again to confirm the same reason but it seems to be.
isn't pixel-aspect-ratio default 1:1 ? or I suggest a little document fix, this really confused.

    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130930/84f3b4a6/attachment.html>


More information about the gstreamer-devel mailing list