Problem with push NV21 data into appsrc

Ugly Face xuchangxue365812 at 126.com
Thu Jan 9 17:54:01 PST 2014


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);



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problem-with-push-NV21-data-into-appsrc-tp4664572p4664580.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list