From owner-freebsd-multimedia@FreeBSD.ORG Fri Apr 7 16:17:06 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1362B16A400 for ; Fri, 7 Apr 2006 16:17:06 +0000 (UTC) (envelope-from jakemsr@jakemsr.com) Received: from mail231.csoft.net (mail231.csoft.net [205.205.221.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 7FD0543D45 for ; Fri, 7 Apr 2006 16:17:05 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: (qmail 5070 invoked from network); 7 Apr 2006 16:17:03 -0000 Received: from unknown (HELO puff.jakemsr.gom) (jakemsr@24.20.118.148) by mail231.csoft.net with SMTP; 7 Apr 2006 16:17:03 -0000 Received: from puff.jakemsr.gom (jakemsr@localhost.jakemsr.gom [127.0.0.1]) by puff.jakemsr.gom (8.13.6/8.13.4) with ESMTP id k37GH2Y1008787 for ; Fri, 7 Apr 2006 09:17:02 -0700 (PDT) Received: (from jakemsr@localhost) by puff.jakemsr.gom (8.13.6/8.13.3/Submit) id k37GH2Nf013717 for freebsd-multimedia@freebsd.org; Fri, 7 Apr 2006 09:17:02 -0700 (PDT) Date: Fri, 7 Apr 2006 09:17:02 -0700 From: Jacob Meuser To: freebsd-multimedia@freebsd.org Message-ID: <20060407161702.GA25066@puff.jakemsr.gom> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <200604061759.k36Hxkfq040644@amd64.ott.parse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200604061759.k36Hxkfq040644@amd64.ott.parse.com> User-Agent: Mutt/1.4.2i Subject: Re: Fishing: Any problems with bktr and amd64 v 6.0? I get page 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: Fri, 07 Apr 2006 16:17:06 -0000 On Thu, Apr 06, 2006 at 01:59:46PM -0400, Robert Krten wrote: > > Jacob Meuser sez... > > > > On Wed, Apr 05, 2006 at 10:20:32AM -0400, Robert Krten wrote: > > > > > > I'm investigating a problem I'm having (two kernel page faults so > > > far an AMD64 on v6.0 release), possibly related to the bktr driver. > > > > > > At this point I'm just fishing for answers, because I haven't run the new > > > system for a long time (installed Sunday). But, when I run my > > > motion-activated recorder on two bktr devices simultaneously, the system > > > dies within minutes. If I don't run them, the system is stable. > > > > > > I'm using Hauppauge WinTV Go + devices, if that helps, and capturing > > > frames in RGB24 mode using METEOR_CAP_SINGLE in a tight loop with a > > > tuner call to TVTUNER_SETCHNL on the associated tuner. > > > > > > If anyone can say "Yes, that is definitely a known problem, apply patch X" > > > that would be great! :-) Or, "Don't use METEOR_CAP_SINGLE, it's unreliable", > > > that would help too. Even just letting me know that you use bktr on > > > an AMD64 with v6.0 and *don't* have problems would be useful... > > > > do you actually get good results with METEOR_CAP_SINGLE? I often > > just get gibberish. IIRC, this is because the bt8x8 chip "needs a > > moment to settle down". I don't recall the details, but I believe I > > read this in a comment in one of the original bktr sample programs > > which uses METEOR_CAP_SINGLE. according to > > http://telepresence.dmem.strath.ac.uk/bt848/ the sample programs are > > at ftp://telepresence.dmem.strath.ac.uk/pub/bt848/examples > > but I can't seem to connect to that now :( > > When I don't mess with the tuner, METEOR_CAP_SINGLE works just fine. > When I tune between different channels, I do sometimes (say 5-10% of the > time?) get partial frames from the previous channel. > > Also, I sometimes get the wrong fields (I'm not sure of the order, but > let's say the even frame from one field and the odd frame from the next > field, which leads to interesting "jittering" effects when displayed on > an interlaced monitor). you can get single fields: METEOR_GEO_EVEN_ONLY, METEOR_GEO_ODD_ONLY. check out bsdav_bktr_init() in http://jakemsr.com/bsdav/lib/bsdav_video_hw.c for more details. > What should I be using? The ring-buffer one, and just fish out the samples > as I need them? Any hints on synchronizing with tuning? I'm pretty sure the ringbuffer is not actually usable. if you figure out how to use it, please let me know! use METEOR_CAP_CONT and just pick out say, the 50th frame. --