From owner-freebsd-hackers Sun Feb 10 19:49:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id DADED37B405 for ; Sun, 10 Feb 2002 19:49:34 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g1B3nYP51309; Sun, 10 Feb 2002 19:49:34 -0800 (PST) (envelope-from dillon) Date: Sun, 10 Feb 2002 19:49:34 -0800 (PST) From: Matthew Dillon Message-Id: <200202110349.g1B3nYP51309@apollo.backplane.com> To: hackers@freebsd.org Subject: dtv port added Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've been playing with a tv-capture card. None of the existing ports (e.g. fxtv) do what I want, so for the last few weeks I've been writing code on my off time to play with the card. It kinda turned into a project and has gotten good enough that it is worth a port, so I have comitted a port for it: /usr/ports/graphics/dtv The code is definitely alpha. I'm sure there are lots of issues, like it only understands NTSC/60Hz for the moment and only understands 16 or 32 bit frame buffers (though it might work with 24, I can't test that), but most of the hard work is done. The main purpose of writing the program was so I could operate the TV tuner in a client/server model over a 100BaseTX network and so I could play with recording programs to a file and playing them back. I also wanted to do a certain amount of software compression using the host cpu since we do not appear to have any hardware support for MPEG encoding and decoding, so DTV can in fact compress the video stream. It isn't the greatest compression in the world ... it gets it down to around 2 MBytes/sec at reasonable quality, but it's better then the 9 MBytes/sec you would need to store the video uncompressed. I could do more complex algorithms if I wrote it in assembly but I'm not that crazy so it's written in C. The code may also be of use to others who are playing with TV-capture stuff. It's written completely from scratch (though I did look at the fxtv code when I got stuck to see how they did certain things) and my code uses the BSD copyright. You need a good graphics card, like a GeForce2, and a 700MHz or better cpu to be able to get a reasonable display size at the full 30Hz frame rate. Please feel free to email me simple patches. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message