RE: looks like webcam lye about framerate



Hi John,

thank you for your response. Yesterday late night i found that my
worries was ...groundless.
The output format will have written framerate in to container (ogg this
time) but reale rate will stay same to the source. So gstreamer will not
produce bigger file or more cpu use. Theora use dynamic frame rate and
this is not a problem.

I will need to try your app, because even with windows by using standard
uvc driver my cam can't produce 30 fps, only logitech driver can do it.

Regards,
	Alexey  

Am Sonntag, den 15.08.2010, 17:36 -0700 schrieb John Selbie:
> 
> Some webcams, when their aperture mode and exposure mode are set to
> "auto", they implicitly lower their frame rate so as to allow more
> light to be captured per frame.  I can repro this issue with both my
> Logitech and Microsoft webcams.  On a stream configured for 30fps, the
> frame rate can drop as low as 7fps.  As I understand it, this is "by
> design" behavior.
> 
> The solution is to simply experiment with the auto-exposure switches
> that the camera exposes through the UVC driver.  (Remember that little
> applet I coded up and sent around - it works just great for this.
> http://www.flickr.com/photos/selbie/4662079729/ ).  Usually by setting
> everything to "manual".  All of these sliders and checkboxes are
> exposed for V4L2.
> 
> Another workaround is to simply adjust the lighting in the room such
> that the camera doesn't have to adjust it's virtual shutter/aperture
> to compensate.
> 
> Hope this helps,
> jrs
> 
> 
> > Subject: looks like webcam lye about framerate
> > From: bug-track fisher-privat net
> > To: cheese-list gnome org; ubuntu-qa lists ubuntu com
> > Date: Sun, 15 Aug 2010 11:03:25 +0200
> > 
> > Hallo
> > after i started to hack on performance problem by cheese i found
> other
> > problem with my webcams. Looks like they all lye about real frame
> rate.
> > You can set it to use 30 fps or 10 fps but there will be no changes
> in
> > image quality. The problem for cheese - with 30 fps we use more cpu
> and
> > make bigger files, even there is only actual 10fps stream.
> > 
> > Please test your cam with this command:
> > 
> > $(sleep 10 && killall mplayer)& mplayer -tv
> > driver=v4l2:width=960:height=720:device=/dev/video0 tv://
> > 
> > change resolution according your cam. make 3 tests, first one is not
> > always good. Find this line:
> > v4l2: 96 frames successfully processed, 4 frames dropped.
> > it mean i have about 10fps at resolution 960x720.
> > 
> > My cam should actually do 30 fps starting with resolution 640x480,
> max
> > what it get 10-13 fps.
> > 
> > Please make some test, send your feedbacks.
> > 
> > Regards,
> > Alexey
> > 
> > _______________________________________________
> > cheese-list mailing list
> > cheese-list gnome org
> > http://mail.gnome.org/mailman/listinfo/cheese-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]