|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
OpenBSD and Webcam. Anyone?
Hi all,
I would like to use the Webcam of my Thinkpad x250 laptop. Does anyone knows how to use a Webcam on OpenBSD? thanks in advance, joan |
|
|||
You will need to see if it is supported first, check your dmesg to see if there are any drivers loaded for it, if not it may not be supported.
__________________
Linux since 1999, & also a BSD user. |
|
|||
Hi,
yes, the camera is supported. On my laptop Thinkpad x250 everything works fine, except Bluetooth. |
|
|||
Ok,thank you.
No webcam recording, then. |
|
|||
Webcam and bluetooth are different things here.
My webcam is disabled on my x250 and other than testing if it worked, I've never used it for anything. And at the time "worked" meant that it turned on, but if I recall, the picture was messed up. |
|
|||
Nobody is using webcam, then
Ok, after many days of my post and after reading some comments, it's obvious no one is using the Webcam on OpenBSD.
|
|
|||
The webcam is not something I use on any computer, & I have seldom used bluetooth - just recently with another computer to listen to music though some headphones.
My main usage is web browsing, forums, music, videos, & simple time waster games.
__________________
Linux since 1999, & also a BSD user. |
|
|||
Hi,
I haven't but I will :-) good idea, thanks. |
|
|||
|
|
|||
Code:
# dmesg |grep -i cam uvideo0 at uhub4 port 6 configuration 1 interface 0 "Vimicro corp. Lenovo EasyCamera" rev 2.00/14.12 addr 3 # usbdevs -v ... port 6 addr 3: high speed, power 256 mA, config 1, Lenovo EasyCamera(0x0295), Vimicro corp.(0x5986), rev 14.12 # pkg_add fswebcam quirks-2.414 signed on 2018-03-28T14:24:37Z fswebcam-20140113:gd-2.2.5p0: ok fswebcam-20140113: ok # fswebcam --loop 1 --jpeg 95 --save cam.jpeg >>> Next image due: 2018-10-01 18:14:42 (CDT) --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. Adjusting resolution from 384x288 to 320x240. --- Capturing frame... Captured frame in 0.00 seconds. --- Processing captured image... Setting output format to JPEG, quality 95 Writing JPEG image to 'cam.jpeg'. >>> Next image due: 2018-10-01 18:14:44 (CDT) --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. --- Capturing frame... Captured frame in 0.00 seconds. --- Processing captured image... Setting output format to JPEG, quality 95 Writing JPEG image to 'cam.jpeg'. >>> Next image due: 2018-10-01 18:14:46 (CDT) --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. --- Capturing frame... Captured frame in 0.00 seconds. --- Processing captured image... Setting output format to JPEG, quality 95 Writing JPEG image to 'cam.jpeg'. >>> Next image due: 2018-10-01 18:14:48 (CDT) Last edited by gpatrick; 1st October 2018 at 11:29 PM. |
|
|||
Did you try with the command
# video ? I don't remember the path. try as root, because the device files /dev/videoN have default permissions that require to be root. If it works you can change permissions. |
|
||||
For the archives:
I just repeated gpatrick's example above with fswebcam. And it even works on my crappy old macbook. usbdevs -v Code:
port 4 addr 2: high speed, power 100 mA, config 1, Built-in iSight(0x8501), Micron(0x05ac), rev 1.84 Code:
lrwxr-xr-x 1 root wheel 6 Apr 9 2018 /dev/video -> video0 crw------- 1 root wheel 44, 0 Apr 9 2018 /dev/video0 crw------- 1 root wheel 44, 1 Apr 9 2018 /dev/video1 Code:
>>> Next image due: 2018-10-09 22:22:17 (CEST) --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. Adjusting resolution from 384x288 to 352x288. --- Capturing frame... Captured frame in 0.00 seconds. --- Processing captured image... Setting output format to JPEG, quality 95 Writing JPEG image to 'cam.jpeg'. |
|
|||
Thank you very much gpatrik and fvgit for your answers. I still can't do photos. I attach screencapture. Apparently it should work on my Thinkpad x250, the green light turns on on the top of the laptop and the fswebcam command starts... but at the end I don't have any photo.
Code:
bash-4.4# dmesg | grep -i cam uvideo0 at uhub0 port 8 configuration 1 interface 0 "SunplusIT Inc Integrated Camera" rev 2.00/0.18 addr 5 Code:
bash-4.4# ls -la /dev/video* lrwxr-xr-x 1 root wheel 6 Aug 2 23:40 /dev/video -> video0 crw-rw-rw- 1 root wheel 44, 0 Aug 2 23:40 /dev/video0 crw------- 1 root wheel 44, 1 Aug 2 23:40 /dev/video1 Code:
bash-4.4# usbdevs -v | grep Camera port 8 addr 5: high speed, power 500 mA, config 1, Integrated Camera(0x0366), SunplusIT Inc(0x5986), rev 0.18 Error starting stream. VIDIOC_STREAMON: Invalid argument Unable to use mmap. Using read instead. --- Capturing frame... select: Interrupted system call No frames captured. Damn... :-( |
|
|||
Hi!
I have the same problem with a cammera on Thinkpad x240. Did you find a solution ? |
|
|||
The same with my Logicam webcam (EasyCam), which doesn't require a driver and worked without problem on linux. I get:
Error setting pixel format. VIDIOC_S_FMT: Invalid argument |
|
|||
I have disabled USB3.0 in the BIOS.
Now my webcam works. https://marc.info/?l=openbsd-misc&m=155050320512916&w=2 |
|
|||
And the last unswer: https://marc.info/?l=openbsd-misc&m=155061301616591&w=2
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Webcam | puffymon | OpenBSD Packages and Ports | 2 | 20th September 2017 08:07 AM |
Trust Webcam Support | mrhbit | OpenBSD General | 4 | 15th March 2013 02:23 PM |
FreeBSD skype webcam!! Hurrah!!! :D | xmorg | FreeBSD General | 6 | 20th April 2012 12:19 PM |
Webcam | giga | FreeBSD General | 0 | 23rd July 2008 11:03 AM |