Problem with push NV21 data into appsrc
Sebastian Dröge
sebastian at centricular.com
Fri Jan 10 02:34:46 PST 2014
On Do, 2014-01-09 at 17:54 -0800, Ugly Face wrote:
> I configure the appsrc like this:
> data->appsrc= gst_element_factory_make("appsrc", "appsrc");
> g_assert(data->appsrc);
> g_object_set(data->appsrc, "is-live", TRUE, "block", FALSE, NULL);
> //caps = gst_caps_from_string(CAPS);
> caps = gst_caps_new_simple ("video/x-raw-yuv",
> "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('N', 'V', '2', '1'),
> "framerate", GST_TYPE_FRACTION, 15, 1,
> "width", G_TYPE_INT, 128,
> "height", G_TYPE_INT, 96,
> NULL);
> g_object_set(data->appsrc, "caps", caps, NULL);
Try adding:
g_object_set(data->appsrc, "format", GST_FORMAT_TIME, NULL);
--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- 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: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140110/2e25797e/attachment-0001.pgp>
More information about the gstreamer-devel
mailing list