Loading

Is Skype + Video + Linux Always a Hassle?

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

sudo apt-get build-dep v4lutils v4l-utils v4l2ucp cheese libwebcam0
sudo apt-get install v4l-utils v4l2ucp cheese libwebcam0

Install the Dependencies Needed by the Video Libriaries Needed for Skype Video in LinuxInstall the Video Libriaries Needed for Skype Video in Linux

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

kdesudo kate /usr/local/bin/skype

Put the following lines into the file that opens up

#!/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.

Editing Skype bin File

Save the file.

Make the file executable by copying and pasting this into Konsole

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

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

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):

kdesudo kate /usr/local/bin/skype

You will see a result similar to this:

Locate v4l2convert.so in Linux

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.

Test Skype Video for Linux - Skype Options.

Test Skype Video for Linux - Setting Skype Video Options

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

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.

Configuring Linux Video Settings with Video4Linux

Configuring Linux Video Settings with Video4Linux

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.

Using Alsamixer


Comments

  1. 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.

  2. rcbdesigner says:

    Who are using Ubuntu 12.04 could change
    kdesudo kate /usr/local/bin/skype
    by
    gksu gedit /usr/local/bin/skype

  3. 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.

Leave a Reply

All original content on these pages is fingerprinted and certified by Digiprove
How To Make Free Mobile Web Apps
HowTo: Add New Menus to Genesis Themes