<div dir="ltr"><div><div><div>Hi Tim, thanks for your quick response.<br><br></div>I'm not actually using the appsrc element; instead, I'm using a udpsrc which is then decoded. The idea is to pull whole raw frames out of the gstreamer pipeline via the appsink element which I then process myself. The problem is that setting the blocksize element doesn't affect the size of the buffer I receive in my callback function used when when the "new-buffer" signal is emitted.<br>
<br></div>I'm not sure how to control the size of the buffer passed through to the appsink though, and that is where the problem lies.<br><br></div>Thanks,<br>George<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 7 June 2013 11:25, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 2013-06-07 at 11:12 +0100, George Demetriades wrote:<br>
<br>
Hi,<br>
<div><div class="h5"><br>
> I'm trying to control the size of the buffer passed to my program by<br>
> the appsink element, and someone on this mailing list helpfully<br>
> recommended that I look at the "blocksize" property. I've tried to<br>
> change it, but GST_BUFFER_SIZE still reports the same value as before,<br>
> and not the one set by my code.<br>
><br>
><br>
> Would anyone be able to tell me how to change the writeable flag for<br>
> the blocksize property? I haven't been able to find any documentation<br>
> on how to set individual flags, and I'm a bit stuck otherwise.<br>
<br>
</div></div>The "blocksize" property is only a hint, for sources that have a choice.<br>
<br>
In the case of appsrc you will push buffers into the pipeline, and<br>
appsrc will push them in as you pass them to appsrc. The blocksize<br>
property will be ignored by appsrc.<br>
<br>
If you want to chunk things yourself before pushing them into appsrc you<br>
might find GstAdapter useful.<br>
<br>
Cheers<br>
 -Tim<br>
<br>
<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>
</blockquote></div><br></div>