Page 23 of 28 FirstFirst ... 132122232425 ... LastLast
Results 221 to 230 of 277

Thread: [HOW-TO] Upside-down image from UVC webcam

  1. #221
    Join Date
    Jun 2007
    Beans
    45

    Re: [HOW-TO] Upside-down image from UVC webcam

    Quote Originally Posted by gotaserena View Post
    Hello,

    I've just got one of these netbooks with a built-in webcamera. I've also found out that the image is rotated 180 degrees and tried to re-compile libv4l to fix this. I've found that the way to go is to include the vendor and model information in the source of libv4lconvert/libv4lconvert.c. I would be very thankful if someone would teach me how to extract the necessary info from the output of lsusb and dmidecode.

    The webcamera is listed as
    Code:
    ID 04f2:b071 Chicony Electronics Co., Ltd 2.0M UVC WebCam / CNF7129
    . Does anybody know whether this has been added to the newest/trunk/mercurial libv4l?

    TIA
    Hi,

    Just do (as root):
    lsusb > lsusb.log
    dmidecode > dmi.log

    And send me <hdegoede@redhat.com>, a mail with these 2 files attached. Do *NOT* copy and paste them I need them 100% unmodified.

    I'll then add your laptop to libv4l's upside down table and get back to you with testing instructions.

    Regards,

    Hans

  2. #222
    Join Date
    Dec 2005
    Beans
    31

    Re: [HOW-TO] Upside-down image from UVC webcam

    Hi Hans, I've just sent you the files. Thank you very much!

  3. #223
    Join Date
    Feb 2010
    Beans
    6

    Re: [HOW-TO] Upside-down image from UVC webcam

    I'm having problem to patch the file. Do I have to rename the file to .patch file? Because I am stuck here :

    Code:
    patch < patch_solution1_mirrored.txt 
    The program 'patch' is currently not installed.  You can install it by typing:
    sudo apt-get install patch
    patch: command not found
    Anything I done wrong?

    BTW, I'm a noob.. Only a four day experience in Linux and Ubuntu..

  4. #224
    Join Date
    May 2008
    Location
    Norway
    Beans
    10
    Distro
    Ubuntu

    Re: [HOW-TO] Upside-down image from UVC webcam

    Is this still the best/only solution to fix Upside-down image from UVC webcam running ubuntu 9.10?

    what happens with the fix when kernel or packages is updated?
    Do I have to do the fix again then?

  5. #225
    Join Date
    May 2008
    Location
    Norway
    Beans
    10
    Distro
    Ubuntu

    Re: [HOW-TO] Upside-down image from UVC webcam

    Found this fine solution and wanted to share it:

    http://radu.cotescu.com/2009/11/05/f...-ubuntu-webcam

    quick howto:

    Code:
    sudo add-apt-repository ppa:libv4l
    sudo aptitude update && sudo aptitude install gtk-v4l libv4l-0

    If ubuntu 32bit, do:
    Code:
    sudo su
    echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper
    chmod +x /bin/webcamWrapper
    exit
    If ubuntu 32bit, you can now run programs like this to fix webcam upside-down image:
    Code:
    webcamWrapper skype
    webcamWrapper amsn

    If ubuntu 64bit, do:
    Code:
    sudo su
    echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper
    echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper32
    chmod +x /bin/webcamWrapper
    chmod +x /bin/webcamWrapper32
    exit
    If ubuntu 64bit, you can now run programs like this to fix webcam upside-down image:
    Code:
    webcamWrapper32 skype
    webcamWrapper amsn
    Last edited by paalfe; March 20th, 2010 at 08:40 PM.

  6. #226
    Join Date
    Mar 2010
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: [HOW-TO] Upside-down image from UVC webcam

    I've tried the solution in the first post and the one in the post above, none of them worked.

    After my attempt with the first, my pc stopped detecting the camera. Then I opened synaptic and reinstalled almost everything that said video driver (and probably the kernel).
    I rebooted and opened chesse, the image was no longer upside down, but skype still has that problem.

    So 50% of my problem is fixed, does anyone know how to flip the image in skype?

  7. #227
    Join Date
    Jan 2007
    Beans
    10

    Talking Re: [HOW-TO] Upside-down image from UVC webcam

    Quote Originally Posted by paalfe View Post
    Found this fine solution and wanted to share it:

    http://radu.cotescu.com/2009/11/05/f...-ubuntu-webcam

    quick howto:

    Code:
    sudo add-apt-repository ppa:libv4l
    sudo aptitude update && sudo aptitude install gtk-v4l libv4l-0

    If ubuntu 32bit, do:
    Code:
    sudo su
    echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper
    chmod +x /bin/webcamWrapper
    exit
    If ubuntu 32bit, you can now run programs like this to fix webcam upside-down image:
    Code:
    webcamWrapper skype
    webcamWrapper amsn

    If ubuntu 64bit, do:
    Code:
    sudo su
    echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper
    echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper32
    chmod +x /bin/webcamWrapper
    chmod +x /bin/webcamWrapper32
    exit
    If ubuntu 64bit, you can now run programs like this to fix webcam upside-down image:
    Code:
    webcamWrapper32 skype
    webcamWrapper amsn
    it works it works!! The solution on the first post didn't work for me. I added a blank line at the end of the patch, yet it still came out with error.

    I'm using karmic on ASUS K40IN. The uvc device id is 04f2:b071.

    Thanks for the solution!!

  8. #228
    Join Date
    Jun 2007
    Location
    Perth - OZ
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [HOW-TO] Upside-down image from UVC webcam

    Quote Originally Posted by paalfe View Post
    Found this fine solution and wanted to share it:
    the solution that paalfe has proposed

    http://ubuntuforums.org/showthread.p...31#post8925031

    worked perfectly on my wife's brand new ASUS K50IJ the webcam model after issuing
    Code:
    lsusb
    is
    Code:
    Bus 001 Device 002: ID 04f2:b071 Chicony Electronics Co., Ltd 2.0M UVC WebCam / CNF7129
    I think this marks the end of horrible windows 7 in this laptop, when she bought it she was really pissed of how slow the system was with the new computer and that sometimes because windows wanted to install updates without asking (default behaviour) the computer hang for ages before actually turned off.

    So I saw a chance and I went "how about jumping to linux dear?" so far...

    Cheers to everybody
    Ubuntu 64 bit

  9. #229
    Join Date
    Mar 2010
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: [HOW-TO] Upside-down image from UVC webcam

    Quote Originally Posted by paalfe View Post
    Found this fine solution and wanted to share it:

    http://radu.cotescu.com/2009/11/05/f...-ubuntu-webcam
    My bad, this one works. I didn't made the last command.
    It's much simpler than the one on the first post.

    Thanks paalfe!

    Cheers.

  10. #230
    Join Date
    Apr 2007
    Beans
    4
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: [HOW-TO] Upside-down image from UVC webcam

    Unfortunately, linking to the /usr/lib32/libv4l/v4l1compat.so just causes skype to segfault when i go to test the camera. I'm on a 64 bit Asus K52J. I didn't think that would matter since the 32 bit library is installed, but I guess it does.

    I may be down to building uvcvideo myself, which seems like a pretty horrific option. Especially considering that the code is no longer hosted in the manner in which the solution publishes (it's over 2 years old and the codebase has been reorganized and relocated). If anybody has further advice on this, it'd be great. Otherwise I guess I'll just have to figure it out on my own and then share it so the next clown doesn't have to deal with it!

    The only thing I know about the cam is that it is by "IMC Networks."
    Last edited by drewVeidt; April 29th, 2010 at 03:04 PM.

Page 23 of 28 FirstFirst ... 132122232425 ... 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
  •