<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Wed, 05 Jun 2013 11:15:57 +0100<br>
From: Tim-Philipp M?ller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>><br>
To: <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
Subject: Re: appsink buffer size control<br>
Message-ID: <1370427357.2998.4.camel@zingle><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Wed, 2013-06-05 at 11:11 +0100, George Demetriades wrote:<br>
> I'm writing a C++ program which involves passing a whole uncompressed<br>
> video frame from my gstreamer pipeline through to my own application<br>
> for processing, but I'm not able to make the pulled buffer the correct<br>
> size. The I420 frame I want to pull is at 480 x 360, with 8 bits per<br>
> pixel: including the chroma segment of the frame, this should be<br>
> 259,200 bytes. Instead, GST_BUFFER_SIZE shows the pulled frame to only<br>
> be 26,496 bytes large - obviously far too small.<br>
><br>
><br>
> Would anyone be able to tell me how to fix the size of the buffer<br>
> coming from my pipeline into the appsink? Is that even a parameter<br>
> that the developer can control, or is it an internally-decided size?<br>
><br>
><br>
> For reference, I'm running h264-encoded video from a udpsrc, through<br>
> flutsdemux (to strip out the audio), through a fluh264dec (to decode<br>
> the video into raw frames) and then into my appsink.<br>
><br>
><br>
> Any help or guidance would be greatly appreciated, I've been<br>
> struggling with this for a few days now.<br>
<br>
Did you print the GST_BUFFER_CAPS() on the buffer to see what the format<br>
is ?<br>
<br>
Cheers<br>
 -Tim<br>
<br></blockquote><div><br></div><div>I've just tried that, and it's a bit baffling: the caps are not what I've set, but they still do not correspond to the amount of memory taken up by the buffer.<br><br></div>
<div>George<br></div></div></div></div>