Webcam is not working on skype with Ubuntu 12.04

Welcome to the Skype community. To get started please read our short welcome post. Thanks!
Showing results for 
Search instead for 
Do you mean 
Reply

Webcam is not working on skype with Ubuntu 12.04

I posted a week ago that I had solved the problem by downloading Skype 4.0 for Linux. However it turns out I spoke too soon. The video just freezes in Skype, though it is fine in Cheese, the Ubuntu webcam app. So I'm still high and dry and have to resort to booting Windows, darn it.

 

I am running 64 bit Xubuntu 12.04 on an AMD quadcore system.

trigeek
Casual Adventurer
Kudos: 1
Posts: 9
Registered: 22-10-2011
Message 1 of 13 (21,117 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype'

64 Bit
bash -c 'LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype'


https://help.ubuntu.com/community/Webcam/Troubleshooting

 

Make a launcher and try either of the above.

 

Below may help you.

Copy and paste the line below into the Terminal and press Enter.

sudo gedit /usr/local/bin/skype

This will open your editor with a blank text file, copy and paste the following lines into your blank text file.

Use lines below for x86(32bit)

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype

 

Use lines below for x64(64bit)

#!/bin/bash
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so /usr/bin/skype

Save the file and close it.

Now to make the file executable, copy and paste the following line into Terminal.

sudo chmod a+x /usr/local/bin/skype

Press Enter and close the Terminal, start Skype and webcam works.

Now your webcam is working you can optionally (to improve the quality of your webcam picture), install v4l2ucp(video for linux 2 universal control panel) from the Software Manager.

Type "v4l2ucp" in the search box and then select it.

After installation go to

Menu> Preferences > Video4Linux Control Panel

This will allow you to adjust the Contrast, Gamma, Auto Gain and Sharpness of your video. Simply click "Preview" and adjust the sliders to suit your requirements.

If your webcam has a built-in microphone, to set it to default for use with Skype, go to

Menu> Preferences > Sound

Click on the input tab and select your webcam microphone from the choices listed for input devices.

(Make sure microphone volume is not muted).

As an alternative if the above fix does not work try using the lines below instead.

Use lines below for x86(32bit)

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so /usr/bin/skype

 

Use lines below for x64(64bit)

#!/bin/bash
LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so /usr/bin/skype

Make file executable as above.

Tested on Linux Mint 9(Isadora) 32 and 64 bit, Linux Mint 10(Julia) 32 and 64 bit

Skype 2.1.0.81(Beta) with Logitech E1000 and Genius VideoCAM GE111 webcams


1.1. Skype

This information might be for the old versions of Skype and obsolete in 2010 and later

Go to main menu, System, Preferences, Menus: Applications, Internet, Items: Skype, Properties, and replace the Command with

bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype'

1.1.1. 64-bit

bash -c 'LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype'

If you get an error similar to the following:

ERROR: ld.so: object '/usr/......../v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.

Check the correct path to "v4l1compat.so" on your system: Go to the menu places, "search for files" and search for "v4l1compat.so" Then, substitute the right path into the previous commands as follows:

bash -c 'LD_PRELOAD=/The/Right/Path/v4l2convert.so skype'

If the above doesn't work then try running the command from a terminal and look at the output. If it is complaining about "error unexpected width / height in JPEG headerexpected: 320x240, header: 1600x1200" then try the following

bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'

1.1.2. 64-bit

bash -c 'LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so skype'

If the above even doesn't work then try the following

export XLIB_SKIP_ARGB_VISUALS=1
bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'

1.1.3. 64-bit

export XLIB_SKIP_ARGB_VISUALS=1
bash -c 'LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so /usr/bin/skype'

1.2. A clean start for skype

This can be tidied up by writing a small script in /usr/local/bin called skype that comes higher in the loading sequence that the script of the same name in /usr/bin/. That script is in charge of running skype; the new script loads the correct libraries then hands control to the former script.

In terminal type:

$ sudo gedit /usr/local/bin/skype

and paste the following 2 line code snippet into gedit:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
/usr/bin/skype

save and close. Now back in terminal make it executable

$ sudo chmod a+x /usr/local/bin/skype

Reboot type skype and the web cam just works. This was tested on Lucid with a Logitech Quick Cam Communicator.

https://help.ubuntu.com/community/Webcam/Troubleshooting

moshebagelfress
Casual Adventurer
Kudos: 1
Posts: 8
Registered: 10-07-2012
Message 2 of 13 (21,086 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

Download the Linux Static and then
# gksudo nautilus
enter your password and rename the File System/usr/bin/skype to skype.old
2. Copy the downloaded Skype Static and paste into the /usr/bin folder
3 Close all and check out the video settings in Skype Tools Options, see if all works.
The above is what I did and Logitech Quickcam works OK.
Good Luck.
moshebagelfress
Casual Adventurer
Kudos: 1
Posts: 8
Registered: 10-07-2012
Message 3 of 13 (21,052 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

Hi Moshebagelfress,

 

Thanks for your response. I had previously put the following line into my /usr/share/applications/skype.desktop file:

Exec=bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype "$@"'

That gave me video but it freezes for a few to many seconds then continues, then freezes, then continues. I also tried the line

Exec=bash -c 'LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so /usr/bin/skype'

but get the same results.

I have downloaded v4l2ucp but cannot find it in Menu->Preferences->Sound. I have Pulse Audio Volume control loaded and it gives me a Sound Input tab, where I can see the Webcam. 

 

My problem is not the sound but the video. Why does it freeze and not provide continuous video?

 

You provided a lot of bagels, I mean information and I'm not sure I applied the right changes.

 

I tried gstreamer-properties and the video tested fine. But, with guvcview the video freezes and messages are repeatedly displayed in the terminal, as follows:

Could not grab image (select timeout): Resource temporarily unavailable

 

If I wave my hands in front of the webcam the video unfreezes.

 

What gives?

trigeek
Casual Adventurer
Kudos: 1
Posts: 9
Registered: 22-10-2011
Message 4 of 13 (21,050 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

I tried this too, and get the same result. Video freezes unless I wave my hand near the webcam.
trigeek
Casual Adventurer
Kudos: 1
Posts: 9
Registered: 22-10-2011
Message 5 of 13 (21,046 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

Regarding the video freezing, I too have this and it unfreezes with a head waggle. I hope my head won't drop off one day :tongue:. But really I have a feeling that Microsoft Linux Skype's server must be on the moon due to time lagging. This is really what I think the Video freeze is. My dsl is 10 Megabit which really is enough for Skype calls. Skype Windows server must be nearby as there's no lagging/freezing.

 

Yes I do I like Bakels especially with Lox (Smoke Salmon) and Cream Cheese.

 

Moshe

moshebagelfress
Casual Adventurer
Kudos: 1
Posts: 8
Registered: 10-07-2012
Message 6 of 13 (20,731 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

Thanks, but that does not give me much comfort. I just read on askubuntu.com that Skype doesn't care about providing a 64 bit version for Ubuntu. 

trigeek
Casual Adventurer
Kudos: 1
Posts: 9
Registered: 22-10-2011
Message 7 of 13 (20,721 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

I have concluded all my frustration by buying a Logitech C310 webcam and the video works OOB. Audio needs to be set up in the Ubuntu Pulse Audio Volume Control. The webcam needs to be set up in the Input devices tab and the Configuration tab. Then you're GTG (good to go).

trigeek
Casual Adventurer
Kudos: 1
Posts: 9
Registered: 22-10-2011
Message 8 of 13 (19,192 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

Yes in choosing a linux distro I had to think twice what might work with Skype and what not. Sound was a problem also that I managed to overcome and I chose Ultimate Edition 3.4 which more than less took care of sound. I had a problem of the front mike not being recognised and the sound being tinny with the Logitech Quickcam built in webcam mike. Fortunately I managed to sort this out. Pulse with Skype works OK. I did think like a lot of people that ALSA was the answer, but the jury is still out on that one. 

 

From all this I learnt that sorting out sound monkey business can be a worse problem than video freezing.

 

I had a thought that some of the freezing video could be due to the sensativity of white light. These webcams all have auto exposure, and the linux versions may be prone to a white or overbright background. In Windows XP white out is also a problem and I mounted an NDX gray camera lens filter on a clothes peg clip mount which I swivel in front of the webcam in over bright light. This cuts down the glare drastically and the picture is sharp. 

Moshe

moshebagelfress
Casual Adventurer
Kudos: 1
Posts: 8
Registered: 10-07-2012
Message 9 of 13 (19,134 Views)

Re: Webcam is not working on skype with Ubuntu 12.04

my webcam is not working on skype with ubuntu 12.04

s699540225
Novel Tourist
Kudos: 0
Posts: 1
Registered: 20-06-2014
Message 10 of 13 (2,199 Views)
Reply

© 2014 Skype and/or Microsoft. The Skype name, associated trade marks and logos and the "S" logo are trade marks of Skype or related entities. Use of this website constitutes acceptance of the Terms of Use and Privacy and Cookie policy.

No emergency calls with Skype
Skype is not a replacement for your telephone and can't be used for emergency calling