<div dir="ltr">I haven't tried this, but I thought the blocksize parameter to the appsink element controlled whether the appsink negotiated for a given buffer size, and if non-zero was the size that it negotiated for.<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 6:11 AM, George Demetriades <span dir="ltr"><<a href="mailto:gdemetriades@friendmts.co.uk" target="_blank">gdemetriades@friendmts.co.uk</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"><div>I'm writing a C++ program which involves passing a whole uncompressed video frame from my gstreamer pipeline through to my own application for processing, but I'm not able to make the pulled buffer the correct size. The I420 frame I want to pull is at 480 x 360, with 8 bits per pixel: including the chroma segment of the frame, this should be 259,200 bytes. Instead, GST_BUFFER_SIZE shows the pulled frame to only be 26,496 bytes large - obviously far too small.<br>

<br></div><div>Would anyone be able to tell me how to fix the size of the buffer coming from my pipeline into the appsink? Is that even a parameter that the developer can control, or is it an internally-decided size? <br>

<br></div><div>For reference, I'm running h264-encoded video from a udpsrc, through flutsdemux (to strip out the audio), through a fluh264dec (to decode the video into raw frames) and then into my appsink.<br><br></div>

<div>Any help or guidance would be greatly appreciated, I've been struggling with this for a few days now.<br></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><br clear="all"><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div>