From owner-freebsd-stable@FreeBSD.ORG Mon Nov 14 01:23:59 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECF0516A41F for ; Mon, 14 Nov 2005 01:23:59 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq1.groni1.gr.home.nl (smtpq1.groni1.gr.home.nl [213.51.130.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 791FE43D45 for ; Mon, 14 Nov 2005 01:23:59 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.130.189] (port=57967 helo=smtp2.groni1.gr.home.nl) by smtpq1.groni1.gr.home.nl with esmtp (Exim 4.30) id 1EbT4f-000827-VV; Mon, 14 Nov 2005 02:23:57 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:56810 helo=desktop.homenet) by smtp2.groni1.gr.home.nl with esmtp (Exim 4.30) id 1EbT4d-0002yr-DP; Mon, 14 Nov 2005 02:23:55 +0100 From: Danny Pansters To: freebsd-stable@freebsd.org Date: Mon, 14 Nov 2005 02:21:53 +0000 User-Agent: KMail/1.8.3 References: <200511132204.55664.doconnor@gsoft.com.au> <200511141132.04513.doconnor@gsoft.com.au> In-Reply-To: <200511141132.04513.doconnor@gsoft.com.au> X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511140221.54069.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: Miguel Mendez Subject: Re: mplayer + bktr X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2005 01:24:00 -0000 On Monday 14 November 2005 01:02, Daniel O'Connor wrote: > On Mon, 14 Nov 2005 07:13, Miguel Mendez wrote: > > > If you add immediatemode=0 to the tv args it will do it. > > > > I've just tried that and the speed drops to something like 5-6 fps. > > Interesting problem. > > Yeah, I suspect there is something wrong with the audio sampling, but I > haven't looked at it properly. I myself am not really doing anything with capturing, but some ideas that may be helpful: FWIW, from what I know in ring capture mode the video gets synch'd by the audio by having enough frames per audio sample. So if audio sample size or expected speed or expected kHz is somehow wrong... Also the code for ring capture mode (as opposed to immediate which does not do audio but does give a video one could capture at 25 fps) has its own timing (perhaps it uses rtc down the line, I dunno, is rtc.ko alright?). You may get into a worst-worst-worst-even worst scenario where the software timer degrades on and on possibly. Maybe capturing only works well if you use immediate (case 2 in bktr(4) IIRC) and you should capture audio seperately and later merge them to frames. > > > I don't use either of those, but a small program I wrote which captures > > > YUV frames and uses the Xv extension doesn't show the problem. > > Capturing only pictures at 25 fps (with mplayer vo) can be handled easily. Dan