set-record-encoder-format

Use the interface to set recording parameters.

Request Mode

POST http://ip/mwapi/set-record-encoder-format
Name Description
duration The frame interval
video-bitrate The video encoding bitrate, in KB
resolution The resolution
codeType The codec type.
0: H.264
1: H.265
profile 0: Baseline, 1: Main Profile, 2: High Profile
encodingMode 0: VBR, 1: CBR
keyframeInterval The keyframe interval, in s
audioBitrate The video encoding bitrate, in KB
splitMode The file split mode.
0: by size
1: by time
splitBlock The file split size.
By size, in MB
By time: in minutes
fileNamePrefix The filename prefix
fileExtention The file extension.
0: MP4
1: MOV
recordSourceId The recording source ID.
0: Program
1: HDMI 1
2: HDMI 2
3: Web Camera
recordWithAudio Whether to record with the audio
scheduleMode The recording schedule mode.
0: None
1: Once
2: Daily
3: Weekly (not supported yet)
scheduleStartDate The start date of schedule (not supported yet)
scheduleEndDate The end date of schedule (not supported yet)
weeklyDate The weekly date for repeating recording (not supported yet)
scheduleRecordStartTime The start time of schedule recording (not supported yet)
scheduleRecordDuration The end time of schedule recording (not supported yet)
{
  "recordSourceId": 0,
  "recordWithAudio": 1,
  "resolution": "1920x1080",
  "duration": 166666,
  "video-bitrate": 8192,
  "codeType": 0,
  "keyframeInterval": 2,
  "profile": 0,
  "encodingMode": 1,
  "audioBitrate": 128,
  "fileNamePrefix": "UF_",
  "fileExtention": 0,
  "savePath": "/data/resource/album",
  "splitMode": 1,
  "splitBlock": 60
}

Response Body

{
    "message": "success",
    "status": 0
}
Name Description
status 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 ""