[Bug 747270] avfvideosrc: BUFFER_QUEUE_SIZE too small

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Apr 2 15:06:22 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747270

--- Comment #4 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> ---
(In reply to Ilya Konstantinov from comment #3)
> avfvideosrc is obviously pushing buffers downstream -- it's a video capture
> source (e.g. from the iPhone camera).
> 
> What do you mean by negotiating? Isn't it a private implementation detail of
> this element? The existence of the AV capture thread is an AVFoundation
> implementation detail.

I'm asking since many stack have limitation and simply copy the data and push.
When you push your own data downstream and have a fixed amount of buffer, it is
important to provide at least the minimum amount of buffers for the pipeline to
work. This value can be obtained through the allocation query.

For sources, this is done by implement the virtual method decide_allocation().
This method isn't trivial to implement though. You can refer to v4l2src for
inspiration. Ideally you should wrap this up in a BufferPool, (and maybe
Allocator) if you want to properly track the memory.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list