Get or set the OSG configurations
This URL tells camera how the OSG is attached on the video stream. Before enabled OSG, you should upload the OSG image to the camera by OSG_IMAGE URL.
Every video stream has its own OSG configurations. The CHANNEL command is used to indicate the target video stream.
Here lists limitations of OSG functions in Dxx, Exx, Bxx and Ixx camera models.
- The max. OSG image size is 640x480.
- The OSG image must be located on the inside of video image.
State,sx,sy,Width,Height,AlphaBlending,Transparent
Input Argument Possible Value Description State 0, 1 0: Disable OSG, 1: Enable OSG sx 0 ≤ sx ≤ (Wr-1-Wo)
where
Wr is the width of video resolution,
Wo is the width of OSG image.The x-coordinate of video streaming for attaching OSG image
For example:
The sx range is from 0 to 1951 (=2592-640-1)
when the video stream resolution is 2592x1944 and OSG image size is 640x480.sy 0 ≤ sy ≤((Hr-Ho)/2-1)
where
Hr is the height of video image,
Ho is the height of OSG image.The y-coordinate of video streaming for attaching OSG image
For example:
The sy range is from 0 to 1291 (=(1944+640)/2-1)
when the video stream resolution is 2592x1944 and OSG image size is 640x480.width 2 ≤ width ≤ 640 The width of OSG image. It must be multiples of 4.
If the width is not multiples of 4, firmware will attached transparent vertical lines on the right side of image to fit this rule.height 1 ≤ height ≤ 480 The height of OSG image AlphaBlending YYUUVV The YUV value of alpha blending color (background color) in OSG image.
This color could be set the transparent level.
YY: the hexadecimal value of Y value. It is from 00~FF.
UU: the hexadecimal value of U value. It is from 00~FF.
VV: the hexadecimal value of V value. It is from 00~FF.
You could read this value from YUV tool when you transformed the OSG image to YUV 422 format.Transparent 0,1,2,3,4 Transparent level of background color.
0: 0% transparent level.
1: 25% transparent level.
2: 50% transparent level.
3: 75% transparent level.
4: 100% transparent level.
OSG_CONFIG='0,0,0,80,80,000000,4'
OK: OSG_CONFIG='1,0,0,80,80,C0443A,4'
or
ERROR: OSG_CONFIG='0,0,0,80,80,000000,4'
Valid
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&CHANNEL=1&OSG_CONFIG
or
http://ip:port/cgi-bin/cmd/encoder?CHANNEL=1&OSG_CONFIG
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&CHANNEL=1&OSG_CONFIG='1,0,0,80,80,C0443A,4'
or
http://ip:port/cgi-bin/cmd/encoder?CHANNEL=1&OSG_CONFIG='1,0,0,80,80,C0443A,4'