3

I am using Google Chrome 39.0.2171.71 (64-bit) on 64-bit Ubuntu 14.04. My laptop is ASUS A52F.

The problem is that by default the webcam video is inverted everywhere (Skype, Hangouts). When launching Skype with

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype &

the Skype video gets corrected.

However, I can't make this work for Google Hangouts. I have tried this solution but I don't have the GoogleTalkPlugin in the mentioned path. How can I fix the Hangouts video or all the videos in general?

gevra
  • 265

2 Answers2

0

Regarding fixing inverted/flipped laptop webcam video in Chrome/Chromium based browsers - V4L1 will not work with Chrome. V4L2 is needed for WebRTC video.

A few days ago I updated ASUS P52F laptop to Linux Mint 18 XFCE that is on par with Ubuntu 16.04.1 now. I faced "upside down" webcam video on hangouts and facebook using Chrome web browser only. Firefox works fine. Cheese also displays video properly.

After some googling I found this bug report. In the comment 22 you can see that 2 years ago there was a 0001-Use-libv4l2-for-Linux-V4L-grabber.patch proposed that fixes Chrome/Chromium behavior. For more then a year now libv4l2 is added to Chromium, but is not enabled for Linux. You can see the whole discussion in the bug report thread. Long story short it looks like they are not actively working on fixing this for almost a year now. However, there is some ugly workaround...

You can add Flip this extension to Chrome. It allows you to flip your webcam video or any other element of a webpage. It will flip it only locally, so people who you talk to via Chrome also need to use the same trick. It's not pretty, but it's working... well, kind of ; )

After all switching to Firefox may be a better and more comfortable solution as it looks like webcam video can't be permanently flipped "upside down" with Chrome until Google fix their Linux version. Firefox worked for me in LM18 without any additional hassle. I hope it will work for you as well.

0

PS. If you still experience "upside down" video, even in Firefox, then the solution with GoogleTalkPlugin should work. You need to install it first (only Firefox still uses this plugin, Chrome has already switched to WebRTC video standard - no plugins needed there):

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /opt/google/talkplugin/GoogleTalkPlugin & firefox

Also check out this newer thread with more examples on how to use LD_PRELOAD in Ubuntu 16.04 and derivatives. Hope this helps. Cheers!