From owner-freebsd-multimedia@FreeBSD.ORG Sat Apr 23 08:56:57 2005 Return-Path: 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 2D4D516A4CE for ; Sat, 23 Apr 2005 08:56:57 +0000 (GMT) Received: from web41208.mail.yahoo.com (web41208.mail.yahoo.com [66.218.93.41]) by mx1.FreeBSD.org (Postfix) with SMTP id 06E8D43D45 for ; Sat, 23 Apr 2005 08:56:57 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 77400 invoked by uid 60001); 23 Apr 2005 08:56:56 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=umC0+vpDVBnaDnwQWeHq56EAu6l6MTg+8TMlHsoQqjnlpIR7iy2fBYtbztwBoiaFMZudMhFBGIjHrzNODyxTcbRU++Efp7BPHkmQCrFiU8JjGBzWK8MLk9MOk6nyhsQ3/ZybkSzmUJG8+AnSfjiM8Dw33eqvj2nChFXMOvlmpOk= ; Message-ID: <20050423085656.77398.qmail@web41208.mail.yahoo.com> Received: from [83.129.193.53] by web41208.mail.yahoo.com via HTTP; Sat, 23 Apr 2005 01:56:56 PDT Date: Sat, 23 Apr 2005 01:56:56 -0700 (PDT) From: Arne "Wörner" To: Steve O'Hara-Smith In-Reply-To: <20050423063848.67278.qmail@exxodus.fedaykin.here> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD-multimedia@FreeBSD.org Subject: Re: Help with TV capture (mplayer/brooktree/audigy) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2005 08:56:57 -0000 --- Mario Sergio Fujikawa Ferreira wrote: > > > > > 2) Every few seconds the video > > > > > stream seems to choke; thus, > > > > > giving me an effect similar > > > > > to the famous interlaced > > > > > "blinders effect" so I added a > > > > > deinterlacer filter > > > > > > > > Sync detection problems perhaps. > > Is there anything I can do to improve that? Perhaps, > a harder filter looking for those? I fear that such harder > filtering will just decrease performance; thus, increasing > the choking effect. > > Bear in mind that I do not mind 100% CPU occupancy for as > long as, I can get good quality TV capture with good audio. :) > I mentioned, that the bktr does not issue a signal for every expected frame. So I use my own code, that becomes impatient, when the next frame is due, so that it just takes it (I use this old mmap access method). I think, that way I get at least the right frame rate and possibly even the right frame (maybe the signal gets lost or so...). And I run the application with real time priority, because I hope, that it cannot miss frames as easy as with normal or neg. nice value. If you want, I can give you my source code. Here is a little piece of it (I want 25 fps; those 25 fps are hard coded *blush*): tel = now(); int dt = tel - tnx; bool grabNext = dt>=15000; if (grabNext) { if (dt >= 70000) misFC++; else grabNext = framerFlag; // framerFlag corresponds to signal } if (!grabNext) { usleep(1); continue; } -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com