|
RE: targetting a specific camera when using libgphoto: msg#00030multimedia.gphoto.devel
Sorry if I may sound stupid in my email but as you can see I am fairly new to this whole open source thingy! The project I am on right now, the customers requested me to use gphoto2 and they want me to support usb camera now and will want Ethernet(wireless) camera support later. To answer to your post, that is kind of a *hack*. What I don't understand is why GUI apps care about the usb: thing. Let's look at the following use case where a use plugs in a usb camera: -The os generate some form of event from kernel to user space (on camera plug). -The event contains the device path that one can open and talk to the device. -That path is unique per devices. -The user space event handler spawns your GUI(or non GUI) app with the device path. -The GUI(or non GUI) app can then use that path to communicate with the camera. So one could use the --port options or a new options --dev-path! I've looked into what it would take to add an api to libgphoto2 where I could specify the port and I think that it should be an easy task. Now what if I modify the library, do I need to push it back to you (per GPL)? I am also looking at adding a libgphoto2_port to support Ethernet camera. Thanks for the help! Pat -----Original Message----- From: Marcus Meissner [mailto:meissner@xxxxxxx] Sent: Wednesday, February 15, 2006 1:31 AM To: Patrick Laplante Cc: 'Marcus Meissner'; gphoto-devel@xxxxxxxxxxxxxxxxxxxxx Subject: Re: [gphoto-devel] targetting a specific camera when using libgphoto On Tue, Feb 14, 2006 at 07:11:20PM -0500, Patrick Laplante wrote: > Yeah, that don't work: > > I have a sony camera plugged in my linux box. /proc/bus/usb/001/044 > > When I do gphoto2 --camera "Sony Digital Still Camera" --port "usb:001,044" > --shell > > I get: > The port you specified ('usb:001,044') can not be found. Please specify one > of the ports..... > > Pat > > Why not add an api gp_init_camera_from_path? Libusb supports opening a > device path! It will start working once you start plugging in more cameras. gphoto2 --list-ports shows all available ports. If there is only one used it is "usb:", if there are multiple, the above method can be used. (Yes, not very well designed, but some GUI apps cannot really cope with the usb:XXX,YYY names :() Ciao, Marcus ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: targetting a specific camera when using libgphoto: 00030, Rogier Wolff |
|---|---|
| Next by Date: | Re: targetting a specific camera when using libgphoto: 00030, Marcus Meissner |
| Previous by Thread: | Re: targetting a specific camera when using libgphotoi: 00030, Rogier Wolff |
| Next by Thread: | Re: targetting a specific camera when using libgphoto: 00030, Marcus Meissner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |