Demo programs, Console demo (2226demo), Python demo (demo.py) – Sensoray 2224 Linux User Manual

Page 5

Advertising
background image

5. Wait until all steps of the updater are completed.

6. Follow the prompts from the program.

Demo programs

There are 3 demos included with the SDK. A python demo (demo.py), a very basic

capture program (capture.c) and a console demo (2226demo). The overlay
functionality is shown in the capture program and the preview functionality is shown in

the python demo.

Console Demo (2226demo)

1. Make sure video source is connected and turned on.

2. Make demo with command “make demo”

3. “./2226demo” runs the demo application.

4. Type “h” followed by enter for help menu.

5. To change input, view menu for available inputs and select desired connection

with the “vinput” command. Eg. “vinput 0”.

6. To change bitrate, use vrate command followed by bitrate in kbits/s. Eg. “vrate

2000” for 2Mbps.

7. Other commands and settings such as brightness, contrast, and text overlays

are shown in the help menu.

8. To record to file, type “rec filename.mpg”

9. wait 20 seconds to record input

10. Type “stop” to stop record

11. Exit demo with quit command.

Python Demo (demo.py)

The python demo is started by the command “./demo.py”.

Advertising
This manual is related to the following products: