From owner-freebsd-multimedia@FreeBSD.ORG Wed Oct 29 08:57:12 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D21F1065670 for ; Wed, 29 Oct 2008 08:57:12 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id B91BC8FC08 for ; Wed, 29 Oct 2008 08:57:11 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 29 Oct 2008 08:57:08 -0000 Received: from 85-127-86-101.dynamic.xdsl-line.inode.at (EHLO taxman.pepperland) [85.127.86.101] by mail.gmx.net (mp026) with SMTP; 29 Oct 2008 09:57:08 +0100 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX18Q508zkwcQhwQrtP2HboUDN31zGlSJakWNG+7tUc /1WkqdfVHU5uPC From: Stefan Ehmann To: freebsd-multimedia@freebsd.org Date: Wed, 29 Oct 2008 09:57:05 +0100 User-Agent: KMail/1.10.1 (FreeBSD/7.1-PRERELEASE; KDE/4.1.2; i386; ; ) References: <53464.192.168.2.167.1224830404.squirrel@mail.wtec.co.za> <64500.192.168.2.167.1225094433.squirrel@mail.wtec.co.za> <61387.192.168.2.167.1225266486.squirrel@mail.wtec.co.za> In-Reply-To: <61387.192.168.2.167.1225266486.squirrel@mail.wtec.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810290957.06153.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 Cc: Subject: Re: Mencoder X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 08:57:12 -0000 On Wednesday 29 October 2008 08:48:06 newbie@poq.co.za wrote: > >> On Friday 24 October 2008 08:40:04 newbie@poq.co.za wrote: > >>> Hi There > >>> > >>> I have a Brooktree chipped card. It's got 4 video inputs. > >>> I'm trying to record video, no audio from all 4 channels > >>> of the card using mencoder. I use fxtv to display video > >>> on the seperate channels. I get video on all of them. This > >>> is the command I use > >>> > >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 0 > >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 1 > >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 2 > >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 3 > >>> > >>> So i got video on all of them, but when I record using > >>> mencoder I only get video on the first device. Device > >>> (1,2 and 3) got no video(blue screen). But from fxtv > >>> it works fine. > >>> > >>> mencoder -tv > >>> device=/dev/bktr0,/dev/tuner0:driver=bsdbt848:width=640:height=480:norm > >>>=pal tv:// -o tv.avi -ovc lavc -nosound ... > I have found the problem. But I don't know how to fix it. Its inside the > patch 'patch-stream-tvi_bsdbt848.c' in mplayer's port folder. There is a > hardcoded variable " +priv->btdev = strdup("/dev/bktr0"); ". If I > change it for example /dev/bktr7, That channel works fine. > > Can anyone please help me to fix this. I want mplayer/mencoder to except my > input from console, not a hardcoded variable in the source. The patch doesn't seem to be correct. The device parsed in tvi_init_bsdbt848() gets overwritten in init(). Removing this line from init() should fix it: priv->btdev = strdup("/dev/bktr0"); -- Stefan