From: Johann Schoonees <j.schoonees@ir...> - 2005-02-02 20:48:55
Renaud Dardenne wrote:
> I am currently using libdc1394 and I just discovered your
> FAQ a few days ago. You say that you cannot
> detect that another process is using the camera. Maybe a (bad?) solution
> is to use the lsof tool. and check if
> there is an output to "/usr/sbin/lsof |grep /dev/video1394"
> or something like this...
This seems like an interesting idea but I don't know much about
devices as open files. Any comments from the Linux literati?
For reference, the current entry in the FAQ
"Can I detect another process using my camera?
"[Answer by Stefan Richter & Arne Caspari.]
"No. The IIDC DCAM specification (and hence libdc1394) does not
provide a way of finding out if a camera is already in use by another
process. When another process tries to use my camera (usually by
calling one of the libdc1394 capture set-up functions), the camera is
typically rendered useless for both processes."
Johann Schoonees Research engineer
Industrial Research Limited, PO Box 2225, Auckland, New Zealand
Phone +64 9 9203679 Fax +64 9 3028106 http://www.is.irl.cri.nz/
Camwire's home: http://kauri.auck.irl.cri.nz/~johanns/camwire/