Re: [libdc1394-devel] threads and dc1394
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Jon S. <jon...@ho...> - 2007-05-31 14:04:07
|
I don't specify a packet size. I'm using video mode DC1394_VIDEO_MODE_640x480_MONO8 and ISO speed 400. On Thu, 2007-05-31 at 15:55 +0200, Mikael Olenfalk wrote: > What packet size do you specify for your cameras? > > /Mikael > > On Thu, 2007-05-31 at 08:35 -0500, Jon Schewe wrote: > > On Thu, 2007-05-31 at 10:57 +0900, Damien Douxchamps wrote: > > > Hi Jon, > > > > > > On Wed, 2007-05-30 at 14:15 -0500, Jon Schewe wrote: > > > > I thought I saw something on this before, but couldn't find it in the > > > > archives. > > > > > > > > Has anyone successfully used multiple threads to read data from dc1394 > > > > cameras? My thought is to spawn a thread for each camera. I've tried > > > > doing all setup and enqueue/dequeue in a separate thread for each camera > > > > and it fails on setup with 2 cameras. It works ok with a single camera. > > > > > > I know that it works because I use that in coriander. IIRC the simple > > > precautions to take are: > > > > > > - detect the cameras in the main program > > > - setup capture in each thread > > > - enqueue/dequeue in each thread > > > - terminate capture in each thread > > > > > > Which version of libdc are you using? Can you show us a sample program > > > which produces the error? (BTW, which error?) > > > > The difference I have is that setup is done in the main thread and > > enqueue/dequeue/terminate are done in a different thread. I just tried > > changing it such that capture setup is done in the separate thread and > > that doesn't work either. Unplugging the second camera from the bus > > allows the program to work. > > > > I'm using the latest libdc from the source repository. The error I get > > is: > > Error: camera is already streaming, aborting ISO channel allocation... > > Perhaps it is in use by another application or a previous session was > > not cleaned up properly. > > Libdc1394 error (capture.c:dc1394_capture_setup:290): Generic failure : > > Could not allocate ISO channel! > > > > Unfortunately I don't have a short sample to send. > > > > > > ________________________________________________________________________ > > > > http://lug.htc.honeywell.com/people/jschewe [Honeywell Intranet Only] > > Help Jen and I fight cancer by donating to the Leukemia & Lymphomia > > Society > > Here's our website: http://www.active.com/donate/tntmn/tntmnJSchewe > > *My views may not represent those of my empoyers > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Mailing list for libdc1394-devel > > lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mailing list for libdc1394-devel > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel ________________________________________________________________________ http://lug.htc.honeywell.com/people/jschewe [Honeywell Intranet Only] Help Jen and I fight cancer by donating to the Leukemia & Lymphomia Society Here's our website: http://www.active.com/donate/tntmn/tntmnJSchewe *My views may not represent those of my empoyers |