[Bug 732288] v4l2src: Failed to allocate a buffer
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Jun 29 23:15:11 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=732288
GStreamer | gst-plugins-good | git
Songwater <songwater> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |songwater at aliyun.com
--- Comment #3 from Songwater <songwater at aliyun.com> 2014-06-30 06:15:07 UTC ---
With version 1.3.3 ,My x264enc works fine, but x265enc have the same problem.
When this happened , the x265 encoder would have many frames to input without
encoded result to output. So this error may be caused by v4l2src buffer
occupied by x265encoder. I found that only 2 buffers allocated by default in
v4l2src , if the encoder don't release the buffer , the v4l2src will has no
buffer to capture picture, the line in
/gst-plugins-good-1.3.3/sys/v4l2/gstv4l2allocator.c
if (v4l2_ioctl (allocator->video_fd, VIDIOC_DQBUF, &buffer) < 0)
goto error;
will report this error.
In gst-plugins-good-1.3.3/sys/v4l2/gstv4l2object.h, I change
GST_V4L2_MIN_BUFFERS from 2 to 32,my x265enc works fine with out that error,
but this change sounds so ugly . How to change the buffer numbers of the
v4l2src plug-in?
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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