Page 15 of 28 FirstFirst ... 5131415161725 ... LastLast
Results 141 to 150 of 277

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

  1. #141
    Join Date
    Oct 2008
    Beans
    1

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

    Quote Originally Posted by Spoutniker View Post
    What is the trunk folder?
    How can I access to it from the terminal?
    Thank you.

    I'm new with linux (ubuntu) and I hope that I could use my Webcam.

    cd /home/yourname/trunk

    or you can ~/trunk

    good day

  2. #142
    Join Date
    May 2006
    Beans
    169

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

    Quote Originally Posted by dbzdeath View Post
    Hi,

    This doesn't work for me properly. I've compiled and patched uvcvideo.

    Method 1

    With method 1 on resolutions at or below 176 x 144 this works fine, the image is displayed and it is up the correct way. If I go above 176 x 144(max for my cam is 1600 x 1200(according to cheese)) the cam window just remains black. I have tested with a couple of other programs and all seem to have the same result.

    Method 2

    Method 2 is the same as method 1 except that on the higher resolutions the picture is displayed but it is upside down(as it would be as if I never applied the patch)

    Can anyone help me please?

    Output of lsusb:

    Bus 002 Device 002: ID 04f2:b106 Chicony Electronics Co., Ltd
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 003: ID 147e:1000
    Bus 005 Device 002: ID 0b05:1751 ASUSTek Computer, Inc.
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


    I'm using uvcvideo from http://linuxtv.org/hg/~pinchartl/uvcvideo/
    I've got the exact same problem, except for me Method 1 produced the unchanged high-res image, and Method 2 produces the black image. Any ideas guys?

  3. #143
    Join Date
    Aug 2009
    Beans
    1

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

    Originally Posted by snwbrdr464
    this is what worked for me:

    first of all if you do not have the program mercurial installed you need that it uses hg to run so that's the program-name you would check:
    aptitude install mercurial

    then just do these in a terminal and it should work just fine:
    hg clone http://linuxtv.org/hg/~pinchartl/uvcvideo/
    cd uvcvideo/linux/drivers/media/video/uvc/
    patch < ~/path/to/patch_solution1_mirrored.txt
    cd ~/uvcvideo/
    make
    sudo make install
    sudo make unload
    sudo modprobe uvcvideo
    I have tried this solution either with the "mirrored" or the "NOTmirrored" patch_solution1 and in every case I obtain the same result, wich mean a functional driver but with the image upside down (a mirrored image).
    I noticed when applying the patch an error message concerning the line 371. Could it be possible that in both cases the patch does not work and that by the "make" command I create the "standard" driver?
    How could I solve this difficulty?
    I use Ubuntu 9.04 (In fact LinuxMint 7 Gloria) and my laptop is a Packard-Bell EasyNote BG48-AU-190FR with a Chicony 1.3M webcam having the following identification : 04f2:b012 Chicony Electronics Co., Ltd 1.3 MPixel UVC webcam
    Please any help would be really appreciated!!! Thanks by advance for all your efforts to help me


    I have also tried to follow the instructions given by Lantarosa as following :
    Should also work for normal ubuntu 9.04, just download the new uvcvideo from here and extract it:

    http://linuxtv.org/hg/~pinchartl/uvcvideo/

    e.g. tar xjvf uvcvideo.tar.bz2 if you got the bz2 archive.

    Save the patch in the folder where you extracted uvcvideo to and change the path in the patch to:

    linux/drivers/media/video/uvc/uvc_video.c

    Then just execute

    patch -p0 < patch_solution1_mirrored.txt
    but I am unable to find inside the patch an information about the path. So I am unable to modify it. Where is located the information that should be modified to work with 9.04
    Last edited by jack_capvil; August 3rd, 2009 at 08:32 PM.

  4. #144
    Join Date
    Mar 2008
    Beans
    31

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

    BUMP!

    I too am having the same error when trying to patch:

    patch < patch_solution1_mirrored.txt
    patching file uvc_video.c
    Hunk #1 FAILED at 371.
    1 out of 1 hunk FAILED -- saving rejects to file uvc_video.c.rej

    I'm using Linux Mint 7 "Gloria" (Kernel: 2.6.28-14-generic amd64)...

    Please help.

    lsusb: Bus 001 Device 002: ID 174f:5a35 Syntek 1.3MPixel Web Cam - Asus G1s

  5. #145
    Join Date
    Sep 2005
    Beans
    2

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

    Hi there,

    Same problem here, can't do tha patch thing,

    THanks in advance!

  6. #146
    Join Date
    Aug 2009
    Beans
    3

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

    O, yah. I too have this error at371 line %)

    Asus x55sr Ubuntu 9.04 ( 2.6.28-14-generic)
    04f2:b012 Chicony Electronics Co.

  7. #147
    Join Date
    Jun 2007
    Beans
    45

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

    Quote Originally Posted by Grimarr View Post
    O, yah. I too have this error at371 line %)

    Asus x55sr Ubuntu 9.04 ( 2.6.28-14-generic)
    04f2:b012 Chicony Electronics Co.
    Hi,

    I've noticed that you and a few others are still trying to fix this with a kernel patch. As I've explained in a comment in this thread before, that is really not the right way to fix this.

    The correct way to fix this is to let libv4l the v4l format conversion library of which I'm the author, do the flipping. Ubuntu has been shipping this library for 2 releases now, and the new 0.6.0 release has a table with DMI identification strings for many Asus laptop models which are known to have an upside down webcam and will correct this automatically without any kernel patching necessary.

    If you can send me the necessary information for your laptop I'll happily add that to libv4l for the 0.6.1 release, and I'll send you detailed instructions how to get and install the latest libv4l so that you can fix this quick and easy without needing to patch the kernel.

    See this post for what information I need and howto get it:
    http://lists.berlios.de/pipermail/li...ne/004886.html

    Please send this information in a mail to:
    Hans de Goede <jwrdegoede@fedoraproject.org>

    Regards,

    Hans

    p.s.

    Please do not copy and paste the dmidecode output, but use the redirection operator '>' as given as example in the mailinglist post and attach the resulting file to the mail. The dmidecode output may contain trailing whitespace which I need and this whitespace may get lost using copy and paste.

  8. #148
    Join Date
    Aug 2009
    Beans
    3

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

    Quote Originally Posted by HansdeGoede
    Please send this information in a mail to:
    Hans de Goede <jwrdegoede@fedoraproject.org>
    sended.
    ... and nevertheless that with this line №371.? %))
    Last edited by Grimarr; August 10th, 2009 at 08:17 PM.

  9. #149
    Join Date
    Aug 2009
    Beans
    1

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

    Hello, sorry but my english is not very well.

    I've tried to follow the steps, but when I run "make uvcvideo" the computer reports this:

    daniel@daniel-poratil:~/trunk$ sudo make uvcvideo
    Building USB Video Class driver...
    make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.28-14-generic'
    CC [M] /home/daniel/trunk/uvc_driver.o
    CC [M] /home/daniel/trunk/uvc_queue.o
    CC [M] /home/daniel/trunk/uvc_v4l2.o
    /home/daniel/trunk/uvc_v4l2.c: En la función ‘uvc_v4l2_do_ioctl’:
    /home/daniel/trunk/uvc_v4l2.c:986: aviso: se pasa el argumento 1 de ‘v4l_compat_translate_ioctl’ desde un tipo de puntero incompatible
    /home/daniel/trunk/uvc_v4l2.c:986: aviso: el paso del argumento 2 de ‘v4l_compat_translate_ioctl’ crea un entero desde un puntero sin una conversión
    /home/daniel/trunk/uvc_v4l2.c:986: aviso: el paso del argumento 3 de ‘v4l_compat_translate_ioctl’ crea un puntero desde un entero sin una conversión
    /home/daniel/trunk/uvc_v4l2.c:986: error: demasiados argumentos para la función ‘v4l_compat_translate_ioctl’
    make[2]: *** [/home/daniel/trunk/uvc_v4l2.o] Error 1
    make[1]: *** [_module_/home/daniel/trunk] Error 2
    make[1]: se sale del directorio `/usr/src/linux-headers-2.6.28-14-generic'
    make: *** [uvcvideo] Error 2
    daniel@daniel-poratil:~/trunk$
    Any idea about the problem??? thanks

  10. #150
    Join Date
    Aug 2009
    Beans
    3

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

    Maybe, you will be helped by reinstallation v4l and accompanying libraries. At least it has helped me with a similar case of %)
    Last edited by Grimarr; August 12th, 2009 at 03:42 AM.

Page 15 of 28 FirstFirst ... 5131415161725 ... 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
  •