STREAM_POSITION

 

Description

In high resolution camera like 5M pixel camera, the encoder engine could crop and encode the video from sensor/ISP into several VGA video streams. This URL command gives the x and y coordinates (x,y) of the top left-hand corner of all VGA video streams. The following figure is an example of illustrating how to define the (x,y) of four VGA video streams.

There are four video streams from the encoder. The video resolution of them is fixed to VGA. Therefore, we don't need to provide the bottom right-hand corner position of VGA image to setup the cropping video window.
Because the video image clopping capability is vary with different ISP and video encoders, the format of this URL has one input argument for the number of cropping VGA streams. Currently, we have 4 cropping VGA streams for PlatformK camera.

Input Argument

n,X1,Y1,X2,Y2,X3,Y3,X4,Y4

Input Argument Attribute Description
n integer.
It is fixed to 4 in platformK camera.
The number of cropping VGA streams.
Xn,Yn Xn: horizontal coordinate in pixel of top left-hand corner of cropping VGA stream n.
Yn: vertical coordinate in pixel of top left-hand corner of cropping VGA stream n.
Xn,Yn have to be in the range of (0,0) ~ (Xmax-640, Ymax-480),
where Xmax and Ymax are the maximum video image from the sensor / ISP.
The coordinates of top left-hand corner of cropping VGA stream n.

Attribute

Return of Message

STREAM_POSITION='4,296,269,1065,455,466,1068,1219,1172'

OK: STREAM_POSITION='4,296,269,1065,455,466,1068,1219,1172'
or
ERROR: STREAM_POSITION='4,296,269,1065,455,466,1068,1219,1172'
or
ERROR: STREAM_POSITION not found

Applicability

Platform Devices Supported Firmware Version
PlatformK Camera with OV5653 sensor A1D-311-V5.99.06 and later

Statue

Valid

See also

None

Example

http://ip:port/cgi-bin/encoder?USER=admin&PWD=123456&STREAM_POSITION
or
http://ip:port/cgi-bin/cmd/encoder?STREAM_POSITION

http://ip:port/cgi-bin/encoder?USER=admin&PWD=123456&STREAM_POSITION=4,296,269,1065,455,466,1068,1219,1172
or
http://ip:port/cgi-bin/cmd/encoder?STREAM_POSITION=4,296,269,1065,455,466,1068,1219,1172

Back To

HOME, ENCODER CGI