LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2014, 05:53 AM   #1
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Rep: Reputation: Disabled
webcam not recognized: debian wheezy + skype


Hi,

I've installed wheezy + the latest debian skype (v4.2.013)

in skype: options->video devices>ticked "enable skype video" and getting "no devices found" in pulldown menu
I have installed v4l and I have set
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so
in the bash env (via .bashrc)

webcam works flawlessly when I boot into W7. The machine is a vaio x laptop.

any suggestions?

TIA
 
Old 02-16-2014, 07:37 AM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
A little test...

Install the Gnome program "Cheese" and try to see that the camera is configured and working with Debian. Thereafter, you know that the problem is with Skype.
 
Old 02-16-2014, 07:39 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Do you have a /dev/video# for the webcam device? Does it work in cheese or other cam tidbits?
 
Old 02-18-2014, 06:25 AM   #4
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
tnx for the replies.

the webcam works flawlessly under W7 & in the v4l config app.

it's not working with skype
 
Old 03-08-2014, 07:34 AM   #5
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
bump

anyone?
 
Old 03-08-2014, 07:57 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
"How to make Webcam compatible with Skype" :
http://community.linuxmint.com/tutorial/view/219

Comment : No issues here by using the above for any of my webcams.
 
1 members found this post helpful.
Old 03-14-2014, 07:40 AM   #7
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
thanks

I've tried both options in the tutorial (v4lcompat/v4lconvert), with no success.
skype still doesnt detect the webcam.

Again, the webcam works fine in the "v4l control panel" program & of course under W7.

Any suggestions?

TIA
 
Old 03-14-2014, 09:47 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
In debian the lib is in /usr/lib/i386-linux-gnu/libv4l/v4l1compat.so or /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so depending on which version you're running. And assuming that package libv4l-0 is installed.

Another method beside LD_PRELOAD is to add a .conf in /etc/ld.so.conf.d/ with the path to the lib and run ldconfig. LD_PRELOAD is the option used if you don't have root permissions. So for debian, not mint, it would go something like.

$ LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype

Or whatever applies to your system. The apt-file utility is useful for finding these things quickly. And dpkg-query for locating the package name(s).

$ apt-file find v4l1compat
$ dpkg-query --load-avail -l '*v4l*'
 
Old 03-15-2014, 07:59 AM   #9
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
thanks, but I'm aware of the new location of the v4l files under debian, and my /usr/local/bin/skype is:

Code:
#/bin/bash
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype
#LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so /usr/bin/skype
I've tried with both v4l1compat & v4l2convert, and with either skype doesnt didnt detect the laptop's webcam.

I've even symlinked /usr/lib/i386-linux-gnu/libv4l to /usr/lib/libv4l just in case something still looks for the latter path, but it didnt help.

any suggestions?

TIA
 
Old 03-15-2014, 12:07 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
# echo '/usr/lib/i386-linux-gnu/libv4l' >> /etc/ld.so.conf.d/v4lcompat.conf
# ldconfig

Basically accomplishes the same LD_PRELOAD bit without having to use LD_PRELOAD. And opens up the known libs to look there for requested libs. Java needs a similar workaround to know where the java libs are so pulseaudio functions properly. Or functions less unproperly.

Perhaps strace skype to see what libs it's trying to use and hold it's hand so it'll find them. Like java it might need help to find it's own libs. You may also need to do some v4l2-ctl fiddling to set the webcam in a mode that skype likes. I used to have to run tvtime first to use my tvcapture card, until I figured out that "v4l2-ctl -f 61.25" accomplished the same thing. As in sets the analog tv capture card to channel 3.
 
Old 03-15-2014, 02:03 PM   #11
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
thanks.

v4l-ctl seems to have a zillion parameters which can be tweaked.

how do I know what to set for skype to see the cam?

as mentioned, its a "motion eye" cam in a sony vaio x laptop.

TIA
 
Old 03-15-2014, 02:47 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Probably start with colorspace and resolution. Sticking with common attributes like 640x480, 1280x720, 1920x1080, yuv420p, mjpeg or whatever works. A little skype research could help. And knowing the capabilities of the device.

# v4l2-ctl --info
# v4l2-ctl --list-ctrls
# v4l2-ctl --all
 
Old 03-15-2014, 04:36 PM   #13
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
thanks.

v4l2-ctl --all gives:
Code:
Driver Info (not using libv4l2):
	Driver name   : uvcvideo
	Card type     : UVC Camera (05ca:18b6)
	Bus info      : usb-0000:00:1d.7-8
	Driver version: 3.2.51
	Capabilities  : 0x04000001
		Video Capture
		Streaming
Format Video Capture:
	Width/Height  : 640/480
	Pixel Format  : 'YUYV'
	Field         : None
	Bytes per Line: 1280
	Size Image    : 614400
	Colorspace    : Unknown (00000000)
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 640, Height 480
	Default     : Left 0, Top 0, Width 640, Height 480
	Pixel Aspect: 1/1
Video input : 0 (Camera 1: ok)
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0
I've tried
Code:
v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=yuv420p
and
Code:
v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=mjpeg
but skype didnt detect the cam in either case.

is the "Colorspace : Unknown (00000000)" normal?
I dont see an option to tweak the colorspace.

TIA
 
Old 03-21-2014, 01:06 PM   #14
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
bump

anyone?
 
Old 03-22-2014, 12:35 AM   #15
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Try a different version of skype? Try a different distro. Wheezy has it's perks, but for all practical purposes it's 2+ years old on the day it's released. Lots of things are different graphically since a 3.2.x kernel. Debian jessie / sid runs a 3.13.x kernel at the moment which works pretty stellarly with my ati-legacy hardware. Where dealing with a 3.2.x kernel (wheezy) would involve a few compromises. Like proprietary graphics drivers that are basically deprecated since kernels > 3.4.x for ati-legacy cards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Now I've done it - Debian dual boot (Sid, Wheezy) grub overwritten, lost Wheezy? ShaneRoach Debian 23 02-02-2014 03:28 PM
Skype video fails to survive Wheezy > Jessie upgrade jdkaye Linux - Software 3 05-09-2013 12:43 AM
Wifi not recognized - Debian wheezy IBM R31 eranj1 Linux - Laptop and Netbook 4 04-05-2013 11:42 PM
webcam not working in skype stephenbbb Linux - Software 3 02-27-2011 09:49 PM
Webcam and Skype moshebagelfresser Linux - Hardware 5 04-11-2010 03:23 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration