[Solved] Webcam output is upside down

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

[Solved] Webcam output is upside down

Postby A30N on Sat Sep 19, 2009 8:40 am

So I'm having this little problem with my webcam. It's upside down! (both in Cheese and in Skype)

My laptop is a Lenovo Y510 with a built-in Lenovo Easy Camera.

lsusb output:
Bus 002 Device 002: ID 5986:0200 Acer, Inc

dmesg | grep uvc output:
uvcvideo: Found UVC 1.00 device Lenovo Easy Camera (5986:0200)
[ 10.165211] usbcore: registered new interface driver uvcvideo
[13787.025162] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[13920.412296] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[15159.320465] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[15490.503127] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[15614.799142] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96055.230731] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96060.070347] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96082.648727] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96091.538224] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96102.181354] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96115.527173] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[96265.023365] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[100973.652848] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[101921.289348] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.
[101928.533347] uvcvideo: device Lenovo Easy Camera requested null bandwidth, defaulting to lowest.

modinfo uvcvideo output:
filename: /lib/modules/2.6.28-11-generic/kernel/drivers/media/video/uvc/uvcvideo.ko
version: v0.1.0
license: GPL
description: USB Video Class driver
author: Laurent Pinchart <laurent.pinchart@skynet.be>
srcversion: F6FE641F5413EC1A6EA9193

I tried patching the driver via this tutorial http://ubuntuforums.org/showthread.php?t=838210 but I got an "Error 2" when I went to make the file, probably because the patch was made for an ubuntu install.

Is there anyway to create a .conf file in etc/modprobe.d that will add the option "vflip=1" to uvcvideo? Thanks for any help in this dreary dismal matter! :D
Last edited by A30N on Thu Sep 24, 2009 5:00 pm, edited 2 times in total.
User avatar
A30N
Level 1
Level 1
 
Posts: 4
Joined: Thu Sep 17, 2009 10:27 pm

Linux Mint is funded by ads and donations.
 

Re: Webcam output is upside down

Postby Aging Technogeek on Sun Sep 20, 2009 9:00 am

Have you checked Cheese Special Effects to see if "Vertical Flip" is enabled? I know it's basic, but sometimes the basic, obvious answer works.
Image

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: Webcam output is upside down

Postby A30N on Sun Sep 20, 2009 12:49 pm

Aging Technogeek wrote:Have you checked Cheese Special Effects to see if "Vertical Flip" is enabled? I know it's basic, but sometimes the basic, obvious answer works.


Thanks for replying, I thought this post was long buried in the sea of hardware support requests. :D

As for flipping the stream in Cheese, I did, I even tried flipping it and re-opening skype, but skype still outputs the upside-down version. If only skype could software flip the stream like cheese, I wouldn't be tearing my hair out. I have Windows 7 installed on one laptop, and Mint 7 on my other, and I would like to be able to show people that anything they do in Windows can be done just as well if not better in Linux...

I just started a Linux Workstation course, so I am sure I will be able to figure out things on my own after we complete the chapters on building and patching drivers, but that's 8 weeks away and I can't wait that long, lol.

My To-Do list for the Lenovo Y510:

Get all 5 speakers working: Done!
Flip the webcam stream: Done!
Fix the hibernate issue: In Progress
Last edited by A30N on Thu Sep 24, 2009 5:00 pm, edited 1 time in total.
User avatar
A30N
Level 1
Level 1
 
Posts: 4
Joined: Thu Sep 17, 2009 10:27 pm

Re: Webcam output is upside down

Postby DrHu on Sun Sep 20, 2009 6:05 pm

http://ubuntuforums.org/archive/index.php/t-687663.html
--sound and other issues..
http://ubuntuforums.org/showthread.php?t=870681&page=2
upside down image in webcam
Code: Select all
modprobe xxxx_driver_name_xxx invert=1
User avatar
DrHu
Level 16
Level 16
 
Posts: 6615
Joined: Wed Jun 17, 2009 8:20 pm

Re: Webcam output is upside down

Postby A30N on Thu Sep 24, 2009 6:29 am

After reading 52 pages of ubuntu posts and trying everything suggested, I was still at square one. However, a lucky google search led me to the page http://hansdegoede.livejournal.com/8262.html, where it appears that the newly released libv4l 0.6.1 addresses my issue. I found the repository for it, and added it to Synaptic. Then, refreshed, and updated to the latest version. One reboot later and my video is right-side up!!! :D :D :D

Here are the steps to fix this issue, until the gloria repositories are updated with the new libv41 0.6.1:

Goto Start > Package manager > enter root password

Click Settings > Repositories > New

URI: http://ppa.launchpad.net/libv4l/ppa/ubuntu
Distribution: jaunty
Section: main

Click OK > then in the main window click Reload

In the search box, type libv4l, right-click on libv4l-0, select "Mark for upgrade" and click Apply

Reboot your computer and enjoy right-side up video!
User avatar
A30N
Level 1
Level 1
 
Posts: 4
Joined: Thu Sep 17, 2009 10:27 pm

Re: [Solved] Webcam output is upside down

Postby ipernar on Sun Jan 10, 2010 6:55 am

Seems easy but doesn't work 4 me... i really dnt know what to do...
"Chicks come and go but you will always have your PS3. "
User avatar
ipernar
Level 2
Level 2
 
Posts: 91
Joined: Fri Nov 20, 2009 1:08 pm
Location: Zagreb Croatia

Re: [Solved] Webcam output is upside down

Postby j0eh4x on Tue Feb 02, 2010 3:47 pm

after updating v4l you need to add this to your launcher "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so"
Example
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so app_name
j0eh4x
Level 1
Level 1
 
Posts: 33
Joined: Sun Jan 31, 2010 11:15 pm

Re: [Solved] Webcam output is upside down

Postby llmunro on Wed Mar 10, 2010 8:27 pm

Hi,

Sorry to ask such a basic question, but I'm quite new to Mint and trying to figure out how to fix the upside-down web cam problem. I thought I'd try the suggestion made by A30N, but I am a bit confused. I open the password manager, type my password, go to settings> repositories....but here I don't see "new" or anywhere to type the url. Opening up repositories gives me a box with some options (tabs with LinuxMint software, Other Software, and Authentication), but none of the options described.

Am I just looking in the wrong place?

Many thanks for any ideas or suggestions.

Best,
Lisa
llmunro
Level 2
Level 2
 
Posts: 74
Joined: Thu Feb 11, 2010 9:36 pm

Re: [Solved] Webcam output is upside down

Postby carloseap on Wed Apr 07, 2010 6:16 pm

Hello, Lisa,

I am also new to Linux Mint and I was able to install the libraries by doing the following:

Went to update manager (the small icon of a lock that usually sits at the bottom right of your screen)
Select Edit - Software sources
Make sure the last 3 options are checked (backported packages, unstable packages and source code)
update manager will tell you that the package information is not up to date so click on the reload button.
close update manager and open package manager
on the search box type libv4. You will now find the libv4 libraries are listed there.
I don't know if I did the right thing, but I right click the libv4l-0 and libv4l-dev libraries and selected "mark for reinstallation" (since the "mark for upgrade option was grayed out). I use the 64 bit version of Linux Mint. I see there are other libraries there that are called lib32v4l-0 and lib324l-dev (I imagine they are for the 32 bit version).
After the libraries have been reinstalled, reboot your system and you will find that the camera is not upside down anymore.

Afterwards I believe you should again open the update manager and uncheck the software sources you previously checked so that you don't update those packages.

There should be an easier way to update libraries, but in the meantime this worked for me, so don't laugh at my stupid solution. :) I said I am completely new to Linux Mint, and so far I love it! I dual boot Mint and Windows 7 on my laptop, the two best OS's out there at this moment

Hope this helped someone!

PS: Sorry about my English, it's not my native language.
carloseap
Level 1
Level 1
 
Posts: 2
Joined: Wed Apr 07, 2010 5:53 pm

Re: [Solved] Webcam output is upside down

Postby llmunro on Sat May 01, 2010 1:22 am

Hi carloseap,

I tried what you advised, but no luck! :(

Thank you very much!
Lisa

P.S. No sé si español es su idioma nativo, pero yo digo q escribe bien el inglés! Saludos! :)
llmunro
Level 2
Level 2
 
Posts: 74
Joined: Thu Feb 11, 2010 9:36 pm

Re: [Solved] Webcam output is upside down

Postby carloseap on Fri Jun 25, 2010 6:24 pm

Hi Lisa,

Sorry for not getting back to you before, and thanks for your comments :) Yes, Spanish is my native language.

Anyway, the webcam upside down issue has been corrected in version 9, which is awesome!

Cheers!

Carlos
carloseap
Level 1
Level 1
 
Posts: 2
Joined: Wed Apr 07, 2010 5:53 pm

Re: [Solved] Webcam output is upside down

Postby ibm450 on Thu Jul 01, 2010 5:45 am

ok tried all of the methods and no luck for me

when i start recording the frames freeze and have do a force exit on cheese. :roll:

heres the output of my specs.


Code: Select all
tolga@tolga ~ $ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 0b05:1751 ASUSTek Computer, Inc.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 045e:00f6 Microsoft Corp.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
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
Bus 002 Device 006: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 002 Device 005: ID 04f2:b036 Chicony Electronics Co., Ltd
Bus 002 Device 002: ID 0718:1900 Imation Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1199:6880 Sierra Wireless, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
tolga@tolga ~ $ dmesg | grep uvc
[   16.085535] uvcvideo: Found UVC 1.00 device USB2.0 0.3M UVC WebCam (04f2:b036)
[   16.089206] usbcore: registered new interface driver uvcvideo
tolga@tolga ~ $
Image
Asus UL50VT laptop ~ LM10 - Unity 12.04 - Win 7
Image
User avatar
ibm450
Level 5
Level 5
 
Posts: 604
Joined: Sun Jan 11, 2009 6:56 am
Location: Kwinana, Western Australia

Re: [Solved] Webcam output is upside down

Postby Enna on Sun Sep 12, 2010 7:38 am

carloseap wrote:
Anyway, the web cam upside down issue has been corrected in version 9, which is awesome!

Cheers!

Carlos


Well, I have Mint 9 and I still have the problem that my web cam is upside down; could someone please tell me, what I need to do?
Cheese, Skype and other web cam programs all show the picture upside-down... and I tried everything that was recommended on the other threads to solve this problem, but nothing worked, in fact my whole system crushed and I had to reinstall Isadora....

Help will be much appreciated!

Thanks!
Enna

PS: I'm using an ASUS K70AD
Linux Mint 15 Olivia / 64-bit / Cinnamon
User avatar
Enna
Level 2
Level 2
 
Posts: 96
Joined: Sun Sep 12, 2010 1:34 am

Re: [Solved] Webcam output is upside down

Postby ibm450 on Sun Sep 19, 2010 10:16 am

mine also seems to freeze (system) when i start to record, the recording fails as it freezes on the frame rates and play back of recorded clips ae extremely laggy and absolutely hopeless - its like trying to stream via dialup
Image
Asus UL50VT laptop ~ LM10 - Unity 12.04 - Win 7
Image
User avatar
ibm450
Level 5
Level 5
 
Posts: 604
Joined: Sun Jan 11, 2009 6:56 am
Location: Kwinana, Western Australia

Re: [Solved] Webcam output is upside down

Postby Enna on Fri Oct 29, 2010 10:37 pm

This worked for me with the latest Ubuntu version on ASUS K20:

Upside Down Web Cam Simple Fix

Many laptop put their webcam upside down resulting in flipped images in Ubuntu. There were fixes for some but for some you had to physically remount the camera. The webcam that comes with Lenovo Ideapad Y510 is also mounted upside down. Unluckily there wasn't any simple fix for this. (some people rotated the camera physically).

Fortunately Hans de Goede came with a beautiful solution.

Open Terminal and add libv4l ppa

sudo add-apt-repository ppa:libv4l/ppa


Update your software list

sudo aptitude update

Install libv4l

sudo aptitude install libv4l-0


You have to use the following command to open any application that uses webcam

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so application_name


If you use 64 bit system, use the following command

LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so application_name


For example:

LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype


See also: http://techspalace.blogspot.com/2010/02/upside-down-web-cam-simple-fix.html

Good luck,
Enna
Linux Mint 15 Olivia / 64-bit / Cinnamon
User avatar
Enna
Level 2
Level 2
 
Posts: 96
Joined: Sun Sep 12, 2010 1:34 am

Re: [Solved] Webcam output is upside down

Postby ibm450 on Sat Oct 30, 2010 7:43 am

thanks so MUCH...yeppie it upright. but cheese freezes the moment i start recording....

also the video is upside down in skype....lol.....is there a solution
webcam = usb2 0.3 uvc webcam


edit:
[solved] followed the above post and did LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype and web cam is upright. but i shouldnt be doing this all the time....no way a selling point for people wanting to try linux in general...
Image
Asus UL50VT laptop ~ LM10 - Unity 12.04 - Win 7
Image
User avatar
ibm450
Level 5
Level 5
 
Posts: 604
Joined: Sun Jan 11, 2009 6:56 am
Location: Kwinana, Western Australia

Re: [Solved] Webcam output is upside down

Postby Enna on Thu Nov 04, 2010 7:18 pm

I did this: http://forums.linuxmint.com/viewtopic.php?f=18&t=57768 -> sixth post
Is there any way to set it up so that I don't have to run that command every time I want to launch Skype? Having done it once and had it work fine, it reverts to being upside-down when I launch Skype as normal, which is highly inconvenient. Help?

Enna

PS: My webcam: Chicony Electronics Co. Ltd. 2.0 M UVC webcam, computer model: ASUS K70AD
Linux Mint 15 Olivia / 64-bit / Cinnamon
User avatar
Enna
Level 2
Level 2
 
Posts: 96
Joined: Sun Sep 12, 2010 1:34 am

Re: [Solved] Webcam output is upside down

Postby Enna on Thu Nov 04, 2010 7:47 pm

Maybe part of the solution (quoted from http://ubuntuforums.org/showthread.php?t=870681&page=2):

Hum..... Well the script could look like this...

#!/bin/bash

modprobe xxxx_driver_name_xxx invert=1

In KDE there is a Autostart folder, I don't know about Gnome I bet there is. The other way of makeing it run at startup is puting it in your startup daemons. I have that "alsascript" run at startup by puting it in my daemons. I have my script to turn the brightness up in my Autostart folder in KDE because KDE starting is what turns down the brightness.
....
Anyway back to the web cam fix.... To put it in the daemons you need to... I don't know terditional Linux setup... But in BSD an Archlinux you put the script in /etc/rc.d folder and then add the name to the deamons array in /etc/rc.conf... Dose any one know what folder you list stuff to start in normal Linux???

If that dosn't work i.e. Gnome starting is what is messing it up. Then you have to put it in the Autostart folder..... Owe hay I found a grate Wiki on the Gentoo sight here is a link...

http://gentoo-wiki.com/HOWTO_Autostart_Programs

If you need root privleges to use Modeprobe then you have to give your user the ability to exicute the "webcamscript" with no password. You do this by adding this line to the sudoers file (to edit the sudoers file just type... sudo visudo)

# Same thing without a password
# %groupname ALL=(ALL) NOPASSWD: ALL
username ALL=(root) NOPASSWD: path/to/script/webcamscript

Then you have to write at new script to put into the auto start folder...

#!/bin/bash

sudo webcamscript


Check out how I did my Backlight bright on startup Workaround and I guess in is EZ to do it in Gnome to so you don't have to turn it up by hand every time you strat your computer...

http://ubuntuforums.org/showthread.p...deapad&page=19


This is just way to confusing to me - can someone please tell me in simple language and in an organised way, what I need to do step by step to add a script to autostart? Only if that is the right way to do it anyway...

Thanks,
Enna
Linux Mint 15 Olivia / 64-bit / Cinnamon
User avatar
Enna
Level 2
Level 2
 
Posts: 96
Joined: Sun Sep 12, 2010 1:34 am

Re: [Solved] Webcam output is upside down

Postby ibm450 on Fri Nov 05, 2010 9:38 am

This is just way to confusing to me - can someone please tell me in simple language and in an organised way, what I need to do step by step to add a script to autostart? Only if that is the right way to do it anyway...

Thanks,
Enna


i tried this in linux mint 10

in terminal mode
Code: Select all
sudo add-apt-repository ppa:libv4l
sudo aptitude update && sudo aptitude install gtk-v4l libv4l-0


go to package manager and install
Code: Select all
v4l2ucp


If mint 32bit, do:
Code: Select all
sudo su
echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib/libv4l/v4l1compat.so $1\nexit 0' > /bin/webcamWrapper
chmod +x /bin/webcamWrapper
exit


If mint 32bit, while in terminal:
Code: Select all
webcamWrapper skype
webcamWrapper amsn


or if that dosnt work, try this in terminal instead
Code: Select all
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype


If mint 64bit, do:
Code: Select all
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 mint 64bit, while in terminal:
Code: Select all
webcamWrapper32 skype
webcamWrapper amsn


or if that dosnt work, try this in terminal
Code: Select all
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype


i found that the only time the image would be upright was by running the following in terminal
Code: Select all
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype


its a real inconvient way to run it, so what i do is type
Code: Select all
history


and then place a ! in front of the number the preload command is listed on, e.g, when i run history i would get say
Code: Select all
1 dir
2 LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
3 etc etc etc etc


so by entering
Code: Select all
!2


will run the preload command. hope this helps.
Image
Asus UL50VT laptop ~ LM10 - Unity 12.04 - Win 7
Image
User avatar
ibm450
Level 5
Level 5
 
Posts: 604
Joined: Sun Jan 11, 2009 6:56 am
Location: Kwinana, Western Australia

Re: [Solved] Webcam output is upside down

Postby Enna on Fri Nov 05, 2010 10:38 pm

ibm450! Yes, that helps and works in Mint 9 as well; so everytime I want to use Skype, I have to open terminal and type eg. "!2", right? Otherwise my webcam shows an upside down picture in Skype.
Thank you very much! :D


... now it's only the microphone I need to fix ... btw, will all these complications just vanish once Skype has a 64bit version for my 64bit computer?

Cheers!
Enna
Linux Mint 15 Olivia / 64-bit / Cinnamon
User avatar
Enna
Level 2
Level 2
 
Posts: 96
Joined: Sun Sep 12, 2010 1:34 am

Linux Mint is funded by ads and donations.
 
Next

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 7 guests