How to set "format" in caps
Josh Doe
josh at joshdoe.com
Sat May 11 03:43:12 PDT 2013
On Saturday, May 11, 2013, Baby Octopus wrote:
> Hi,
>
> I want to know how to set "format" in video caps.
>
> caps = gst_caps_new_simple ("video/x-raw-yuv",
> "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC (’I’, ’4’, ’2’, ’0’),
> "width", G_TYPE_INT, 384,
> "height", G_TYPE_INT, 288,
> "framerate", GST_TYPE_FRACTION, 25, 1,
> NULL);
>
> The above which is present in gstreamer manual doesn't work for 1.0 since
> GST_TYPE_FOURCC is missing in gstvalue.h header file
>
> In 1.0 you use video/x-raw and format I420 as a string. Use last part of
this enum for format:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat
Many more details about porting here:
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-porting-1.0.html
-josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130511/70ebf959/attachment-0001.html>
More information about the gstreamer-devel
mailing list