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