Any advice for writing Ruby driver for Hauppauge WinTV-HVR-1150 on Linux?

2011-08-06 Thread Bob Carpenter
I'd like to write a driver using Ruby language for a Hauppauge WinTV-HVR-1150 
card. 

I will be attaching an NTSC analog camera to the composite video input and want 
to stream the video across the internet to a client app that can display it.

I've never written a PCI driver.

The 1150 card will be attached to an Ubuntu 10.04 box.

I'd welcome any ideas or advice to get started. 

Thanks,

--Bob
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Any advice for writing Ruby driver for Hauppauge WinTV-HVR-1150 on Linux?

2011-08-06 Thread Devin Heitmueller
On Sat, Aug 6, 2011 at 8:48 PM, Bob Carpenter  wrote:
> I'd like to write a driver using Ruby language for a Hauppauge WinTV-HVR-1150 
> card.
>
> I will be attaching an NTSC analog camera to the composite video input and 
> want to stream the video across the internet to a client app that can display 
> it.
>
> I've never written a PCI driver.
>
> The 1150 card will be attached to an Ubuntu 10.04 box.
>
> I'd welcome any ideas or advice to get started.
>
> Thanks,
>
> --Bob

Several points:

Under Linux, you don't write drivers in Ruby.  You write them in C.

The HVR-1150 already has a driver under Linux.

You probably want to be writing a Ruby application, not a driver.

You should probably start by reading the video4linux2 API
documentation, which is the kernel API for interacting with tuner
drivers.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Any advice for writing Ruby driver for Hauppauge WinTV-HVR-1150 on Linux?

2011-08-07 Thread Bob Carpenter
Thanks for the info. The V4L2 spec is helpful, and the terminology allowed me 
to do some accurate googling. In fact I found a Ruby extension (hornetseye) 
that uses the V4L2 driver - I can probably make some progress going down that 
path.

--Bob 

--- On Sat, 8/6/11, Devin Heitmueller  wrote:

> From: Devin Heitmueller 
> Subject: Re: Any advice for writing Ruby driver for Hauppauge WinTV-HVR-1150 
> on Linux?
> To: "Bob Carpenter" 
> Cc: linux-media@vger.kernel.org
> Date: Saturday, August 6, 2011, 6:04 PM
> On Sat, Aug 6, 2011 at 8:48 PM, Bob
> Carpenter 
> wrote:
> > I'd like to write a driver using Ruby language for a
> Hauppauge WinTV-HVR-1150 card.
> >
> > I will be attaching an NTSC analog camera to the
> composite video input and want to stream the video across
> the internet to a client app that can display it.
> >
> > I've never written a PCI driver.
> >
> > The 1150 card will be attached to an Ubuntu 10.04
> box.
> >
> > I'd welcome any ideas or advice to get started.
> >
> > Thanks,
> >
> > --Bob
> 
> Several points:
> 
> Under Linux, you don't write drivers in Ruby.  You
> write them in C.
> 
> The HVR-1150 already has a driver under Linux.
> 
> You probably want to be writing a Ruby application, not a
> driver.
> 
> You should probably start by reading the video4linux2 API
> documentation, which is the kernel API for interacting with
> tuner
> drivers.
> 
> Devin
> 
> -- 
> Devin J. Heitmueller - Kernel Labs
> http://www.kernellabs.com
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html