Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2004 22:37:37 -0800
From:      Ryan Clancey <rclancey-freebsd-multimedia@dfmm.org>
To:        John Wehle <john@feith.com>
Cc:        multimedia@freebsd.org
Subject:   Re: FreeBSD 4.9 Hauppauge PVR-250 / 350 Driver Patch (Jan 25, 2004)
Message-ID:  <1075531057.666.43.camel@fattire>
In-Reply-To: <200401260744.i0Q7it320556@jwlab.FEITH.COM>
References:  <200401260744.i0Q7it320556@jwlab.FEITH.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
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  |                         |
> -------------------------------------------------------------------------
> 



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