* 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
* RE: 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
1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Lafontaine @ 2008-11-28 13:02 UTC (permalink / raw)
To: 'kin2031@yahoo.com', video4linux-list@redhat.com
Is your webcam is connected to a usb2 port(if it requires)?
Do lsusb
And dmesg | grep usb
dmesg | grep Logitech
which driver r u using for v4l2
-----Original Message-----
From: video4linux-list-bounces@redhat.com [mailto:video4linux-list-bounces@redhat.com] On Behalf Of wei kin
Sent: 28 novembre 2008 03:03
To: video4linux-list@redhat.com
Subject: Unable to achieve 30fps using 'read()' in C
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
--
This message has been verified by LastSpam (http://www.lastspam.com) eMail security service, provided by SoluLAN
Ce courriel a ete verifie par le service de securite pour courriels LastSpam (http://www.lastspam.com), fourni par SoluLAN (http://www.solulan.com)
www.solulan.com
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.9/1807 - Release Date: 2008-11-27 09:02
--
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-28 8:02 wei kin
2008-11-28 13:02 ` Jonathan Lafontaine
@ 2008-11-28 15:33 ` Jackson Yee
1 sibling, 0 replies; 7+ messages in thread
From: Jackson Yee @ 2008-11-28 15:33 UTC (permalink / raw)
To: video4linux-list
Wei,
You will only get half rate or worse using read() because there is no
buffer queue for the frames. Please use streaming IO to get all of the
frames that your device produces as in the API example:
http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/a16706.htm
Regards,
Jackson Yee
The Possum Company
540-818-4079
me@gotpossum.com
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
* 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
* Re: Unable to achieve 30fps using 'read()' in C
2008-11-29 8:27 Unable to achieve 30fps using 'read()' in C wei kin
@ 2008-11-29 8:47 ` Jean-Francois Moine
0 siblings, 0 replies; 7+ messages in thread
From: Jean-Francois Moine @ 2008-11-29 8:47 UTC (permalink / raw)
To: kin2031; +Cc: video4linux-list
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?
You use the gspca v1 which is not v4l2 compliant. Please, switch to
gspca v2 (look at my web page). Note that for your webcam, the subdriver
has some remaining problems. I hope to fix them soon.
Regards.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
--
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-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-30 5:26 wei kin
@ 2008-11-30 8:58 ` Nicolas
0 siblings, 0 replies; 7+ messages in thread
From: Nicolas @ 2008-11-30 8:58 UTC (permalink / raw)
To: kin2031; +Cc: video4linux-list
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
Le samedi 29 novembre 2008 à 21:26 -0800, wei kin a écrit :
> 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
--
Nicolas VIVIEN
--
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-29 8:27 Unable to achieve 30fps using 'read()' in C wei kin
2008-11-29 8:47 ` Jean-Francois Moine
-- strict thread matches above, loose matches on Subject: below --
2008-11-30 5:26 wei kin
2008-11-30 8:58 ` Nicolas
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