mplayer && webcamd

Matthias Apitz guru at
Mon Dec 30 07:09:44 UTC 2013

El día Sunday, December 29, 2013 a las 07:53:53PM +0100, Matthias Apitz escribió:

> Hello,
> I have on a 10-CURRENT with ports from 1st of November:
> MPlayer SVN-r35933-snapshot-4.6.3 (C) 2000-2013 MPlayer Team
> webcamd-
> pwcview-1.4.1_4
> The cam of my netbook, a CNF7129, works fine with Skype and with
> pwcview. How I could use mplayer to work with this and record the video
> stream? Thanks in advance.
> ...

I checked the port's building options of multimedia/mplayer on my
backery machine: there is an option on the 2nd page -:(  'V4L' which
is off by default; I turned it on, recompiled the port and now the command

$ mplayer -fps 30 -cache 128 -tv driver=v4l2:width=640:height=480:device=/dev/video0 tv://


TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl,
VIDIOC_G_PARM was used instead.
Selected device: CNF7129
Capabilities:  video capture  read/write  streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
tv.c: norm_from_string(pal): Bogus norm parameter, setting
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12 
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
Audio: no sound
FPS forced to be 30.000  (ftime: 0.033).
Starting playback...
libv4l2: error dequeuing buf: Invalid argument

v4l2: ioctl set mute failed: Invalid argument
v4l2: 301 frames successfully processed, 636 frames dropped.

and the movie is there on X11 from mplayer. 

I have to check what 'Audio: no sound' means, because I want to record
with mencoder and ofc with sound....

Sent from my FreeBSD netbook

Matthias Apitz, <guru at>, f: +49-170-4527211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

More information about the freebsd-multimedia mailing list