set-video-output-format

Added in V1.4

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

Obtain value range for recording by calling get-info.

"video-format": {
    "output-color-fmt": [],       // range of color space
    "quant-range": [],           // range of quantization
    "sat-range": [],             // 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 set custom 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 set custom 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 set custom 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 ""