24 Aug 2011

Webcam doesn't work in Skype, but works in Cheese

If your video camera doesn't work in Skype on Ubuntu, but it works in other applications (like Cheese), just run the following script:


sudo echo '#!/bin/bash' > /usr/local/bin/skype
sudo echo "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype" >> /usr/local/bin/skype
sudo chmod ogu+x /usr/local/bin/skype


If you're running 64-bit Ubuntu, the path is somewhat different:


sudo echo '#!/bin/bash' > /usr/local/bin/skype
sudo echo "LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so /usr/bin/skype" >> /usr/local/bin/skype
sudo chmod ogu+x /usr/local/bin/skype