7

I have two Microsoft LifeCam HD-5000 webcams which I am using as a home security system with the Motion package for linux. One problem I have is that because these webcams have auto-focus, sometimes they will try to automatically adjust the focus and will create false positive motion detection.

It seems like you can fix the focus at infinity under windows. Is there any way I could do that under linux, using uvcvideo?

8

Perhaps this works:

uvcdynctrl -s "Focus, Auto" 0

You can then adjust the focus with:

uvcdynctrl -s "Focus (absolute)" $amt

Where $amt is a number from 0 - 40

  • This looks very promising, however I don't have uvcdynctrl on my Ubuntu box. I will investigate further and post back. Thanks! – Josh Feb 17 '11 at 13:32
  • @user4646 On the off-chance you read this, can you tell more about the meaning of the range? Which is infinity? Also, where did you find this information, I've tried --help and info and neither give this range or information. Thanks! – Levon Dec 11 '14 at 21:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.