set-video-mixer-config
Supported by Ultra Encode AIO only
Use this interface to specify parameters to combine input SDI and HDMI video.
You can obtain the ranges of mixer parameters using get-info.
"input-source": {
"video-mixer": {
"types": [], // range of locations
"pip": [], // range of picture in picture locations
"sbs": [], // range of side by side locations
},
}
HTTP Request
GET http://ip/usapi?method=set-video-mixer-config&input-device=1...
| Parameter | Description |
|---|---|
| method | set-video-mixer-config |
| input-device | Input mixer format. 1: same as SDI input 2: same as HDMI input |
| is-hdmi-top | The z-order for video mixer. 0: HDMI input as the bottom layer and SDI as top. 1: HDMI input as the top layer and SDI as bottom. |
| type | Video mixer mode. 0: picture in picture 1: side by side |
| location | Video mixer location. Picture-in-picture mode: 0: Custom 1: Top left corner 2: Top right corner 3: Bottom left corner 4: Bottom right corner Side-by-side mode: 0: Custom 1: Half |
| scale | Sub-picture scale ratio for a custom picture-in-picture position, in units of 1/1000. Valid range: 200 to 800. |
| x-offset | Horizontal offset of the sub-picture for a custom picture-in-picture position, in units of 1/1000. Valid range: 0 to (1000 - scale). |
| y-offset | Vertical offset of the sub-picture for a custom picture-in-picture position, in units of 1/1000. Valid range: 0 to (1000 - scale). |
| split | Split ratio for a custom side-by-side position, in units of 1/1000. Valid range: 200 to 800. |
Response Body
{
"result": 0
}
| Item | Description |
|---|---|
| result | Returned status. 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |