get-record-encoder-params 接口

获取录制参数信息。

请求方式

POST http://ip/mwapi/get-record-encoder-params

返回数据

{
    "duration": 166666,
    "video-bitrate": 1024,
    "resolution": "1920x1080",
    "codeType": 0,
    "profile": 0,
    "encodingMode": 1,
    "keyframeInterval": 2,
    "audioBitrate": 128,
    "splitMode": 1,
    "splitBlock": 60,
    "fileNamePrefix": "UF_",
    "savePath": "/data/resource/album",
    "fileExtention": 0,
    "recordSourceId": 0,
    "recordWithAudio": 1,
    "scheduleMode": 3,
    "scheduleStartDate": 1668096000000,
    "scheduleEndDate": 1668096000000,
    "weeklyDate": 254,
    "scheduleRecordStartTime": 1668164400000,
    "scheduleRecordDuration": 14410000,
    "encode-params": "{\"resolutions\":[{\"name\":\"1080P\",\"value\":\"1920x1080\"},{\"name\":\"720P\",\"value\":\"1280x720\"}],\"durations\":[{\"name\":\"60 FPS\",\"value\":\"166666\"},{\"name\":\"30 FPS\",\"value\":\"333333\"}],\"videoBitrates\":[{\"name\":\"20 Mbps\",\"value\":\"20480\"},{\"name\":\"16 Mbps\",\"value\":\"16384\"},{\"name\":\"8 Mbps\",\"value\":\"8192\"},{\"name\":\"4 Mbps\",\"value\":\"4096\"},{\"name\":\"2 Mbps\",\"value\":\"2048\"},{\"name\":\"1 Mbps\",\"value\":\"1024\"},{\"name\":\"512 Kbps\",\"value\":\"512\"}],\"codeType\":[{\"name\":\"H.264\",\"value\":\"0\"}],\"Profile\":[{\"name\":\"Baseline\",\"value\":\"0\"},{\"name\":\"Main Profile\",\"value\":\"1\"},{\"name\":\"High Profile\",\"value\":\"2\"}],\"encodingMode\":[{\"name\":\"VBR\",\"value\":\"0\"},{\"name\":\"CBR\",\"value\":\"1\"}],\"keyframeInterval\":[{\"name\":\"1s\",\"value\":\"1\"},{\"name\":\"2s\",\"value\":\"2\"},{\"name\":\"3s\",\"value\":\"3\"},{\"name\":\"4s\",\"value\":\"4\"},{\"name\":\"5s\",\"value\":\"5\"},{\"name\":\"6s\",\"value\":\"6\"},{\"name\":\"7s\",\"value\":\"7\"},{\"name\":\"8s\",\"value\":\"8\"},{\"name\":\"9s\",\"value\":\"9\"},{\"name\":\"10s\",\"value\":\"10\"},{\"name\":\"15s\",\"value\":\"15\"},{\"name\":\"20s\",\"value\":\"20\"},{\"name\":\"25s\",\"value\":\"25\"},{\"name\":\"30s\",\"value\":\"30\"}],\"audioCode\":[{\"name\":\"48Khz,aac,48kbps\",\"value\":\"48\"},{\"name\":\"48Khz,aac,64kbps\",\"value\":\"64\"},{\"name\":\"48Khz,aac,96kbps\",\"value\":\"96\"},{\"name\":\"48Khz,aac,128kbps\",\"value\":\"128\"},{\"name\":\"48Khz,aac,192kbps\",\"value\":\"192\"},{\"name\":\"48Khz,aac,256kbps\",\"value\":\"256\"}],\"savePath\":[{\"name\":\"Internal Storage\",\"value\":\"/data/resource/album\"}],\"splitByTime\":[{\"name\":\"10 minutes\",\"value\":\"10\"},{\"name\":\"20 minutes\",\"value\":\"20\"},{\"name\":\"30 minutes\",\"value\":\"30\"},{\"name\":\"1 hour\",\"value\":\"60\"},{\"name\":\"1.5 hours\",\"value\":\"90\"},{\"name\":\"2 hours\",\"value\":\"120\"}],\"splitBySize\":[{\"name\":\"100 MB\",\"value\":\"100\"},{\"name\":\"200 MB\",\"value\":\"200\"},{\"name\":\"500 MB\",\"value\":\"500\"},{\"name\":\"1 GB\",\"value\":\"1024\"},{\"name\":\"1.5 GB\",\"value\":\"1536\"},{\"name\":\"2 GB\",\"value\":\"2048\"},{\"name\":\"2.5 GB\",\"value\":\"2560\"},{\"name\":\"3 GB\",\"value\":\"3072\"},{\"name\":\"3.5 GB\",\"value\":\"3584\"},{\"name\":\"4 GB\",\"value\":\"4096\"}],\"fileExtention\":[{\"name\":\"MP4\",\"value\":\"0\"},{\"name\":\"MOV\",\"value\":\"1\"}],\"recordSources\":[{\"name\":\"Program\",\"value\":\"0\"},{\"name\":\"HDMI 1\",\"value\":\"1\"},{\"name\":\"HDMI 2\",\"value\":\"2\"},{\"name\":\"Web Camera\",\"value\":\"3\"}]}",
    "recording": 0,
    "status": 0
}
属性 说明
status 返回状态。0:数据获取成功,返回其它值请参考 API 状态码
recording 是否正在录制
duration 帧间隔
video-bitrate 视频编码位率,单位 KB
resolution 分辨率
codeType 编码方式,0:H.264,1:H.265
profile 0: Baseline,1: Main Profile,2: High Profile
encodingMode 0:VBR 1:CBR
keyframeInterval 关键帧间隔,单位 s
audioBitrate 音频编码位率,单位 KB
splitMode 文件分割方式,0: 按大小 1: 按时间
splitBlock 分割大小,按大小: 单位 MB、按时间: 单位分钟
fileNamePrefix 文件名前缀
fileExtention 文件拓展名,0: MP4、 1: MOV
recordSourceId 录制源 ID,0: Program、1: HDMI 1、2: HDMI 2、3: Web Camera
recordWithAudio 是否含音频
scheduleMode 定时录制任务类型,0:无 1:一次性 2:每天 3:每周
scheduleStartDate 任务开始时间戳,毫秒
scheduleEndDate 任务结束时戳,毫秒
weeklyDate 每周重复时间
scheduleRecordStartTime 录制开始时间戳,毫秒
scheduleRecordDuration 录制持续时间,毫秒
encode-params 编码参数可用范围

weeklyDate

typedef enum _record_schedule_day {
    RECORD_SCHEDULE_DAY_NONE = 0,
    RECORD_SCHEDULE_DAY_SUN = (0x1LL << 1),
    RECORD_SCHEDULE_DAY_MON = (0x1LL << 2),
    RECORD_SCHEDULE_DAY_TUE = (0x1LL << 3),
    RECORD_SCHEDULE_DAY_WED = (0x1LL << 4),
    RECORD_SCHEDULE_DAY_THU = (0x1LL << 5),
    RECORD_SCHEDULE_DAY_FRI = (0x1LL << 6),
    RECORD_SCHEDULE_DAY_SAT = (0x1LL << 7),
} record_schedule_day_t;

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果