VGA_ASPECT_RATIO

 

Description

Access the aspect ratio configuration for VGA output resolution.

The VGA video resolution could be 640x480 (4:3) or 640x360 (16:9) in the SoC A1 camera if the aspect ratio in stream 1 and stream 2 are not the same. When the stream 1 video resolution is 1920x1080 (aspect ratio is 16:9) and the stream 2 video resolution is 640x480 (aspect ratio is 4:3), the distortion in height occurs in stream 2. If the stream 2 video resolution is 640x360, there is no video distoration in the stream 2 because the aspect ration in stream 1 and stream 2 are the same.

This URL is only effective in the video resolution is VGA. The following tables gives an example of how this setting affects the video output resolution in dual video streams.
Video Resolution Settings VGA_ASPECT_RATIO Output Video Resolution
Stream 1 Stream 2 Stream 1 Stream 2
2592x1944 1280x720 or 640x480 X 2592x1944 1280x720* or 640x480
2048x1536 1280x720 or 640x480 X 2048x1536 1280x720** or 640x480
1920x1080 or 1280x720 1280x720 X 1920x1080 or 1280x720 1280x720
1920x1080 or 1280x720 640x480 1 1920x1080 or 1280x720 640x360
0 1920x1080 or 1280x720 640x480***
640x480 640x480 X 640x480 640x480
640x480 1280x720 1 640x360 1280x720
0 640x480*** 1280x720
X : don't care
*     : crop the center image to 2592x1458 from 2592x1944, then down sample to 1280x720.
**   : crop the center image to 2048x1162 from 2048x1536, then down sample to 1280x720.
*** : the video distoration is in 640x480 video because the aspect ratio in stream 1 and stream 2 are not the same.

The firmware will terminate the video sessions if their video resolutions were changed. The remote hosts should connect to device again to get the video streams then.

The return message ERROR: VGA_ASPECT_RATIO not found will be returned if the device does not support this function.

Input Argument

n
where
0 : keep the VGA resolution to 640x480
1 : change the VGA resolution to 640x360 if the aspect ration in stream 1 and stream 2 are not the same

Attribute

Return of Message

VGA_ASPECT_RATIO='1'

OK: VGA_ASPECT_RATIO='1'
or
ERROR: VGA_ASPECT_RATIO='1'

Applicability

Status

Valid

See Also

VIDEO_RESOLUTION

Example

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

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&VGA_ASPECT_RATIO=1
or
http://ip:port/cgi-bin/cmd/encoder?VGA_ASPECT_RATIO=1

Back to

HOME, ENCODER CGI