Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2013 08:09:38 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: mplayer && webcamd
Message-ID:  <20131230070936.GA1008@tiny-r255948>
In-Reply-To: <20131229185353.GA972@tiny-r255948>
References:  <20131229185353.GA972@tiny-r255948>

next in thread | previous in thread | raw e-mail | index | archive | help
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-3.11.0.2
> 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://

gives:

TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
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
default.
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....

	matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz, <guru@unixarea.de>, http://www.unixarea.de/ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131230070936.GA1008>