And when I start up v4l2_ingest, I get:
"queue v4l2 buffer: Cannot allocate memory".
I poked around at it a bit with gdb, but nothing obvious popped out at
me. Command line:
"v4l2_ingest /dev/video1 /root/openreplay.buffer"
/root/openreplay.buffer is a 1G file created as specified in the
README. I also tried this on a 512M buffer with similar results.
Any ideas what might be causing this?
Hardware:
Dell Optiplex GX620
Pentium 4 HT 3.2 GHz processor
2 GB RAM
1 TB HDD
--
Kit Peters (W0KEH), Engineer II
KMOS TV Channel 6 / KTBG 90.9 FM
University of Central Missouri
http://kmos.org/ | http://ktbg.fm/
queue v4l2 buffer: Cannot allocate memory
Thoughts?
On Mon, Jan 9, 2012 at 7:22 PM, Andrew Armenia <and...@asquaredlabs.com> wrote:
> My card didn't have an EEPROM and I had to edit the configuration. Check
> your 'dmesg' output for whining from the driver. I think I put something
> like 'options saa7134 card=33,33,33,33' in /etc/modprobe.d/saa7134_card (a
> new file I created) and that got it working.
Note also that when I added code to tell me how many buffers
v4l2_ingest tried to allocate before it failed, it failed on buffer 0.
KP
On Wed, Jan 11, 2012 at 9:47 AM, Andrew Armenia <and...@asquaredlabs.com> wrote:
> If you haven't already, check the tail end of 'dmesg' output for clues after
> it fails... if it's something going wrong in the driver, it'll show up
> there.
--
So why is IO_METHOD_USERPTR failing? I'll post a question to
linux-media as well.
KP
[quote]
On Wed, Jan 11, 2012 at 11:28 AM, Christopher Peters <cpe...@ucmo.edu> 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.
[/quote]
KP
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to open data file
I tracked that down to line 261 of v4l2_ingest.cpp ("untested"
branch): "MmapState clock_ipc("clock_ipc");". Should I be
initializing MmapState with the data file, or do I need to create a
"clock_ipc" file? If the latter, what does that file need to look
like?