Re: [libdc1394-devel] fedora7/juju problem with format 7?
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Patrick W. <pa...@wh...> - 2007-08-29 13:45:01
|
hello again everyone. I am asking back again with another question. I am very keen on getting libdc1394 working properly with Fedora 7 so I have spent another day screwing around with stuff to try and get it to work. Now the stability has regressed from before and I get internal errors often: All the time I get this non-exiting error twice after i run "dc1394_find_cameras(&cam, &num_cams)" *(control.c:dc1394_update_camera_info:270) Tagged Register not found: Problem inferring the IIDC version.* Then occasionally (every 3 or 4 tried i run it) when i run dc1394_capture_setup(...) i get this error: *(internal.c:_dc1394_capture_basic_setup:384) Invalid Video Format: Unable to get current video mode.* Then if the above does not fail then I keep going until I try to dequeue my first frame. The I am blocked there forever. I guess this is because I am not actually streaming and it is set on a WAIT policy. This happens with an iSight and a AVT Pike camera (the exact same problem) with video_mode of DC1394_VIDEO_MODE_640x480_YUV422 which both of them support. The exact same program works on Fedora 6 and Ubuntu.The firewire devices in /dev are fw0 and fw1. I set both of these with chmod 755 /dev/fw* . The libdc1394 was built as: * * *./configure --with-juju-dir=/usr/src/kernels/2.6.22.4-1x.x64/include* *make install* Is there anything I can do? Does anyone have libdc1394 (with format7) working properly in Fedora7 or a distro using juju/the new firewire stack from the new kernels. Thanks again, Patrick On 8/7/07, Patrick White <pa...@wh...> wrote: > > > > hi everyone. I have recently been playing with fedora 7 and juju to try > and iron out a bit of corruption that happens very occasionally when > stressing the computer fully (cpu and network wise). This is besides the > point however. > > > I installed Fedora 7, updated to the recently released 2.6.22.1-41.fc7kernel from the main repo. Then i configured and installed the svn head of > libdc1394 with: > > > ./configure --with-juju-dir=/usr/src/kernels/2.6.22.1- > 41.fc7-x86_64/include > make install > > > This makes well, including all the examples except the dc1394-multiview > app, the grab_color_image and such work properly and i get a usable image. > > > When i run my application to run my camera (a pike 210c) it works properly > if i use: > > > dc1394_video_set_mode(camera,DC1394_VIDEO_MODE_640x480_YUV411) > > > however when i use format 7 (which is what i need): > > > dc1394_format7_set_roi(camera, video_mode, color_code, byte_size, 0,0, > width, height); > > > it fails at the capture setup: > > > dc1394_capture_setup(camera, 4, DC1394_CAPTURE_FLAGS_DEFAULT); > > > and in the CL output, dc1394 gives me this error: > > > (format7.c) BYTES_PER_PACKET is zero. This should not happen. > Libdc1394 error (internal.c:_dc1394_capture_basic_setup:383): Generic > failure : Unable to get format 7 bytes per packet for mode 88 > > > > > > > > Is there anything i can do to make this work? or do i just have to give up > on format 7 OR juju for now? And is my whole process correct for juju > anyways? It seems to be, but maybe i missed something minor. > > > Thanks, > Patrick > |