public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Unable to achieve 30fps using 'read()' in C
@ 2008-11-30  5:26 wei kin
  2008-11-30  8:58 ` Nicolas
  0 siblings, 1 reply; 7+ messages in thread
From: wei kin @ 2008-11-30  5:26 UTC (permalink / raw)
  To: video4linux-list

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

On Sat, 2008-11-29 at 00:27 -0800, wei kin wrote:
> 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
> 
> 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:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Unable to achieve 30fps using 'read()' in C
@ 2008-11-29  8:27 wei kin
  2008-11-29  8:47 ` Jean-Francois Moine
  0 siblings, 1 reply; 7+ messages in thread
From: wei kin @ 2008-11-29  8:27 UTC (permalink / raw)
  To: video4linux-list

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

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?
Thanks,
Rgds
nik2031

On Fri, Nov 28, 2008 at 3:02 AM, wei kin <kin2031@yahoo.com> wrote:
>
Hi all, I am new in v4l programming. What I did in my code is I used
'read( )' in C programming to read images from my Logitech Quickcam
Express. My problem is I can't get 30frames per second, what I got is
just 5fps when I loop and read for 200times. Do anyone know why is it
under performance? Thanks
>
> Rgds,
> nik2031




--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Unable to achieve 30fps using 'read()' in C
@ 2008-11-28  8:02 wei kin
  2008-11-28 13:02 ` Jonathan Lafontaine
  2008-11-28 15:33 ` Jackson Yee
  0 siblings, 2 replies; 7+ messages in thread
From: wei kin @ 2008-11-28  8:02 UTC (permalink / raw)
  To: video4linux-list

Hi all, I am new in v4l programming. What I did in my code is I used 'read( )' in C programming to read images from my Logitech Quickcam Express. My problem is I can't get 30frames per second, what I got is just 5fps when I loop and read for 200times. Do anyone know why is it under performance? Thanks

Rgds,
nik2031



      
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-11-30  8:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30  5:26 Unable to achieve 30fps using 'read()' in C wei kin
2008-11-30  8:58 ` Nicolas
  -- strict thread matches above, loose matches on Subject: below --
2008-11-29  8:27 wei kin
2008-11-29  8:47 ` Jean-Francois Moine
2008-11-28  8:02 wei kin
2008-11-28 13:02 ` Jonathan Lafontaine
2008-11-28 15:33 ` Jackson Yee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox