Difference between revisions of "GStreamer Pan Tilt Zoom and Rotate Element - Demo Tool"

From RidgeRun Developer Connection
Jump to: navigation, search
Line 1: Line 1:
 
{{GStreamer Pan Tilt Zoom and Rotate Element Page|  
 
{{GStreamer Pan Tilt Zoom and Rotate Element Page|  
[[GStreamer Pan Tilt Zoom and Rotate Element - Examples|Examples]]|
+
[[GStreamer Pan Tilt Zoom and Rotate Element - iMX6 Pipelines|iMX6 Pipelines]]|
 
[[GStreamer Pan Tilt Zoom and Rotate Element|Home]]|
 
[[GStreamer Pan Tilt Zoom and Rotate Element|Home]]|
 
The demo tool is a Python script called {{code|ptzr_test}} located in the {{code|tests/examples}} directory. It can be used to demonstrate and test the different transformations that are possible using the [[GStreamer Pan Tilt Zoom and Rotate Element|GStreamer PTZR element]].
 
The demo tool is a Python script called {{code|ptzr_test}} located in the {{code|tests/examples}} directory. It can be used to demonstrate and test the different transformations that are possible using the [[GStreamer Pan Tilt Zoom and Rotate Element|GStreamer PTZR element]].

Revision as of 12:42, 13 February 2018


iMX6 Pipelines

Home

Home

The demo tool is a Python script called ptzr_test located in the tests/examples directory. It can be used to demonstrate and test the different transformations that are possible using the GStreamer PTZR element.

ptzr_test

The ptzr_test script uses Ridgerun's GStreamer Daemon (gstd) to create a pipeline that can be used to demo the features of GstPTZR. If gstd is not running, it will try to start it.

It will create a pipeline with the name p0 with a GstPTZR element with the name ptzr0. The basic pipeline that will be created will use autovideosrc to pick the first available video source (a webcam, if available; a videotestsrc if not), with some basic caps. If a pipeline with those characteristics already exists, it will use it.

It will allow the user to manipulate the different properties of the GstPTZR element in a number of different ways, according to the mode that is selected.

To start the script, run it directly in your console:

user@host:~/gst-ptzr$ tests/examples/ptzr_test

Modes of operation

The demo tool can be used in a number of different configurations, according to the application. This section describes the different modes and the ways to interact with the element in each mode.

Interactive

Interactive mode is the default mode. It can be started explicitly by using:

user@host:~/gst-ptzr$ tests/examples/ptzr_test -i

It will show a curses UI with all the information you need to control the GstPTZR element.

Error creating thumbnail: Unable to save thumbnail to destination
Interactive mode


Command line

TBD

Demo

TBD

Script

TBD

Other options

Debug mode

TBD

Loop

TBD

Compatibility

ptzr_test has been tested with Python 2.7 and 3.5. If any compatibility issues arise, please report them.

It requires the following Python libraries:

cmd
curses
psutil


iMX6 Pipelines

Home

Home