set-video-output-format

Use this interface to set color space and quantization for output video.

Obtain value range of video format parameters by calling get-info.

"video-format": {
    "output-color-fmt": [],       // value range of color space 
    "quant-range": [],           // value range of quantization range 
    "sat-range": [],             // value range of saturation range 
  }

HTTP Request

GET http://ip/usapi?method=set-video-output-format&is-color-fmt=0&color-fmt=1&is-quant-range=0&quant-range=1&is-sat-range=0&sat-range=1
Parameter Description
method set-video-output-format
is-color-fmt Whether to customize color space. The default value is 0, which indicates to auto-set color space, while 1 indicates a custom setting.
color-fmt Indicates the color format parameter value.
is-quant-range Whether to customize quantization. The default value is 0, which indicates to auto-set quantization, while 1 indicates a custom setting.
quant-range Indicates the quantization parameter value.
is-sat-range Whether to customize saturation. The default value is 0, which indicates to auto-set saturation, while 1 indicates a custom setting.
sat-range Indicates the saturation range. The default value is 2.

Response Body

{
  "result": 0
}
Item Description
result 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""