Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: I need a script (or anything) that will disable auto exposure for a UVC usb camera

  1. #1
    Join Date
    Sep 2009
    Beans
    35

    Exclamation I need a script (or anything) that will disable auto exposure for a UVC usb camera

    I don't care what it is but I need it. Something that will disable auto exposure/priority. My camera gets about 3-4fps with it enabled. Without it I get 10+fps. Can someone hepl me PLEASE?!

    Much thanks

  2. #2
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    Have you had a look into the documentation and/or source code of your UVC cam's driver?

  3. #3
    Join Date
    Sep 2009
    Beans
    35

    Exclamation Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    Honestly, I have no clue how where to find it. If you can post a link I will compile it. I'm just not all to sure what to change in it. I think its something to do with shutter speed. Any help please?

  4. #4
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    Step 1: Plug in your device
    Step 2: Type "dmesg" in the terminal to find out the name of the driver
    Step 3: Google for it.

  5. #5
    Join Date
    Sep 2009
    Beans
    35

    Exclamation Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    Sorry for not understanding this but i typed in dmesg and i got alot of ouput. only thing related to my cameras is

    [ 10.448261] uvcvideo: Found UVC 1.00 device <unnamed> (046d:09a5)
    [ 10.469067] input: UVC Camera (046d:09a5) as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/input/input6
    [ 10.477577] uvcvideo: Found UVC 1.00 device <unnamed> (046d:09a5)
    [ 10.498207] input: UVC Camera (046d:09a5) as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/input/input7


    i also found an article on how to disable it, but it doesn't specify where to input these commands

    http://forums.quickcamteam.net/showthread.php?tid=182

    I'm not all to good when it comes down to the kernel and driver layer of linux. sorry for any stupid questions.

  6. #6
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    Quote Originally Posted by Nate_is_cool View Post
    i also found an article on how to disable it, but it doesn't specify where to input these commands

    http://forums.quickcamteam.net/showthread.php?tid=182

    I'm not all to good when it comes down to the kernel and driver layer of linux. sorry for any stupid questions.
    Oh, these commands are for the terminal, but they require a program that is not part of the standard linux distribution.

    You can however try to compile it yourself and check those commands. You can download the sources here: http://www.quickcamteam.net/software/libwebcam

    Good luck!

  7. #7
    Join Date
    Sep 2009
    Beans
    35

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    Alright so I edited the source code and added Exposure auto to 0.

    now all i need to do is
    ./configure
    make
    make install

    is that correct?

    Will i have to do this everytime I restart or is it permanent (up until they update the driver of course)

    Thank you for the support

  8. #8
    Join Date
    Sep 2009
    Beans
    35

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    I still am having problems on what to do. I am very simple when it comes to drivers in linux. I installed some software but I can't seem to find anything. Can someone just please fix this. Its really annoying and I've tried searching google but nothing comes up

  9. #9
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    The point is the following. According to the web-site you referred to, you will not need to modify the driver. Instead, there is a utility ("uvcdynctrl") which will modify some parameters for you. You have to compile it first. I'm trying that right now for you....

    There seems to be a little bug, described in http://forums.quickcamteam.net/archi...hread-181.html. I'll integrate the quick fix.

    by reading the README-file and the post mentioned above, I came up with the following list of commands to compile this tool. You might need in install some packages to get it running (like libxml2-dev).
    Code:
    cd /tmp
    mkdir webcam
    cd webcam
    wget http://www.quickcamteam.net/dev/libwebcam-0.1.1.tar.bz2
    tar xfv *.bz2
    svn co -r178 http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk
    cp trunk/uvcvideo.h libwebcam-0.1.1/Common/include
    cp trunk/uvc_compat.h libwebcam-0.1.1/Common/include
    cd libwebcam-0.1.1
    cmake .
    make
    The control program is then located in "/tmp/webcam/libwebcam-0.1.1/Apps/Apps/uvcdynctrl". After compilation, you might want to copy it somewhere else such that it doesn't get deleted when restarting the computer. You do not need to rebuild it every time you restart the computer.

  10. #10
    Join Date
    Sep 2009
    Beans
    35

    Re: I need a script (or anything) that will disable auto exposure for a UVC usb camer

    OK so I did all that and i still get

    ERROR: Unable to set new control value: A Video4Linux2 API call returned an unexpected error 5. (Code: 12)

    when i input

    uvcdynctrl -s "Exposure, Auto" 0

    what could this mean??

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •