On Saturday, May 11, 2013, Baby Octopus  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I want to know how to set "format" in video caps.<br>
<br>
caps = gst_caps_new_simple ("video/x-raw-yuv",<br>
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC (’I’, ’4’, ’2’, ’0’),<br>
"width", G_TYPE_INT, 384,<br>
"height", G_TYPE_INT, 288,<br>
"framerate", GST_TYPE_FRACTION, 25, 1,<br>
NULL);<br>
<br>
The above which is present in gstreamer manual doesn't work for 1.0 since<br>
GST_TYPE_FOURCC is missing in gstvalue.h header file<br><br>
</blockquote><div>In 1.0 you use video/x-raw and format I420 as a string. Use last part of this enum for format:</div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat</a></div>
<div><br></div><div>Many more details about porting <span></span>here:</div><div><a href="http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt">http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt</a><br>
</div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-porting-1.0.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-porting-1.0.html</a><br></div>
<div><br></div><div>-josh </div>