Testing USB webcam with mplayer

2015-07-01 Thread Walter Alejandro Iglesias
I've noticed a mplayer's issue on OpenBSD.  With different desktop
machines and usb webcams I've successfully tested the webcam with the
command:

$ mplayer tv://

But in all cases, when you press 'q' mplayer hangs for some seconds
before quitting.

Any idea of why this happens?


Walter



-- 
PLEASE, LET'S PRESERVE GOOD EMAIL PRACTICES
- Use plain text (no HTML please).
- Separate paragraphs with empty lines.
- Use hard wrapped lines at no more than 72 columns.
- Avoid top-posting.
- You'll find the above easy to accomplish by using a decent email
  client (i.e. Thunderbird, Claws mail, Mutt).



Re: USB Webcam

2011-06-08 Thread Nick Coleman
On Tue, 7 Jun 2011 22:59:45 -0400
Ted Unangst ted.unan...@gmail.com wrote:

 On Tue, Jun 7, 2011 at 10:51 PM, Nick Coleman
 ncole...@internode.on.net wrote:
  I would like to get a USB webcam working on my PowerPC OpenBSD 4.9
  install.  I'm an OpenBSD newbie.
 
  When I plug it in, the kernel registers the USB device, but doesn't
  go any further to recognise it as a video device.  The last line
  of dmesg is:
  ugen1 at uhub1 port 1 Vimicro Corp. PC Camera rev 1.10/1.00 addr 3

 When reporting usb devices, include the output of usbdevs -v.

The applicable line is the controller usb1, port 1, addr 3.

# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x),
Apple(0x106b), rev 1.00
 port 1 powered
 port 2 addr 2: full speed, power 50 mA, config 1, Hub in Apple Extended USB
Keyboard(0x1002), Mitsumi Electric(0x05ac), rev 1.22
  port 1 addr 3: full speed, power 50 mA, config 1, Apple Extended USB
Keyboard(0x0204), Mitsumi Electric(0x05ac), rev 1.22
  port 2 powered
  port 3 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x),
Apple(0x106b), rev 1.00
 port 1 addr 3: full speed, power 160 mA, config 1, PC Camera(0x301b), Vimicro
Corp.(0x0ac8), rev 1.00
 port 2 addr 2: full speed, power 260 mA, config 1, Apple internal
modem(0x8202), HCF USB V.90 Data/Fax Modem(0x05ac), rev 1.00, iSerialNumber
001

Thanks.



USB Webcam

2011-06-07 Thread Nick Coleman
I would like to get a USB webcam working on my PowerPC OpenBSD 4.9
install.  I'm an OpenBSD newbie.

When I plug it in, the kernel registers the USB device, but doesn't
go any further to recognise it as a video device.  The last line
of dmesg is:
ugen1 at uhub1 port 1 Vimicro Corp. PC Camera rev 1.10/1.00 addr 3

The following is from my Slackware box (for info on the device type
and the drivers):
--Start Slackware---

mplayer recognises it using the V4L2 driver:
$ mplayer -tv device=/dev/video1 tv://
MPlayer UNKNOWN-4.2.4 (C) 2000-2009 MPlayer Team
115 audio  237 video codecs
Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski olschew...@zpr.uni-koeln.de
 comment: first try, more to come ;-)
Selected device: PC Camera
 Capabilites:  video capture  read/write  streaming
 supported norms:
 inputs: 0 = zc3xx;
 Current input: 0
 Current format: unknown (0x4745504a)

From Slackware's dmesg:
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: New USB device found, idVendor=0ac8, idProduct=301b
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: PC Camera
usb 2-1: Manufacturer: Vimicro Corp.
PM: Adding info for usb:2-1
usb 2-1: configuration #1 chosen from 1 choice
PM: Adding info for usb:2-1:1.0
PM: Adding info for No Bus:usbdev2.2_ep81
PM: Adding info for No Bus:usbdev2.2_ep82
PM: Adding info for No Bus:usbdev2.2
PM: Adding info for No Bus:usbdev2.2_ep00
gspca: main v2.4.0 registered
gspca: probing 0ac8:301b
zc3xx: probe 2wr ov vga 0x
zc3xx: probe sensor - 11
zc3xx: Find Sensor HV7131R(c)
PM: Adding info for No Bus:video1
gspca: probe ok
usbcore: registered new interface driver zc3xx
zc3xx: registered

--End Slackware--

I tried installing luvcview package, but it errors with:
$ luvcview
luvcview version 2.0
Video driver: x11
A window manager is available
video /dev/video0
ERROR opening V4L interface
: Device not configured

At this point, I am stumped and welcome any ideas.

Thanks,
Nick



Re: USB Webcam

2011-06-07 Thread Ted Unangst
On Tue, Jun 7, 2011 at 10:51 PM, Nick Coleman ncole...@internode.on.net
wrote:
 I would like to get a USB webcam working on my PowerPC OpenBSD 4.9
 install.  I'm an OpenBSD newbie.

 When I plug it in, the kernel registers the USB device, but doesn't
 go any further to recognise it as a video device.  The last line
 of dmesg is:
 ugen1 at uhub1 port 1 Vimicro Corp. PC Camera rev 1.10/1.00 addr 3

When reporting usb devices, include the output of usbdevs -v.



Re: USB Webcam

2011-06-07 Thread Jacob Meuser
On Wed, Jun 08, 2011 at 10:51:35AM +0800, Nick Coleman wrote:
 I would like to get a USB webcam working on my PowerPC OpenBSD 4.9
 install.  I'm an OpenBSD newbie.
 
 When I plug it in, the kernel registers the USB device, but doesn't
 go any further to recognise it as a video device.  The last line
 of dmesg is:
 ugen1 at uhub1 port 1 Vimicro Corp. PC Camera rev 1.10/1.00 addr 3
 
 The following is from my Slackware box (for info on the device type
 and the drivers):
 --Start Slackware---
 
 mplayer recognises it using the V4L2 driver:
 $ mplayer -tv device=/dev/video1 tv://
 MPlayer UNKNOWN-4.2.4 (C) 2000-2009 MPlayer Team
 115 audio  237 video codecs
 Playing tv://.
 TV file format detected.
 Selected driver: v4l2
  name: Video 4 Linux 2 input
  author: Martin Olschewski olschew...@zpr.uni-koeln.de
  comment: first try, more to come ;-)
 Selected device: PC Camera
  Capabilites:  video capture  read/write  streaming
  supported norms:
  inputs: 0 = zc3xx;
  Current input: 0
  Current format: unknown (0x4745504a)
 
 From Slackware's dmesg:
 usb 2-1: new full speed USB device using uhci_hcd and address 2
 usb 2-1: New USB device found, idVendor=0ac8, idProduct=301b

snip

 gspca: main v2.4.0 registered
 gspca: probing 0ac8:301b
 zc3xx: probe 2wr ov vga 0x
 zc3xx: probe sensor - 11
 zc3xx: Find Sensor HV7131R(c)
 PM: Adding info for No Bus:video1
 gspca: probe ok
 usbcore: registered new interface driver zc3xx
 zc3xx: registered

this is not UVC compliant, so uvideo(4) doesn't support it.  in linux
this is using the gspca driver: http://mxhaard.free.fr/spca5xx.html  there
is no driver for this device in OpenBSD, sorry.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org