From owner-freebsd-multimedia@FreeBSD.ORG Thu May 28 17:02:57 2009 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 8286C106566C for ; Thu, 28 May 2009 17:02:57 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 3C08F8FC1E for ; Thu, 28 May 2009 17:02:56 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 4DCC61E002B9; Thu, 28 May 2009 19:02:56 +0200 (CEST) Received: from triton.kn-bremen.de (noident@localhost [127.0.0.1]) by triton.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n4SGxIDF009635; Thu, 28 May 2009 18:59:18 +0200 (CEST) (envelope-from nox@triton.kn-bremen.de) Received: (from nox@localhost) by triton.kn-bremen.de (8.14.3/8.14.3/Submit) id n4SGxIJP009634; Thu, 28 May 2009 18:59:18 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Thu, 28 May 2009 18:59:17 +0200 To: Jason Harmening Message-ID: <20090528165917.GA9112@triton.kn-bremen.de> References: <2d1264630905270827q4e85376ds530488edf62b4c1a@mail.gmail.com> <200905272134.n4RLY6TM071270@triton.kn-bremen.de> <2d1264630905271519j639f3355vdb5146c35db8f4d0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2d1264630905271519j639f3355vdb5146c35db8f4d0@mail.gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-multimedia@freebsd.org Subject: working direct mplayer on cx88 analog video (was: Re: cx88 panic, and a (hacky) way to grab composite/svideo in when it's not panicing :) (and vlc...) (Juergen Lock)) 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: Thu, 28 May 2009 17:02:58 -0000 On Wed, May 27, 2009 at 05:19:08PM -0500, Jason Harmening wrote: > On Wed, May 27, 2009 at 4:34 PM, Juergen Lock wrote: > > In article <2d1264630905270827q4e85376ds530488edf62b4c1a@mail.gmail.com> you write: > > >> > > Actually my vlc invocation, > > > >>>        vlc --demux rawvideo --rawvid-fps 25 --rawvid-width 768 --rawvid-height 576 --rawvid-chroma I422 vpipe > > > > uses the raw video from the vpipe directly so there's no mpeg involved. > > (But still the video is jerky.) > > > >>> (I first wanted to do this with mplayer but the closest I got, > >>>        mplayer -demuxer rawvideo -rawvideo w=768:h=576:format=422p:size=884736 vpipe > >>> still gets false colours.) > >>> > >  And btw doing it with mplayer like this doesn't seem to be affected by > > the jerkyness, only the colours are wrong.  (Maybe there's a way to do it > > right with a more recent mplayer, but unfortunately there's no mplayer > > svn snapshot in ports and they stopped doing formal releases so our > > mplayer is now pretty old... ): > > > >  So maybe the above is just a bug in vlc?  (And also, mplayer only uses > > ~8% cpu for this here while vlc uses around 20%...) > > It does seem likely that it's a VLC bug then. How exactly are the > colors wrong in mplayer? Hmm difficult to explain... red becomes blue, etc. > The cx88 app captures in YUV422 planar IIRC, > but the kernel drivers allow selection of different pixel formats. > Perhaps a more straightforward RGB format would work better. You'd > have to hack the cx88 app to do that right now, since I don't (yet) > have a command-line option for it. > Anyway, with the help of the nice people on #mplayer (thanx! :) I now have a working mplayer commandline: mplayer -demuxer rawvideo -rawvideo w=768:h=576:format=422p:size=884736 -vf swapuv,scale=-1:-1 vpipe (vpipe still being the named pipe fed by something like cx88 -d /dev/cx88video0 -u file://${PWD}/vpipe -x cx88.xml -c ... ) So it looks like for some reason mplayer's format=422p takes u and v swapped... (The good news is the filter doesn't seem to noticeably increase the cpu load at least here so its still way better than vlc.) >[...] > >  Will this also include the dvb-s(2) code that was mentioned on > > this list once (I think by Konstantin)? > > I know Konstantin has at least some of it working, but you'd have to > ask him to be sure. There will need to be a cx88 update to add > support for additional DVB-S(2) tuning params to the XML file, but > most of the work will actually have to be done in libtuner. I may end > up pushing the big cx23885 update first just to get some breathing > room. Ok. Thanx again, Juergen