Skip to contentSkip to conversation

Unable to achieve 30fps using 'read()' in C

DISCUSSION wei kin 2 participants 2 messages Nov 30, 2008 Media (V4L/DVB)

lore
Share & tools
lore

wei kin

author
#0 lore raw

Hi guys, thanks for the advice. However, after I install gspca v2 and run the API example in http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/a16706.htm, I still get only 5fps. I am still wondering how others manage to get higher fps. Or do I need other programming technique such as thread programming to achieve that?

Thanks.
Rgds,
nik2031

Quoted 23 lines · wei kin

I installed qc-usb-0.6.6 and gspca-modules-2.6.18-5-xen-686 in my debian 2.6.18-5-xen. Below are what I got:

lsusb
Bus 004 Device 004: ID 046d:0920 Logitech, Inc. QuickCam Express

dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usb usb3: configuration #1 chosen from 1 choice
usb usb4: configuration #1 chosen from 1 choice
usb 4-1: new full speed USB device using uhci_hcd and address 2 usb 4-1: configuration #1 chosen from 1 choice
usb usb5: configuration #1 chosen from 1 choice sda:<6>usb 4-1: USB disconnect, address 2
usb 4-1: new full speed USB device using uhci_hcd and address 3 usb 4-1: configuration #1 chosen from 1 choice
usbcore: registered new driver gspca
usb 4-1: USB disconnect, address 3
usb 4-1: new full speed USB device using uhci_hcd and address 4 usb 4-1: configuration #1 chosen from 1 choice

Quoted 6 lines

dmesg | grep Logitech
input: ImPS/2 Logitech Wheel Mouse as /class/input/input2

I did try out the API example in http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/a16706.htm. However, I get error message stated that  '/dev/video0 is no V4L2 device'.

Do anyone have any idea?

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

#1 lore raw

Hi,

With my driver stk11xx
http://syntekdriver.sourceforge.net

I can read a V4L (1/2) stream with read or map access.

I can reache 30 fps. (with the device 174f:a311)

Regards,

Nicolas

Quoted 43 lines · wei kin

Hi guys, thanks for the advice. However, after I install gspca v2 and run the API example in http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/a16706.htm, I still get only 5fps. I am still wondering how others manage to get higher fps. Or do I need other programming technique such as thread programming to achieve that?

Thanks.
Rgds,
nik2031

Quoted 23 lines · wei kin

I installed qc-usb-0.6.6 and gspca-modules-2.6.18-5-xen-686 in my debian 2.6.18-5-xen. Below are what I got:

lsusb
Bus 004 Device 004: ID 046d:0920 Logitech, Inc. QuickCam Express

dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usb usb3: configuration #1 chosen from 1 choice
usb usb4: configuration #1 chosen from 1 choice
usb 4-1: new full speed USB device using uhci_hcd and address 2 usb 4-1: configuration #1 chosen from 1 choice
usb usb5: configuration #1 chosen from 1 choice
sda:<6>usb 4-1: USB disconnect, address 2
usb 4-1: new full speed USB device using uhci_hcd and address 3 usb 4-1: configuration #1 chosen from 1 choice
usbcore: registered new driver gspca
usb 4-1: USB disconnect, address 3
usb 4-1: new full speed USB device using uhci_hcd and address 4 usb 4-1: configuration #1 chosen from 1 choice

Quoted 6 lines

dmesg | grep Logitech
input: ImPS/2 Logitech Wheel Mouse as /class/input/input2

I did try out the API example in http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/a16706.htm. However, I get error message stated that '/dev/video0 is no V4L2 device'.

Do anyone have any idea?

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

Signature · 6 lines
Nicolas VIVIEN

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