Every time I upgrade my favorite Linux distro. I end up without Skype video support. Every time!!! It’s unbelievable. Why can’t Skype make an app that provides out-of-the-box video support for Kubuntu.
Anyway, because I keep forgetting how to get my webcam to work with Skype on Linux, I thought I’d write about it here so I always have a reference and so you can benefit from my forgetfulness.
Install a few libraries and applications
Open Konsole or some other terminal then copy and paste these commands
|
1 2 |
sudo apt-get build-dep v4lutils v4l-utils v4l2ucp cheese libwebcam0 sudo apt-get install v4l-utils v4l2ucp cheese libwebcam0 |
Download Skype
Get Skype from Skype:
http://www.skype.com/intl/en-us/get-skype/on-your-computer/linux/
Then install Skype.
Now for the playful part
Edit the file that loads Skype. I use Kate to do most of my file editing. If you use gedit or vim or another file editor, change ‘kate’ in the following command to the name of your favorite text editor.
Copy and paste this into Konsole
|
1 |
kdesudo kate /usr/local/bin/skype |
Put the following lines into the file that opens up
|
1 2 |
#!/bin/bash LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so /usr/bin/skype |
Pay attention to the second line where it reads /usr/lib/i386-linux-gnu/libv4l/v4l2convert.so. You might need to replace that section.
Save the file.
Make the file executable by copying and pasting this into Konsole
|
1 |
sudo chmod a+x /usr/local/bin/skype |
Now test Skype loads without errors. Type skype (all lowercase) into Konsole and check whether it spits out an error message similar to
|
1 |
ERROR: ld.so: object '/usr/lib/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored. |
If it doesn’t throw an error, it means you have referenced the correct v4l2convert.so file and Skype webcam video should now work in your Linux distro. If it does show the error message then you need to locate the correct v4l2convert.so file.
Finding the location of v4l2convert.so
You only need to do this if running Skype shows an error as detailed above here. This required some trial and error testing.
Type this into Konsole
|
1 |
locate v4l2convert.so |
You should see a few locations listed.
Reopen the file you just edited. Open a new Konsole (keep the first console open):
|
1 |
kdesudo kate /usr/local/bin/skype |
You will see a result similar to this:
In the file at /usr/local/bin/skype, replace the section of the second line that reads /usr/lib/i386-linux-gnu/libv4l/v4l2convert.so with the first location shown in Konsole for v4l2convert.so when you typed ‘locate v4l2convert.so’ into Konsole in the first step above. Save the file then test run Skype again (you must quite Skype then restart it between tests).
If error shows again, try the next location then test Skype again. Eventually you will find the correct version of v4l2convert.so needed for Skype video to work.
Assuming everything works right and the error no longer shows when you run Skype by typing ‘skype’ in Konsole….
Test Skype video
With Skype open, click the blue Skype symbol at the bottom of the Skype window, select options then select Video Devices. Make sure “Enable Video” is ticked and double check your webcam is connected then click “Test”. You should see a picture of yourself in the test screen.
Congratulations! You now have working Skype video on your Linux computer.
Configuring Linux video settings
Video 4 Linux lets us control webcam settings like brightness, contrast, gain and horizontal flipping. Open a terminal and start Video4Linux with
|
1 |
v4l2ucp |
Configure the previewer by clicking the Preview tab then entering cheese (all lowercase) where it says “Application to use”, then save the settings and select Preview > Preview from the menu bar. Now you can configure the webcam settings with a realtime updated visual.
No sound! No mic!
This is another common fault with Skype for Linux. Type aumix or alsamixer into a terminal to open the system sound settings. Make sure the mic is not muted. When Skype is active during a call, open kmix and adjust the volume level for the Skype capture stream as well as the mic and the webcam (if it has a built in mic).
Also, be sure to check you are using the correct sound card. Press F6 to change it if needed.




Leave a Reply
10 Comments on "Is Skype + Video + Linux Always a Hassle?"
I know this post is kinda old, but I was pulling my hair out trying to get my webcam to work in linux. Your instructions worked! WTF? Why on earth do we have to go through these contortions just to get our webcams to work with skype. Whatever – tyvm for this, I don’t know how I would have got it to work otherwise….
Thanks. Was wondering whether I might need to update the instructions. In some ways I’m glad to know I don’t need to update them; in other ways I wish I was updating them to say “Find Skype in the package manager and click install.” I do wish Skype would get its act together.
Who are using Ubuntu 12.04 could change
kdesudo kate /usr/local/bin/skype
by
gksu gedit /usr/local/bin/skype
Hello,
in 12.10 /usr/local/bin/skype is an executable file. Do you know where I can find the correct file?
Thanks for all
That’s correct. It is an executable file. It’s supposed to be.
Sorry, maybe I didn’t understood.
Now I’ve a second problem: I don’t know what I’ve to do when you said:
One-by-one, replace the section that reads/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so with one of the locations shown forv4l2convert.so then save the file. Copy and paste the whole line over the section being replaced i.e from /usr/…. to …./v4l2convert.so.
Regards
I see where the confusion has come in. I will edit the guide in a few minutes. What I mean is this: if you locate more than one file called v4l2convert.so, edit the line “LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so /usr/bin/skype” by replacing “/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so” with each location you find. Try one location, save the file, start Skype, test for video. If video does not work, try the next location, save the file, test Skype…. on so on.
I just added one line without removing the original one and it works great.
Mine is like this on mageia 3.
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so /usr/share/skype/skype
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/share/skype/skype
Regards
Hi, this works because the second line is given preference over the first line.
I finally got my Logitech video working in Debian Wheezy thanks to the
advice above! Thank you – I will cook a good espresso