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

Thread: Webcam brightness increase?

  1. #1
    Join Date
    Nov 2008
    Location
    Buenos Aires, Argentina
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Question Webcam brightness increase?

    Hello. I know this topic has somehow been covered, but I could find no answer to this specific problem.

    Ubuntu, in its most recent version (9.10) has stopped to support certain webcams that it previously supported with just plug-and-play simplicity. After many searches on the web, I could somehow managed to make my old webcam (Logitech QuickCam Traveler) work. Skype couldn't see it, but adding the command bash -c 'export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so; skype' to the launcher, worked the miracle.

    Whatever, the image was very dark, and in a new web search I found a solution (http://wiki.eeeuser.com/howto:instal...video_in_skype).
    As stated there, I opened the Terminal and entered:

    Code:
    v4lctl bright 100%
    All is OK, brightness gets up, I can finally see my face (not a great view, but I somehow got away with it) in Skype's test, but I need that change to be PERMANENT, so every time my parents open Skype (it's my parents' computer) they won't have to mess with Terminal (they're 69 and 72 years old, it's their first computer, so I CAN NOT expect them to use Terminal, they just want to open Skype and use it, as they did when they used Windows (until two weeks ago, when I finally convinced them to switch).

    Thanks a lot in advance.

    Senuf
    -----------------------------------------------------
    I've seen the light. And it's dark.

  2. #2
    Join Date
    Nov 2008
    Beans
    44
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Webcam brightness increase?

    I'm no script genius, so someone correct me if I'm wrong. But I believe this would work:

    Open a new window in gedit, copy:
    Code:
    #!/bin/bash
    v4lctl bright 100% && skype;
    save it as .skype_launch.sh in your home directory.
    in the terminal, type

    Code:
    chmod a+x .skype_launch.sh
    Then set this script to the desktop/menu launcher as Skype. It should run your command each time you open it.

  3. #3
    Join Date
    Nov 2008
    Location
    Buenos Aires, Argentina
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Webcam brightness increase?

    Thanks a lot for coming in aid, shrimpy89!
    I did something like that, but it seemed that for the brightness correction to function, Skype has already to be up and running, so to speak.

    What I finally did was this:
    I added a launcher with no more than "v4lctl bright 100%" as a command, and "Brillo" (brightness, in spanish) as its name (for the tooltip's sake). Then, in inkscape I made a beauuuutiful icon (well, sort of), and then, after saving it as an svg file, selected it as the icon for said launcher up there in the panel/menu, just besides a Skype icon. Then, I'll tell my parents this: "open skype with a click on that light blue icon. Once it's open, click that beautiful brightness icon besides the light blue one."
    Not the best of solutions but, hey, not bad for a know-nothing!
    -----------------------------------------------------
    I've seen the light. And it's dark.

  4. #4
    Join Date
    Mar 2010
    Beans
    15

    Re: Webcam brightness increase?

    When you already instal the software, check on options and change the brightness

  5. #5
    Join Date
    Nov 2008
    Beans
    44
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Webcam brightness increase?

    Glad you were able to find a simple solution! Maybe in my script you could swap v4lctl bright 100% and skype, so skype launches first. But then again, "if it isn't broke, why fix it?"

  6. #6
    Join Date
    Nov 2008
    Location
    Buenos Aires, Argentina
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Smile Re: Webcam brightness increase?

    Quote Originally Posted by Atilana View Post
    When you already instal the software, check on options and change the brightness
    Sorry, I haven't found that option in Skype. At least not in this version and with this webcam. If it's there, I BEG you to tell me where!!!


    And to Shrimpy: Yup, I tried doing in one command the skype thing first and then, after the "&&", the brightness trick, but had no luck. Dunno why.

    Well, thanks A LOT for the answers, and if there are no more ideas in a few hours, this thread will be considered solved.

    Greetings from Buenos Aires (far down south, for most of you).

    Senuf
    -----------------------------------------------------
    I've seen the light. And it's dark.

  7. #7
    Join Date
    Sep 2009
    Beans
    2,333

    Re: Webcam brightness increase?

    skype may help you more
    i have a nice how to from skype works good on this computer with 804
    dose not work at all on the other computer with 910
    ubuntu went an added all webcam drivers together can not adjust but the brightness
    you may try setting the brightness in ekiga softphone
    i have seen it work on all cam settings at times

  8. #8
    Join Date
    Nov 2008
    Location
    Buenos Aires, Argentina
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Webcam brightness increase?

    Quote Originally Posted by no2498 View Post
    skype may help you more
    i have a nice how to from skype works good on this computer with 804
    dose not work at all on the other computer with 910
    ubuntu went an added all webcam drivers together can not adjust but the brightness
    you may try setting the brightness in ekiga softphone
    i have seen it work on all cam settings at times
    Thanks a lot for your suggestion. The thing is... Most relatives ofmy parents live abroad and use Skype, which doesn't get along well with Ekiga (not to say that they don't get along at all or, to be more precise, that Skype despises standard protocols, which Ekiga use).

    Yup, I kinda remembered that I COULD adjust brightness in Skype under Ubuntu 8.04. Now, through your post, I see it was so and not a trick of my faulty memory.

    As things are, especially for my parents, coming from Skype under Windows, I'll let them stay with Skype and the unorthodox solution I found for 'em.

    Thanks a lot to all of you!



    Senuf
    -----------------------------------------------------
    I've seen the light. And it's dark.

  9. #9
    Join Date
    Nov 2010
    Beans
    12

    Re: Webcam brightness increase?

    Unfortunately not working for me
    This is what i get:

    Code:
    # v4lctl list
    ioctl: VIDIOC_G_STD(std=0x804f07bbff44e48 [PAL_H,PAL_D1,PAL_N,PAL_Nc,PAL_60,?,SECAM_G,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Invalid argument
    attribute  | type   | current | default | comment
    -----------+--------+---------+---------+-------------------------------------
    norm       | choice | (null)  | (null)  |
    input      | choice | zc3xx   | zc3xx   | zc3xx
    contrast   | int    |     128 |     128 | range is 0 => 255
    Gamma      | int    |       4 |       4 | range is 1 => 6
    Auto Gain  | bool   | off     | on      |
    Light freq | choice | NoFlike | NoFlike | NoFliker 50 Hz 60 Hz
    Sharpness  | int    |       2 |       2 | range is 0 => 3
    There is no "bright" there... so i tried:
    Code:
    v4lctl "Auto Gain" off
    outpu:
    Code:
    # v4lctl "Auto Gain" off
    ioctl: VIDIOC_G_STD(std=0x804f07bbfa31478 [PAL_H,PAL_I,PAL_D,PAL_D1,PAL_Nc,NTSC_M,SECAM_B,SECAM_D,SECAM_K1,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Invalid argument
    no handler for Auto Gain
    And no changes in "v4lctl list" and no changes i capture ( still dark )
    but i noticed that when i run XawTV and change Auto Gain option to OFF it change it in v4lctl list as well.
    The problem is it is going back to default after reboot.

    Any ideas ?

    [ Ubuntu 10.10, Logitech, Inc. QuickCam E2500 series ]

  10. #10
    Join Date
    Sep 2009
    Beans
    2,333

    Re: Webcam brightness increase?

    try this


    for other cameras, you'll want to adjust to different values.

    My optimal settings were:
    Gamma: 4
    Red: 290
    Green: 310
    Blue: 315

    Go to the the Linux Video settings directory:
    CODE
    cd /sys/module/gspca/parameters/


    EVERY FOLLOWING COMMAND MUST BE RUN AS ROOT! (sudo doesn't handle the ">" redirection stuff elegantly without weird escaping, which I haven't mastered yet)

    CODE
    sudo su


    And echo new values to the gamma and color files:
    CODE
    echo 4 > /sys/module/gspca/parameters/gamma
    OR
    echo 290 > /sys/module/gspca/parameters/GRed
    OR
    echo 310 > /sys/module/gspca/parameters/GGreen
    OR
    echo 315 > /sys/module/gspca/parameters/GBlue

    After tweaking with these, right click the skype systray icon, and chose "Options", then "Video Devices", then click the video "Test" button to check it out. You'll need to close and reopen the options window after each change.

    Once you've tweaked to the best config possible, save the module settings permanently to /etc/modprobe.d/options:

    Add these lines (with your values) to the "/etc/modprobe.d/options" file:
    CODE
    options gspca gamma=4
    options gspca GRed=290
    options gspca GGreen=310 sudo gedit /etc/modprobe.d/options
    options gspca GBlue=315

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •