<div dir="ltr"><div><div>1. Is it possible that your video file is padding the 4 byte?<br></div>2. What do the caps say about the RGB format?<br></div>3. Is there a stride setting on the component that generated the file? (What was used to generate the file?)<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 1:11 AM, Dinesh Iyer <span dir="ltr"><<a href="mailto:dsi.maillist@gmail.com" target="_blank">dsi.maillist@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I have an application that uses Gstreamer (currently using 0.10.36) to read video files. I am using playbin2 and an appsink for the video-sink. I am reading all the video as RGB using the following caps:</div>

<div><br></div><div><div>GstCaps* caps = gst_caps_from_string( "video/x-raw-rgb, "</div><div>                                            /*"bpp = (int) 24, "</div><div>                                            "depth = (int) 24, "</div>

<div>                                            "endianness = (int) BIG_ENDIAN, "</div><div>                                            "red_mask = (int) 16711680, "</div><div>                                            "green_mask = (int) 65280, "</div>

<div>                                            "blue_mask = (int) 255"*/ );</div></div><div><br></div><div>I have commented out everything except the mime-type as otherwise the pipeline does even connect.</div>

<div><br></div><div>When I read a buffer using gst_app_sink_pull_buffer, I received a buffer whose size in bytes is half the total expected. For a 640*480 8-bit RGB video frame, the size in bytes of the GstBuffer is (640*480*3/2). However, when I inspect the caps associated with the buffer, the height and width are 480 and 640 respectively. Am I missing something?</div>

<div><br></div><div>I am unable to upgrade to Gstreamer 1.0 due to a company wide policy.</div><div><br></div><div>Regards,</div><div>Dinesh</div></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>