From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 30 07:09:44 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F510D2B for ; Mon, 30 Dec 2013 07:09:44 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C6171CCB for ; Mon, 30 Dec 2013 07:09:44 +0000 (UTC) Received: from [89.204.135.94] (helo=tiny-r255948) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1VxWyq-0006xM-Sp for freebsd-multimedia@freebsd.org; Mon, 30 Dec 2013 08:09:41 +0100 Received: from tiny-r255948 (localhost [127.0.0.1]) by tiny-r255948 (8.14.7/8.14.3) with ESMTP id rBU79dHO001021 for ; Mon, 30 Dec 2013 08:09:39 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny-r255948 (8.14.7/8.14.3/Submit) id rBU79cO5001020 for freebsd-multimedia@freebsd.org; Mon, 30 Dec 2013 08:09:38 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny-r255948: guru set sender to guru@unixarea.de using -f Date: Mon, 30 Dec 2013 08:09:38 +0100 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Subject: Re: mplayer && webcamd Message-ID: <20131230070936.GA1008@tiny-r255948> References: <20131229185353.GA972@tiny-r255948> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20131229185353.GA972@tiny-r255948> X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.94 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2013 07:09:44 -0000 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 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, , 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