Video API Extensions legacy

From ElphelWiki
Revision as of 13:26, 28 December 2005 by Khlut (talk | contribs) (Reverted edit of, changed back to last version by Alexlp)
Jump to: navigation, search

in English | [[{{{de}}}|deutsch]] | [[{{{fr}}}|français]] | по-русски | автоперевод | 中文版 | 机械翻译

Given realization of Video API has a number of opportunities which are absent in standard Axis Video API.

Extensions enabling

By default the Video API extensions are blocked. For unblocking it is necessary to set a corresponding variable:

Obtaining of static and dynamic images

The standard interface for the static and dynamic images obtaining in JPEG and MJPG formats is have a few additional parameters.

e_dcm_hor - horisontal decimation (resolution/image size reduction)
e_dcm_vert - vertical decimation (resolution/image size reduction)
e_bin_hor - horizontal binning (sensitivity for lower resolution)
e_bin_vert - vertical binning (sensitivity for lower resolution)
e_woi_width - sensor active window width (before decimation)
e_woi_height - sensor active window height (before decimation)
e_woi_left - sensor active window left margin (before decimation)
e_woi_top - sensor active window top margin (before decimation)
e_virt_width - virtual frame width
e_virt_height - virtual frame height
e_fliph - flip (mirror) image horizontally (uses in-sensor capabilities)
e_flipv - flip (mirror) image vertically (uses in-sensor capabilities)
e_quality - JPEG Quality (%)


Example of the static image obtaining with using the next parameters:

Example of the dynamic image (MPJPG) obtaining with using the next parameters:

You can play this videostream, for example, by using the MPlayer (more detailed description see at Using Mplayer With Video API):

$mplayer -demuxer lavf ""

If any from parameters is not specified, the default values are used. You can find these values at the address:

Note: All API extensions have the prefix "E_".

You can change the default value by standard way for Axis Video API. For example:

Obtaining the information about the system condition and default values

For obtaining the information about the system condition variable you must use the next path:

In an addition to the obtaining of the standard "rfc" format there is the obtaining in XML format also. You must use the responseformat parameter for it. For example:

Note. If the responseformat not specified or specified incorrect, will be used the default value of "rfc".

Video streaming RTP/MJPG and RTP/Theora

The Elphel cameras can transfer the video stream by RTP protocol.



Exposure control

The Elphel cameras support the standard and advanced exposure control interface. About the standard settings see Video_API

For autoexposure enabling is necessary to use the following command:

Enabling the manual control of exposure:

Obtaining the exposure state:

Window settings:

Exposure max.values: