更新直播录制转点播配置。
接口说明
本接口的单用户 QPS 限制为 1000 次/分钟。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
live:UpdateLiveRecordVodConfig |
update |
*Domain
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
地域 ID。 |
cn-shanghai |
| DomainName |
string |
是 |
主播流域名。 |
example.com |
| AppName |
string |
是 |
播流所属应用名称。您可在流管理页面查看 AppName。 |
testName |
| StreamName |
string |
否 |
播流名称。您可在流管理页面查看 StreamName。 |
stream |
| VodTranscodeGroupId |
string |
否 |
重要 当使用按格式配置功能,即传入 RecordFormat 参数时,此参数无效,可不传 |
e2d796d3bb5fd8049d32bff62f94**** |
| CycleDuration |
integer |
否 |
周期录制时长。单位:秒。默认值为 3600,取值范围:300~21600。 |
300 |
| AutoCompose |
string |
否 |
重要 当使用按格式配置功能,即传入 RecordFormat 参数时,此参数无效,可不传
|
OFF |
| ComposeVodTranscodeGroupId |
string |
否 |
重要 当使用按格式配置功能,即传入 RecordFormat 参数时,此参数无效,可不传 说明
通过 查询转码配置列表 获取 |
***** |
| OnDemand |
integer |
否 |
按需录制,取值:
|
0 |
| DelayTime |
integer |
否 |
断流拼接时长, 直播断流时长超过设定的拼接时长后,将会生成新文件,断流拼接时长支持 15~21600 秒。 |
180 |
| RecordFormat |
array<object> |
否 |
按格式配置录制参数列表 |
|
|
object |
否 |
录制格式配置 重要 RecordFormat 内部的录制格式不支持更新,如原有配置中的 RecordFormat 包含储存格式 m3u8 和 flv,那么仅可对这两个格式下的配置参数进行修改,不能通过本接口更新储存格式为 m3u8,flv,mp4 |
||
| Format |
string |
否 |
录制储存格式 |
m3u8 |
| SliceDuration |
integer |
否 |
单个切片时长,单位:秒 重要 当 RecordFormat.N.Format(格式)设为 m3u8 时,本参数才有效。 |
30 |
| AutoCompose |
string |
否 |
自动合并,设置为 ON 表示开启自动合并。取值:
|
ON |
| VideoProcess |
string |
否 |
视频处理源。取值:
如需同时处理源视频和合并后视频,请将两个取值同时传入,以","分隔,如 origin,compose |
origin |
| ProcessMethod |
string |
否 |
视频处理方式。取值:
|
transcode |
| ProcessTemplateId |
string |
否 |
视频处理转码模版组 Id 或工作流模版 Id 说明
此处传入的 Id 必须与 ProcessMethod 传入的视频处理方式对应,即 ProcessMethod 传入 transcode,此处应使用转码模版组 Id |
e2d796d3bb5fd8049d32bff62f94**** |
| Tags |
string |
否 |
视频分类标签 |
sports |
| TranscodeTemplates |
array |
否 |
转码模版组列表 |
|
|
string |
否 |
说明
TranscodeTemplates 不允许传入 raw,属于保留标识。 RepeatList 表示为 TranscodeTemplates.N 中的 N,可理解为递增进行多个设置,如: TranscodeTemplates.1=sd, TranscodeTemplates.2=hd。 |
sd |
|
| FormatConfig |
boolean |
否 |
按格式配置点播视频设置参数,无需传入,默认为 true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
61C96B9A-F203-4EC5-8E43-CB92E68F67DF |
示例
正常返回示例
JSON格式
{
"RequestId": "61C96B9A-F203-4EC5-8E43-CB92E68F67DF"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ConfigAlreadyExists | Config has already exist. | |
| 400 | CommomLiveRcordConfigExisted | Commom liverecord config has already exist. | |
| 400 | InvalidAutoCompose.Malformed | Specified parameter AutoCompose is not valid. | |
| 400 | InvalidAutoComposeAndComposeVodTranscodeGroupId.Malformed | Specified parameter AutoCompose and ComposeVodTranscodeGroupId is not valid, must both empty or input | |
| 400 | InvalidParam | %s. | 参数校验失败 |
| 500 | InternalError | The request processing has failed due to backend service exception. | |
| 403 | InvalidRegion.Conflict | Specified parameter StorageLocation and Region is not match | |
| 404 | InvalidStorage.NotFound | Specified parameter StorageLocation is not exist | |
| 404 | InvalidTemplateGroupId.NotFound | Specified parameter vodTranscodeGroupId or composeVodTranscodeGroupId is not exist |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。