Skip to contentSkip to conversation

How to use webcam snapshot button

DISCUSSION Nam Phạm Thành 1 participant 1 message Jan 7, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi!
I have 2 Logitech webcams: one (quickcam for notebooks pro) is supported by pwc driver, and another (quickcam messenger) is supported by usbvideo driver.
- pwc supports webcam snapshot button through sysfs.
At normal state (webcam is not opened), cat /sys/class/video4linux/video0/button shows 0
When webcam is opened and I push the snapshot button the command cat /sys/class/video4linux/video0/button shows 1
cat /sys/class/video4linux/video0/button again (button not released yet) shows 0
cat /sys/class/video4linux/video0/button again (button released) shows 0 Tracing shows that button press/release events are reported correctly

- with other webcam: the snapshot button is registered like an input device But I don't know how to use these snapshot buttons with a webcam application (I really want to use them with cheese, but xev shows nothing). Is it possible, when I push the snapshot button, a key press event (Spacebar or XF86Webcam) is created?
Could you show how to use that to me? I will approciate it very much.

Signature · 1 line
Phạm Thành Nam

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list