Webcam image upside down: help needed

Some days ago I tried some software to shot images from my webcam integrated in laptop Asus X52F.
Now, when I try to use Google Hangouts to make videochats (I use it mainly to conversate with my family) , I get images upside down.
Uninstalling software didn’t help to restore the previous situation, I’ve tried to search Google for a solution to this issue but I’ve found them only for Ubuntu, not for OpenSuSE 13.1.
What’s going wrong with drivers? Even with v4l2cp I can’t get the function “Flip image vertically” to work.

emanuele@Asus-X52F:~> lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 13d3:5130 IMC Networks 
Bus 002 Device 003: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 002 Device 004: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 002 Device 005: ID 046a:0023 Cherry GmbH CyMotion Master Linux Keyboard G230
emanuele@Asus-X52F:~> lsusb -d 13d3:5130 -v | grep "14 Video"
Couldn't open device, some information will be missing
      bFunctionClass         14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video
      bInterfaceClass        14 Video

Excerpt from output of

emanuele@Asus-X52F:~> usb-devices

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=13d3 ProdID=5130 Rev=12.11
S:  Manufacturer=Sonix Technology Co., Ltd.                                                                                                                                        
S:  Product=USB 2.0 Camera                                                                                                                                                         
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA                                                                                                                                             
I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo

Ain’t there really anyone able to help me restore the previous situation?
Is there a sort of configuration file that maybe was modified by one of these programs?
I can’t believe I can’t find anybody able to help me.

Maybe no one who could help read this thread yet? I’ve never experienced this problem, but a quick search online turned up

https://forums.opensuse.org/showthread.php/451313-Upside-down-cam-image-Asus-P52F-openSUSE-11-3

In particular, see if posts #10 and #11 are helpful.

Thank you, I’m gonna try this solution.

Works with openSUSE 13.1 out of the box:

Bus 002 Device 002: ID 13d3:5130 IMC Networks

What kernel is working?

uname -a
Linux linux64 3.11.10-17-desktop #1 SMP PREEMPT Mon Jun 16 15:28:13 UTC 2014 (fba7c1f) x86_64 x86_64 x86_64 GNU/Linux

Does it work with qv4l2 or luvcview?

I think this Problem was at least under openSUSE 12.1.

Forgotten.

Please post:

zypper se -si v4l
Asus-X52F:~> uname -a
Linux Asus-X52F.wks 3.11.10-17-desktop #1 SMP PREEMPT Mon Jun 16 15:28:13 UTC 2014 (fba7c1f) x86_64 x86_64 x86_64 GNU/Linux
Asus-X52F:~> zypper se -si v4l
Repository 'google-chrome' ist veraltet. Sie können 'zypper refresh' als root ausführen, um es zu aktualisieren.
Daten des Repositories laden ...
Installierte Pakete lesen ...


S | Name                 | Typ   | Version               | Arch   | Repository       
--+----------------------+-------+-----------------------+--------+------------------
i | libv4l               | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | libv4l1-0            | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | libv4l1-0-32bit      | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | libv4l2-0            | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | libv4l2-0-32bit      | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | libv4lconvert0       | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | libv4lconvert0-32bit | Paket | 0.8.9-5.1.3           | x86_64 | openSUSE-13.1-Oss
i | v4l2ucp              | Paket | 2.0.2_git20100530-8.1 | x86_64 | (Systempakete)

Does it work with qv4l2 or luvcview?

You have to install them and then see, if they were working.

There is also this thread which references similar (same ? ) webcam : https://forums.opensuse.org/showthread.php/498274-ASUS-S56C-Webcam-openSuse-13-1? … I suspect a kernel update solved that user’s problem, but the user did not answer my question, when I asked what they updated.

Another question - are you confident that vl2ucp is not causing the problem ?

Assuming you have the latest kernel packaged for openSUSE ( 3.11.10-17-desktop ) , then you could try reforcing a re-install of all those v4l apps , in case one was corrupted during the install. If you don’t have the latest 3.11.10-17-desktop kernel, then I recommend you update to that. Note if you are using proprietary drivers with any hardware device, a kernel update could break the functionality of any proprietary drivers.

Another question - are you confident that vl2ucp is not causing the problem ?

That could be the Problem, i have not installed such a Program and my Webcam is working with qv4l or luvcview.

S | Name                 | Typ   | Version     | Arch   | Repository       
--+----------------------+-------+-------------+--------+------------------
i | libv4l               | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4l-32bit         | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4l1-0            | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4l1-0-32bit      | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4l2-0            | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4l2-0-32bit      | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4lconvert0       | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | libv4lconvert0-32bit | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | qv4l2                | Paket | 0.8.9-5.1.3 | x86_64 | openSUSE-13.1-Oss
i | v4l-conf             | Paket | 3.103-3.1.4 | x86_64 | openSUSE-13.1-Oss
i | v4l-tools            | Paket | 3.103-3.1.4 | x86_64 | openSUSE-13.1-Oss

When I saw this thread, my first reaction was that I’ve seen a setting for flipping/inverting the screen in xrandr, but that flips the entire screen. I assume you are viewing your webcam in a window?

Don’t overlook the simplest possible solution, if the cam can be turned upside down, just do that… :slight_smile:
Along the same line, if it’s one of those spherical mounts without a clear up/down that might be the issue… your cam may be physically upside down.

Sometimes the webcam software can flip the display, too.
Seems to me I’ve seen that setting in Skype…

HTH,
TSU

Further to this , again, I recommend you update your openSUSE kernel to the latest packaged version ( 3.11.10-17-desktop ) and also force a re-install of all the v4l apps.

Similar to openSUSE, I know that other GNU/Linux distros can have a problem with webcam images upside down, and back in late year-2009 a libv4l developer by the name Hans de Goede if advised of the problem by e-mail would add ones webcam id to a special list to flip upside down automatically the webcam. Given that others with the same web cam ID are not having your problem, I am not convinced thou that is the solution for your. Rather I suspect a kernel update and a v4l forced re-install should do the trick. But if you wish to see if the Hans de Goede email approach still works (and that was ~5 years ago ! ) then you can read up on that on this thread: http://radu.cotescu.com/flipped-images-ubuntu-webcam/

The Problem with this webcam was up to openSUSE 11.4 or 12.1, I resolved it by building uvcvideo from a scr Packet build by malcolmlewis.
https://forums.opensuse.org/showthread.php/462740-Webcam-Inverted-image-on-Eee-PC

After openSUSE 12.1 or 12.2 the webcam was working fine, no Problem with upside down, no more buliding the uvcviedo-Module by myself.

Does q4vl or luvcview works with the webcam?

No need to carry on, I finally restored a previous system backup.

Only because I have the exact same laptop and problem with Skype do I carry this thread forward…

From the other thread, I got the video turned right-side-up by installing libv4l-32bit and using the following command:

export LIBV4LCONTROL_FLAGS=2 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

However, I ran across this in my searches:

NOTE: Not advisable to do “export LIBV4LCONTROL_FLAGS=3”, LIBV4LCONTROL_FLAGS is for debugging purposes only. - by Hans De Goede(libv4l author and maintainer)
http://www.paullabis.com/2010/08/fix-upside-down-or-inverted-webcam-on.html

I don’t use Skype anymore, but Google Hangouts.
And I’m experiencing something absurd. Like correct image only when I use Firefox. With other browsers (like Chrome or Opera) I get my picture upside down.
Why? How is it possible I get picture vertically flipped with a browser and not with the other ones?