beautypg.com

Sensoray 2255 User Manual

Page 19

background image

Additionally, the V4L driver may not have all the features of the non-V4L driver. For instance, the
non-V4L driver has frame decimation. The V4L API, at the time the driver was written, had frame
decimation marked as an experimental feature.

Advantages of V4L driver:

The main advantage of the V4L driver over the non-V4L driver is standardized ioctl calls. There
are many V4L2 applications available in the Linux community. The best known V4L application for
display is xawtv.

Installation

Drivers and a demo application for Linux 2.6 are available for download from the 2255 page on
Sensoray's web site (www.sensoray.com). A full-featured demo application allows capture and
display of video on the host computer using XWindows.

An included SDK can be used to integrate video capture into any application. The SDK allows
maximum flexibility by providing an API for all the 2255’s functions. The source code of the demo
application is a suggested starting point for custom application development. The full source code
for the driver and middleware is available.

The Linux SDK requires a Linux distribution with development tools installed. It is assumed the
user is familiar with Linux compilation and C programming.

The steps for installing and running the software follow:

1) “tar xvzf drv-2255-linux.tgz”.

2) “cd drv-2255-linux/code”

3) make

4) connect the 2255(s) to the host computer via USB.

5) Insert the driver “insmod s2255.ko”

6) Make the demo application with “make –f make.demo”.

7) Connect composite video channel to Channel 1.

8) Run the demo application. “./s2255demo”

9) Start streaming to XWindows on channel 1. “Start 1”

10) When done, stop the stream “Stop 1”.

19