你好,我这里开始录制成功,但是停止录制时返回404.

下面是我们服务端打印的日志,麻烦帮忙看下为什么,也没其他的报错,就只是返回404.

停止录制…请求: {
“audioProfile”:"",
“backgroundColor”:"",
“bitrate”:"",
“cname”:“myyf385565020”,
“fileNamePrefix”:"",
“fps”:"",
“height”:"",
“layoutType”:"",
“maxIdleTime”:"",
“maxResolutionUid”:"",
“mode”:“mix”,
“resourceId”:“nUwUbQf9Zg6tsgtLslGnDg0lk8RYaUE09pqOuSIgwfx3lzgVCMWRjVOVlklP2Vv4WQql9bv_KytJ_vfgOnxczs1a3TBT_eCgP4kBLiORVCNWBABHkzBW3M1N9of4YR7ni77S9yhIB1WKnbQR9878Kb2vIMkoKL8q4Ir2l5rwkI0vFMHzK0qk9a0AqzKkIyx0IGHbC99P1uB4LjeqJ0O0vvV2QnW_jumaZlGktWKo_gSDnt0WEaJcrUa1fspP6sd3j8rJGgz081vGZ9MJe0h5oDXzET6U75Qf6cKOrADWc0YT_ttwPBwQKAKzExfq9-q1”,
“sid”:“c2e1b8730a4343798a62ba9011e5641f”,
“token”:"",
“uid”:“689494016”,
“videoStreamType”:"",
“width”:""
}

返回结果:
{
“resourceId”:“nUwUbQf9Zg6tsgtLslGnDg0lk8RYaUE09pqOuSIgwfx3lzgVCMWRjVOVlklP2Vv4WQql9bv_KytJ_vfgOnxczs1a3TBT_eCgP4kBLiORVCNWBABHkzBW3M1N9of4YR7ni77S9yhIB1WKnbQR9878Kb2vIMkoKL8q4Ir2l5rwkI0vFMHzK0qk9a0AqzKkIyx0IGHbC99P1uB4LjeqJ0O0vvV2QnW_jumaZlGktWKo_gSDnt0WEaJcrUa1fspP6sd3j8rJGgz081vGZ9MJe0h5oDXzET6U75Qf6cKOrADWc0YT_ttwPBwQKAKzExfq9-q1”,
“sid”:“c2e1b8730a4343798a62ba9011e5641f”,
“code”:404
}

@ Zzh
大佬,又来骚扰你了~:sweat_smile:

从后台看到 errorCode(2):参数错误。

应该是因为你 start 时设置的码率不匹配, 你可以参考如何设置录制视频的分辨率设置 transcoding

{
“uid”:“689494016”,
“cname”:“myyf385565020”,
“clientRequest”:{
“storageConfig”:{
“bucket”:“myyf”,
“secretKey”:“IvcODbcqx5QjD6wWLkv0DXPzFaSBDj”,
“accessKey”:“LTAI4GCL8jD7qGJqmufuL1VU”,
“vendor”:2,
“region”:3,
“fileNamePrefix”:[
“agora”,
“doc123456”,
“20200701”
]
},
“recordingConfig”:{
“streamTypes”:2,
“videoStreamType”:1,
“audioProfile”:1,
“channelType”:0,
“maxIdleTime”:30,
“transcodingConfig”:{
“backgroundColor”:"#000000",
“mixedVideoLayout”:0,
“width”:360,
“fps”:15,
“bitrate”:150,
“height”:640
}
},
“token”:“006aa5cbdf575d0424d9e5ef94c5f93caacIABp2QKMIlNIMnIYCkw0r+tu5qKoMOgBcN5Cn/ka1Vj2hUoz8E++gu6xIgACvchn9+P+XgQAAQCHoP1eAgCHoP1eAwCHoP1eBACHoP1e”
}
}

是的,我不设置,直接使用默认的config就成功了,这玩意真不好设置啊,不太懂这些码率之类的,一配就错。:joy:

嗯嗯,可以参考上面给的文档来配置~