[libdc1394-devel] VIDEO1394_IOC_LISTEN_CHANNEL ioctl failed! and Bad images
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Martin P. <mar...@it...> - 2007-01-03 18:00:48
|
Hello, my name is Martin. I am working with 3 BCi4 6600 cameras, those cameras are able to work with a resolution of 2208x3000 pixels. I made a capture program available at http://www.geocities.com/cosmoperis/camera/main.c When I set NUM_BUFFERS (number of DMA buffers) to a value greater than 5 the program dies like this: (dc1394_capture.c) VIDEO1394_IOC_LISTEN_CHANNEL ioctl failed! Libdc1394 error (dc1394_capture.c:dc1394_capture_setup_dma:382): Capture is not set : Could not setup DMA capture And dmesg says: [17723533.496000] video1394_0: Iso receive DMA: 8 buffers of size 6627328 allocated for a frame size 6624000, each with 1619 prgs [17723533.516000] video1394_0: iso context 0 listen on channel 1 [17723533.712000] ieee1394: Node [1-01:1023] wants to release broadcast channel 31. Ignoring. [17723534.448000] video1394_1: mask: 0000000000000004 usage: 0000000000000000 [17723534.448000] [17723534.508000] video1394_1: Iso receive DMA: 8 buffers of size 6627328 allocated for a frame size 6624000, each with 1619 prgs [17723534.532000] video1394_1: iso context 0 listen on channel 2 [17723534.728000] ieee1394: Node [2-01:1023] wants to release broadcast channel 31. Ignoring. [17723535.464000] video1394_2: mask: 0000000000000008 usage: 0000000000000000 [17723535.464000] [17723535.464000] printk: 11 messages suppressed. [17723535.464000] allocation failed: out of vmalloc space - use vmalloc=<size> to increase size. [17723535.464000] dma_region_alloc: vmalloc_32() failed [17723535.464000] video1394_2: Failed to allocate dma buffer [17723535.464000] video1394_2: Couldn't allocate ir context [17723535.668000] video1394_0: On release: Iso receive context 0 stop listening on channel 1 [17723535.676000] video1394_1: On release: Iso receive context 0 stop listening on channel 2 In another computer with the same kernel Linux 2.6.15-27-686 #1 SMP PREEMPT Sat Sep 16 02:13:27 UTC 2006 i686 GNU/Linux I can set NUM_BUFFERS to a greater value without problems. I supose it is a matter of configuration, if I allocate memory for 6 dma_buffers * 3 cameras * 6,6Mpixels = 120 Mbytes of memory, may be it is the limit configured on this machine?? I don't know, any idea?? When I set NUM_BUFFERS to 5 the thing works, but some times I get the new images with some kind of weird offset to the right respect the preceding image. To ilustrate this anyone can download a tgz file with some images captured with the camera when the the thing goes wrong here http://www.megaupload.com/?d=69X8TE36 Any clues? Thank you very much! And Happy New Year to everybody! |