GstV4l2Src:v4l2src0: Failed to allocate a buffer

sazzad1009 sazzad1009 at
Wed Jun 25 17:20:37 PDT 2014

I have successfully compiled gstreamer1.0 from git source today (gstreamer,
base, good, bad, ugly, libav) in Ubuntu 12.. However, gst-launch-1.0 fails
with v4l2src saying failed to allocate buffer. On the other hand,
gst-launc-0.1 (came with Ubuntu release) runs fine and does not fail with
such error. 

Does anyone have any idea what went wrong?



#gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw, width=640,
height=480, framerate=15/1' ! queue ! videoconvert ! x264enc ! rtph264pay
pt=96 ! udpsink host= port=5000
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
0:00:04.152979362 30179       0x8a5770 ERROR          v4l2allocator
failed dequeuing a mmap buffer: Invalid argument
0:00:04.153024426 30179       0x8a5770 ERROR          v4l2allocator
The buffer type is not supported, or the index is out of bounds, or no
buffers have been allocated yet, or the userptr or length are invalid.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to
allocate a buffer
Additional debug info:
gstv4l2src.c(736): gst_v4l2src_create ():
Execution ended after 0:00:04.073653279
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
/dev/video0 is a USB webcam, vlc can open it either with v4l2.

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list