On Wed, Jan 11, 2012 at 11:28 AM, Christopher Peters <cpeters@xxxxxxxx> wrote: > So as I said in my previous email, I got video out of my card. Now > I'm trying to capture video using a piece of software called > "openreplay". Its v4l2 capture code is based heavily on the capture > example at http://v4l2spec.bytesex.org/spec/capture-example.html, so I > thought I'd try compiling the example code to see what I got. > > When I ran the capture example with this command-line: " > ./capture_example -u" (to use application allocated buffers) I got: > > "VIDIOC_QBUF error 12, Cannot allocate memory" > > I'm running Mythbuntu 11.10, Ubuntu kernel 3.0.0-14-generic. All > CONFIG_*V4L* options are set to 'y' or 'm', and all modules matching > "v4l2-*" are loaded. > > What do I need to do to make application allocated buffers work? USERPTR buffers don't work with many drivers (for example, those that use videobuf-vmalloc). You should use the mmap method, which is supported by every card I can think of. Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html