Page 24 of 28 FirstFirst ... 142223242526 ... LastLast
Results 231 to 240 of 277

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

  1. #231
    Join Date
    Apr 2007
    Beans
    4
    Distro
    Ubuntu 10.04 Lucid Lynx

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

    I do not have the option to flip in v4l2ucp

  2. #232
    Join Date
    Apr 2007
    Beans
    4
    Distro
    Ubuntu 10.04 Lucid Lynx

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

    Quote Originally Posted by drewVeidt View Post
    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."
    I've forwarded Hans the information he requests, so hopefully my laptop is just not recognized by libv4l1. I am using an Asus K52J with an "IMC Networks" webcam.

  3. #233
    Join Date
    Apr 2007
    Beans
    121

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

    hi, i am trying to flip the image in skype.
    if i start simply skype, it's bottom up.
    if i start: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
    it is correct.

    #locate libv4lconvert
    /usr/include/libv4lconvert.h
    /usr/lib/libv4lconvert.so
    /usr/lib/libv4lconvert.so.0
    /usr/lib/pkgconfig/libv4lconvert.pc
    /usr/local/include/libv4lconvert.h
    /usr/local/lib/pkgconfig/libv4lconvert.pc

    isn't there a way to make it a default?

  4. #234
    Join Date
    Jun 2009
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    It took me a while to fix this problem with my new ASUS K50AF running Lucid (32 Bit Version).
    Finally the following approach worked - I hope this description will save you some time:

    1. Check if the wrapper helps your application
    Code:
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so <your application>
    (e.g.
    Code:
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
    )
    If yes, continue as suggested in http://ubuntuforums.org/showpost.php...&postcount=225 (create the wrapper & use it to call the app).
    If no, continue as follows:

    2. Download current libv4l Sources (I used Version 0.8.0)
    2.a Download from http://freshmeat.net/projects/libv4l
    2.b Unpack to your Home-Dir (e.g. ~/v4l-utils-0.8.0/)

    3. Identify your Webcam & Board
    3.a.
    Code:
    lsusb
    to get the device ID (Format (hex) <XXXX>:<YYYY>)
    BUS ddd Device ddd: ID XXXX:YYYY Your Webcam
    3.b. Create a file containing the Board Vendor Name (e.g. vendor.txt)
    Code:
    cat /sys/devices/virtual/dmi/id/board_vendor > vendor.txt
    3.c. Create a file containing the Board Name (e.g. name.txt)
    Code:
    cat /sys/devices/virtual/dmi/id/board_name > name.txt
    4. Update the Upside Down list of libv4l
    4.a Open the control-File from the Source Folder in an ASCII editor (e.g.
    Code:
    gedit ~/v4l-utils-0.8.0/lib/libv4lconvert/control/libv4lcontrol.c
    )
    4.b. The file contains the list of "Upside down devices" at the start. Add the entry for your Configuration:
    Code:
    { 0x<XXXX>, 0x<YYYY>, 0, <VENDOR>, <NAME>,
    		V4LCONTROL_HFLIPPED | V4LCONTROL_VFLIPPED },
    Where: <XXXX> and <YYYY> is the ID of your webcam from lsusb
    <VENDOR> is the content of vendor.txt (wioth all white spaces !!)
    <NAME> is the content of vendor.txt (with all white spaces !!)

    # 5. Compile and Install libv4l
    5.a. enter the lib-source directory (e.g.
    Code:
    cd ~/v4l-utils-0.8.0/lib
    5.b.
    Code:
    sudo make clean
    5.c.
    Code:
    sudo make PREFIX=/usr
    5.d.
    Code:
    sudo make install PREFIX=/usr
    6. Test the result
    6.a. Start your application. If the image is correct now, the application uses libv4l. If not continue
    6.b. Try the Wrapper:
    Code:
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so <your application>
    (e.g.
    Code:
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
    ) If the image is still upside-down be careful to doublecheck Vendor, Name and ID (everything is case sensitive AND whitespaces are important).
    6.c. Alternatively (I did not try this option) you may use the control panel (System->Settings->Video4Linux or Applications->Media->Video4Linux Device Properties). In some versions this panel includes a "Horizontal Flip"-checkbox.
    Last edited by Arminho; June 17th, 2010 at 04:59 PM. Reason: added alternative

  5. #235
    Join Date
    Jun 2010
    Beans
    1

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

    Arminho, thank you for your solution!

    It works on my Asus K70AF. Thank you very much, you just made me very happy!

    Uhhh... this brings up another question: How do I make this permanent? I wouldn't like to start my apps with LD_PRELOAD ......... Any idea?
    Last edited by Archatos; June 3rd, 2010 at 12:11 AM.

  6. #236
    Join Date
    Aug 2008
    Beans
    9

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

    UL30VT with 064e:a136 Suyin Corp.

    My combination already in libv4l Sources Version 0.8.0.

    I'm preloading library but it still not flipped. Occasionally I Have found absence of 'dmi' folder in my '/sys/devices/virtual'.

    I'm not sure but can it be a reason why it not working? Maybe libv4l reading info from there (not from dmidecode)?

    PS:I'm gentoo user

  7. #237
    Join Date
    Aug 2008
    Beans
    9

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

    Yep, as I thought X)

    Go to kernel src:
    Code:
    cd /usr/src/linux && sudo make menuconfig
    Search for DMI:
    Code:
    /dmi
    You need this:
    Code:
    Symbol: DMIID [=y]
    Prompt: Export DMI identification via sysfs to userspace
    Defined at drivers/firmware/Kconfig:106
    Depends on: DMI [=y]
    Location:
    -> Firmware Drivers
    This thing must be enabled to make tutor from previous work.

  8. #238
    Join Date
    Jun 2009
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Quote Originally Posted by Archatos View Post
    Arminho, thank you for your solution!

    It works on my Asus K70AF. Thank you very much, you just made me very happy!

    Uhhh... this brings up another question: How do I make this permanent? I wouldn't like to start my apps with LD_PRELOAD ......... Any idea?
    My pleasure, Archatos!
    I used the webcamWarapper-solution described in http://ubuntuforums.org/showpost.php...&postcount=225 to make the settings permanent for skype. For cheese (and all other apps that use libv4l) there is no need to use the wrapper.

    Please also inform Hans de Goede (hdegoede@redhat.com) about the changes that worked for you..he maintains the relevant part of lib4vl. This will make sure that others will not have the same problem with ASUS K70AF in the future.

  9. #239
    Join Date
    Aug 2008
    Beans
    48

    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
    Thank you!! Fixed my Asus UL30A-A2

  10. #240
    Join Date
    Apr 2007
    Beans
    3,111
    Distro
    Ubuntu

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

    Another thank you to Arminho! Only five beans at the time of writing, but it are super ones!
    For me, it concerns an Asus PRO5EA
    Code:
    "ASUSTeK Computer Inc.        ", "K51AE     "

Page 24 of 28 FirstFirst ... 142223242526 ... 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
  •