Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2005 16:09:53 -0700
From:      Jacob Meuser <jakemsr@jakemsr.com>
To:        multimedia@freebsd.org
Subject:   Re: bktr and Interlacing
Message-ID:  <20050410230953.GA27365@puff.jakemsr.gom>
In-Reply-To: <20050410210420.GC19049@puff.jakemsr.gom>
References:  <200504101439.06815.mark@markdnet.demon.co.uk> <20050410210420.GC19049@puff.jakemsr.gom>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 10, 2005 at 02:04:20PM -0700, Jacob Meuser wrote:

> yes, you can get only only odd or only even fields, but I don't know
> if this is supported from within mplayer.
> 
> you have to specify the right flags for the METEOSETGEO ioctl:
> 
> 	geomet.oformat = METEOR_GEO_YUV_422 | METEOR_GEO_ODD_ONLY;
> 
> BTW, if you want a simpler way to view video from bktr, you could
> try something I wrote -> http://www.jakemsr.com/bsdav/bktrplay.c.
> there's a manpage too -> http://www.jakemsr.com/bsdav/bktrplay.1.

after looking at bktr_core.c again, I realized it would be easy
to make bktrplay use only even or odd fields.  patch below.

IMHO the output looks better for high motion with this ;)

I'll make only even/odd fields only a command line option
(and make the initial display size with this the same as without).

-- 
<jakemsr@jakemsr.com>

Index: bktrplay.c
===================================================================
RCS file: /home/cvs/jakemsr/bsdav/bktrplay.c,v
retrieving revision 1.4
diff -u -r1.4 bktrplay.c
--- bktrplay.c	10 Apr 2005 07:19:19 -0000	1.4
+++ bktrplay.c	10 Apr 2005 23:02:11 -0000
@@ -389,7 +389,7 @@
 	}
 
 	geomet.columns = caparea.x_size;
-	geomet.rows = caparea.y_size;
+	geomet.rows = caparea.y_size / 2;
 
 	bdt->bktr_width = geomet.columns;
 	bdt->bktr_height = geomet.rows;
@@ -398,7 +398,7 @@
 	geomet.frames = 1;
 
 	/* bogus, will be changed */
-	geomet.oformat = 0;
+	geomet.oformat = METEOR_GEO_ODD_ONLY;
 
 	if (ioctl(bdt->bktr_fd, METEORSETGEO, &geomet) < 0) {
 		perror("METEORSETGEO");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050410230953.GA27365>