Paulo Assis wrote:
> Jelle,
> 
> Jelle de Jong escreveu:
>> Paulo Assis wrote:
>>   
>>> Jelle,
>>> You must tick off the "Exposure, Auto Priority" control this is enable
>>> by default and increases the exposure time (reducing fps) in order to
>>> get a brighter picture.
>>>
>>> Just use libwebcam or guvcview.
>>>
>>> Best regards,
>>> Paulo
>>>
>>> Jelle de Jong escreveu:
>>>     
>>>> Philipp Kolmann wrote:
>>>>   
>>>>       
>>>>> Jelle de Jong wrote:
>>>>>     
>>>>>         
>>>>>> Hello everybody,
>>>>>>
>>>>>> I bought a Logitech QuickCam Pro 9000[1] (80euro) to make a budget
>>>>>> free/libre open source live video recording systems from a laptop. But I
>>>>>> am unable to get more then 5 frames per seconds (fps) out of the webcam
>>>>>> under any resolution. The last 4 days I have been trying to get this
>>>>>> system to work both with webcam and a digital video camera on combisite1
>>>>>> of a usb video grabber.
>>>>>>
>>>>>> The webcam only delivers 5 fps tops most time its lower is this normal
>>>>>> and what to do about is, should I buy an other webcam and witch one?
>>>>>>
>>>>>> Please see the attachments for all good reports about fps and mencoder
>>>>>> and mplayer commands.
>>>>>>
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> It seems you use eeepc. Did you test the cam with another PC? Is your 
>>>>> USB Port 1.1 or 2.0 (check with usbview).
>>>>>
>>>>> I have several 9000 here and I don't have issues with debian and this cam.
>>>>> You might want to get latest uvcvideo kernel module, but this cam is 
>>>>> supported for a long time already.
>>>>>
>>>>> hth,
>>>>> Philipp
>>>>>     
>>>>>         
>>>> Hi Philipp,
>>>>
>>>> Thanks for responding, what version of the webcam do you have? I seem to
>>>> have a got a 0.08
>>>>
>>>> My ports are usb 2.0 I did not test it with an other pc I only have
>>>> eeepc's around me.
>>>>
>>>> Is there a debian package for the latest uvcvideo kernel module?
>>>>
>>>> Could you test this command for me and show me the output: (especially fps)
>>>>
>>>> mencoder tv:// -tv driver=v4l2:device=/dev/video0:fps=5 -ovc lavc
>>>> -lavcopts vcodec=mpeg4:vbitrate=2240:threads=2 -of rawvideo -o webcam4.mp4
>>>>
>>>> Thanks in advance,
>>>>
>>>> Jelle de Jong
>>>>
>>>>       
>> Hello Paulo,
>>
>> Thank you for your response.
>>
>> I now see whats happening, the fps drops to around 5fps when the
>> environment is dark and goes to around 30fps when the environment is bright.
>>
>> I changed Exposure, Auto Priority to 0 and now I seem to have an higher
>> stable fps.
>>
>> It also seems that when recording to disk the fps also drop form say
>> 30fps to 10fps but the cpu load and mem use is very low, is this normal?
>>
>> I have installed guvcview and played a bit with the many controls. The
>> commandline shows a lot of errors, and the webcam responses very weird,
>> when trying to change the settings most things fail. I have attached the
>> guvcview.log.
>>
>>   
> The warnings you see under guvcview  are related to dynamic controls
> (focus, LED control, ...) if you want these controls enabled you must
> run guvcview as the root user at least once per session.
> 
> If you try to change let's say gain and you have auto gain set then this
> will fail, the same for exposure and white balance.
>  
> Has for a fixed frame rate your best option with that model is using
> manual exposure. Just choose an appropriate exposure setting and stick
> with that.
> 
>> How can I control the webcam with standardized v4l2 controls?
>>
>>   
> guvcview uses a standard v4l2 interface.
> if you just want to use the controls, and capture video with some other
> app. run:
> guvcview --controls_only
> 
>> I want to use a webcam to record live images that move and have different
>> light environments, so the webcam has to adjust automatically to output
>> the best possible images. Is this a very hard thing to ask? I am willing
>> to buy a new device the only demands are usb interface and full v4l2
>> support. I have no idea of what is a good usb camera and what is not is
>> the QuickCam Pro 9000 the best one available? (200euro budget)
>>
>>   
> In my case I own a sphere AF and a pro5000 (2007 model) and at least
> with guvcview  I never noticed any significant frame drop  when
> recording video, but then guvcview doesn't use any expensive video
> compression  (just  MJPG in case of yuv data).
> With mencoder you are compressing to mpeg4, this is very CPU expensive.
> 
>> Is there a some anti shakiness feature like photo and video cameras have.
>> I kind of have shocking hands when video recording?
>>   
> In a webcam ???
> Never heard of any such feature.
> 
>> Is there also some feature to say well do auto exposure but make sure it
>> does not go below 20 fps?
>>
>>   
> I always use auto-exposure with both my cameras and I can easily record
> avi's with 30 fps, be it a dark or bright environment.
>  
> 
>> So now I use the following command to record with the webcam:
>> mencoder tv:// -tv
>> driver=v4l2:device=/dev/video0:adevice=/dev/dsp1:immediatemode=0:forceaudio:width=800:height=600:fps=25
>> -oac lavc -lavcopts acodec=libmp3lame:abitrate=128 -ovc lavc -lavcopts
>> vcodec=mpeg4:vbitrate=2240:threads=2 -of lavf -lavfopts format=avi -o
>> webcam5.avi
>>
>> but the output is 640x480 with 15 fps not the resolution and fps I
>> supplied with the mencoder command why is this and how to fix this using
>> mencoder to record? Please also see the attached webcam5.log.
>>   
> 
> I'm not really a mencoder guru, have you tried recording on guvcview or
> cheese ?
> Maybe you should try some other lighter compression method when
> recording, and convert the resulting file to mpg4 ( I recommend avidemux
> for editing and compressing the captured file).
>> Any help is welcome.
>>
>> Thanks in advance,
>>
>> Jelle de Jong
>>   
> Best regards,
> 
> Paulo

I did a lot more testing today (this is full day 5 already) and I found
some very disturbing discoveries!

I can watch the webcam at width=320:height=240:fps=30 and have the
correct result. However when going over this resolution I will get only
15 fps and i can max go to 640x480 resolution.

Any idea why a tool as guvcviewer seems to output 800x600 and even
1600x1200 but mplayer does not want go higher as 640x480 (it does go lower)

I upgraded to guvcview 1.0.2 and tested some more there is still the
issue that i get lower fps when recording. Could somebody test recording
800x600 with 25fps and sound, if its really 25fps the sound will be in sync.

Also i tested the v4l2 fields of the webcam and there are a lot of errors
and non working fields. Is the device really v4l2 compatible? Could
somebody check this out further?

I also want to use the device on headless machines so no X. How can I
configure the device then so it does not use auto exposure...?

I attacked all test reports I made that lead to my conclusions please
look at them.

I can be contacted on chat.freenode.org as /msg tuxcrafter

Does somebody know a usb device that can be used for recording with v4l2
capable tools at at-leased 25pfs and 800x600 some auto balancing and
focusing would be nice to.

Again please checkout the attachment.

Thanks in advance for help.

Jelle de Jong

Attachment: reports2.tar.gz
Description: application/gzip

_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to