156a3 HOWTO: adding webcam support for skype and adobe flash - Page 2 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Miscellaneous > Howtos & FAQs

Howtos & FAQs Would you like to share some of your solutions for certain problems? Tips or tricks? Post here.

Reply
 
Thread Tools Display Modes
  #26  
Old January 14th, 2012, 17:07
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 301
Thanks: 22
Thanked 40 Times in 30 Posts
Default

OK, so now it works out of Skype, but still doesn't work in Skype.
Reply With Quote
  #27  
Old January 23rd, 2012, 01:06
tcrider84 tcrider84 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default odd problem with webcamd_enable="YES"

Hi everyone. So I've come across a strange problem. I'm using Freebsd 9 stable. I've followed the guide and installed the required packages. Here's the issue.

If I put:

Code:
webcamd_enable="YES"
in /etc/rc.conf, /dev/video0 is not loaded and not listed when I ls /dev, nor does it get picked up by pwcview. BUT

IF I remove the line, and then manually enable webcamd, /dev/video0 IS generated, and I can set permissions and use pwcview/other webcam programs as normal. Any idea why it's doing this? The cam is a logitech C210.

Last edited by DutchDaemon; January 23rd, 2012 at 01:51. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #28  
Old January 23rd, 2012, 01:09
tcrider84 tcrider84 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Some extra info that might be useful:

when

Code:
webcamd_enable="YES"
and I try to run it, I get:
Code:
Webcamd is already running for ugen3.2.0
..yet no /dev/video0
Here's the usbconfig dump_device_desc:
Code:
ugen3.2: <product 0x0819 vendor 0x046d> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x00ef 
  bDeviceSubClass = 0x0002 
  bDeviceProtocol = 0x0001 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x046d 
  idProduct = 0x0819 
  bcdDevice = 0x0010 
  iManufacturer = 0x0000  <no string>
  iProduct = 0x0000  <no string>
  iSerialNumber = 0x0002  <D07EA700>
  bNumConfigurations = 0x0001

Last edited by DutchDaemon; January 23rd, 2012 at 01:50. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #29  
Old January 23rd, 2012, 13:19
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 826
Thanks: 77
Thanked 119 Times in 79 Posts
Default

Do you have
Code:
cuse4bsd_load="YES"
in /boot/loader.conf?

Also to avoid manually setting permission for video0, edit your /etc/devfs.rules file.
Reply With Quote
  #30  
Old January 23rd, 2012, 23:14
tcrider84 tcrider84 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bbzz View Post
Do you have
Code:
cuse4bsd_load="YES"
in /boot/loader.conf?

Also to avoid manually setting permission for video0, edit your /etc/devfs.rules file.
Yes, I do have
Code:
cuse4bsd_load="YES"
in /boot/loader.conf. I do not think I would be able to manually load webcamd and create /dev/video0 if cuse was not loaded.

As I said it works fine IF:
1. I do not use
Code:
webcamd_enable="YES"
in /etc/rc.conf
and also
2. manually type
Code:
webcamd -d ugen3.2 -i 0 -v 0
this creates /dev/video0 and works properly.

But if I enable webcamd in /etc/rc.conf, /dev/video0 is not created.

Also, I already know about /etc/devfs.rules, but it cannot set permissions to /dev/video0 if /dev/video0 is not created/does not exist.
Reply With Quote
  #31  
Old January 24th, 2012, 15:14
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 826
Thanks: 77
Thanked 119 Times in 79 Posts
Default

Right, sorry.
And if you explicitly add flags in /etc/rc.conf? Along the lines of:

Code:
webcamd_flags="-d ugen3.2 -B"
Also try all again without -i and -v switch. Yeah, I know, you'd be surprised.
Reply With Quote
  #32  
Old January 24th, 2012, 22:05
tcrider84 tcrider84 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

ok, so.

tried it with
Code:
webcmad_enable="YES"
webcamd_flags="-d ugen3.2 -B"
/dev/video0 not created.

tried with
Code:
webcamd_flags="-d ugen3.2 -B"
only. still /dev/video0 not created

tried via terminal manually:

Code:
sudo webcamd
Attached ugen3.2[0] to cuse unit 0
Creating /dev/video0
created, but then it hangs.. as in I can't get back to console without pressing ctrl+c. When I installed webcamd I used pkg_add -r webcamd, maybe I should remove it and compile it from ports instead?
Reply With Quote
  #33  
Old January 24th, 2012, 22:31
tcrider84 tcrider84 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Same problem using install from ports. Seems someone else is also having this exact problem:

http://freebsd.1045724.n5.nabble.com....html#a5398421

Last edited by DutchDaemon; January 25th, 2012 at 02:02.
Reply With Quote
  #34  
Old March 12th, 2012, 19:21
jrm's Avatar
jrm jrm is offline
Member
 
Join Date: Nov 2008
Location: Tralfamadore
Posts: 524
Thanks: 63
Thanked 121 Times in 91 Posts
Default

Thanks for this helpful guide @Aleksey14.

Quote:
Originally Posted by aleksey14 View Post
...
in /etc/devfs.rules add lines
Code:
[system = 10]add path 'video *' mode 0666
Maybe it's a formatting issue, but I had problems with the spaces. Only
Code:
[system=10]
add path 'video*' mode 0666
worked for me.


Quote:
Originally Posted by aleksey14 View Post
...
Code:
export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so 
/usr/local/share/skype/skype --resources=/usr/local/share/skype $@
This part didn't seem to make any difference than when I just ran the skype binary. Is it still necessary?

Thanks again; it's nice to be able to see friends and family who live far away.
Reply With Quote
  #35  
Old March 15th, 2012, 00:39
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 826
Thanks: 77
Thanked 119 Times in 79 Posts
Default

That last part is not needed anymore.
Reply With Quote
The Following User Says Thank You to bbzz For This Useful Post:
jrm (June 7th, 2012)
  #36  
Old June 7th, 2012, 23:11
jrm's Avatar
jrm jrm is offline
Member
 
Join Date: Nov 2008
Location: Tralfamadore
Posts: 524
Thanks: 63
Thanked 121 Times in 91 Posts
Default

I haven't used my formerly working generic USB webcam in a few months, but when I plugged it in today and started pwcview I saw a green screen where the video normally would be and the system semi-froze. I say semi- because the colours were slowly changing and every once in awhile the mouse would move or a keystroke would register. But, after about 10 minutes I was forced to hard reboot. I don't think I've used the webcam since upgrading from 8.2 to 8.3, but searching for things like "FreeBSD 8.3 webcam" doesn't turn anything up.

When I plug the webcam in I see:

Code:
Jun  7 19:06:24 met kernel: ugen3.2: <Image Processor> at usbus3
Jun  7 19:06:24 met root: /usr/local/etc/rc.d/webcamd: WARNING: failed to start webcamd
Jun  7 19:06:24 met root: Unknown USB device: vendor 0x090c product 0x937b bus uhub3
in syslog.

I do see /dev/video0 and I set the permissions to crw-rw-rw-.

Am I missing something?

Last edited by DutchDaemon; June 8th, 2012 at 00:21.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Support Adobe Flash (shell script) soko1 Howtos & FAQs 9 September 11th, 2012 15:50
adding ext4fs support to 8.1 hippo General 3 January 16th, 2011 06:58
How correctly to establish webcam on Skype (Freebsd8). net888 Multimedia 1 May 21st, 2010 17:10
Freebsd 7.1 + adobe flash player 10 xnl96 Multimedia 18 December 4th, 2009 23:42
UVC webcam support in freebsd 8 venky80 Peripheral Hardware 1 November 10th, 2009 13:58


All times are GMT +1. The time now is 17:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0