From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 30 22:33:02 2004 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 24C6B16A4CE for ; Fri, 30 Jan 2004 22:33:02 -0800 (PST) Received: from dfmm.org (walter.dfmm.org [209.151.233.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id E15A243D1F for ; Fri, 30 Jan 2004 22:33:00 -0800 (PST) (envelope-from rclancey-freebsd-multimedia@dfmm.org) Received: (qmail 37168 invoked from network); 31 Jan 2004 06:33:00 -0000 Received: from unknown (HELO ?10.1.1.32?) (209.151.251.21) by 0 with AES256-SHA encrypted SMTP; 31 Jan 2004 06:33:00 -0000 From: Ryan Clancey To: John Wehle In-Reply-To: <200401260744.i0Q7it320556@jwlab.FEITH.COM> References: <200401260744.i0Q7it320556@jwlab.FEITH.COM> Content-Type: text/plain Message-Id: <1075531057.666.43.camel@fattire> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 30 Jan 2004 22:37:37 -0800 Content-Transfer-Encoding: 7bit cc: multimedia@freebsd.org Subject: Re: FreeBSD 4.9 Hauppauge PVR-250 / 350 Driver Patch (Jan 25, 2004) 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, 31 Jan 2004 06:33:02 -0000 oh man, i am so happy! this worked perfectly the first time with no issues! you rock. now if only i could figure out how to change the channel... i was hoping that something like: mplayer -tv driver=bsdbt848:channel=28:device=/dev/bktr0 /dev/bktr0 would do the trick, but no such luck. still showed channel 4. i also had no luck with the ioctl's, but i can blame that on not really understanding how such things work. me feeble attempt with perl's ioctl complained about "Inappropriate ioctl for device" when i tried: #!/usr/bin/perl require "sys/ioctl.ph"; require "machine/ioctl_bt848.ph"; open(DEV, "/dev/bktr0"); ioctl(DEV, TVTUNER_SETCHNL, $ARGV[0]) or warn $!; close(DEV); have any tips? do i have the right idea and maybe just need to rebuild the perl header files? once again, thankyouthankyouthankyou for all the work you put into this. -ryan On Sun, 2004-01-25 at 23:44, John Wehle wrote: > A subset of the bt848 and meteor ioctls are supported. > The more interesting ones being: > > TVTUNER_SETCHNL - Set the channel (default to 4). > > BT848_SCAPAREA - Set the capture area / format (defaults to DVD). > > VCD: 352 x 240 or 352 x 288 > SVCD: 480 x 480 or 480 x 576 > DVD: 720 x 480 or 720 x 576 > > METEORCAPTUR - Start / stop the capture. > > Capture is also started if a read > occurs when the data buffer is empty. > > To capture a MPEG program stream from the current channel > simply cat /dev/bktr0 > filename.mpeg. Though to ensure > a clean capture you probably want to do something like: > > 1) Read data until the TV show has ended. > > 2) Use METEORCAPTUR to end the capture. > > 3) Use poll to determine if there is any data > remaining in the device. Read the data as > long as poll says there's data in the buffer. > > otherwise the end of the mpeg program stream will probably be > corrupt. > > Enjoy, > > John Wehle > ------------------------------------------------------------------------- > | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | > | John Wehle | Fax: 1-215-540-5495 | | > ------------------------------------------------------------------------- >