tencent cloud

文档反馈

ModifyQualityControlTemplate

最后更新时间:2024-11-07 11:23:43

1. API Description

Domain name for API request: mps.tencentcloudapi.com.

This API is used to modify a media quality inspection template.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyQualityControlTemplate.
Version Yes String Common Params. The value used for this API: 2019-06-12.
Region No String Common Params. This parameter is not required for this API.
Definition Yes Integer Unique identifier of a media quality inspection template.
Name No String Media quality inspection template name, with a length limit of 64 characters.
Comment No String Template description, with a length limit of 256 characters.
QualityControlItemSet.N No Array of QualityControlItemConfig Media quality inspection configuration parameters.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Modifying a Media Quality Inspection Template

Input Example

POST / HTTP/1.1
Host: mps.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyQualityControlTemplate
<Common request parameters>



{
    "Definition": 200090,
    "Name": "example2",
    "Comment": "",
    "QualityControlItemSet": [
        {
            "Type": "LowEvaluation",
            "Switch": "OFF",
            "Threshold": "60",
            "Duration": 0,
            "IntervalTime": 1000
        },
        {
            "Type": "Mosaic",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "CrashScreen",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "Blur",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "BlackWhiteEdge",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "LowLighting",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "HighLighting",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "NoVoice",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "LowVoice",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "HighVoice",
            "Switch": "OFF",
            "Duration": 0,
            "IntervalTime": 0
        },
        {
            "Type": "VideoResolutionChanged",
            "Switch": "ON"
        },
        {
            "Type": "AudioSampleRateChanged",
            "Switch": "ON"
        },
        {
            "Type": "AudioChannelsChanged",
            "Switch": "ON"
        },
        {
            "Type": "ParameterSetsChanged",
            "Switch": "ON"
        },
        {
            "Type": "DarOrSarInvalid",
            "Switch": "ON"
        },
        {
            "Type": "TimestampFallback",
            "Switch": "ON"
        },
        {
            "Type": "DtsJitter",
            "Switch": "ON"
        },
        {
            "Type": "PtsJitter",
            "Switch": "ON"
        },
        {
            "Type": "AACDurationDeviation",
            "Switch": "ON"
        },
        {
            "Type": "AudioDroppingFrames",
            "Switch": "ON"
        },
        {
            "Type": "VideoDroppingFrames",
            "Switch": "ON"
        },
        {
            "Type": "AVTimestampInterleave",
            "Switch": "ON"
        },
        {
            "Type": "PtsLessThanDts",
            "Switch": "ON"
        },
        {
            "Type": "ReceiveFpsJitter",
            "Switch": "ON"
        },
        {
            "Type": "ReceiveFpsTooSmall",
            "Switch": "ON"
        },
        {
            "Type": "FpsJitter",
            "Switch": "ON"
        },
        {
            "Type": "StreamOpenFailed",
            "Switch": "ON"
        },
        {
            "Type": "StreamEnd",
            "Switch": "ON"
        },
        {
            "Type": "StreamParseFailed",
            "Switch": "ON"
        },
        {
            "Type": "VideoFirstFrameNotIdr",
            "Switch": "ON"
        },
        {
            "Type": "StreamNALUError",
            "Switch": "ON"
        },
        {
            "Type": "TsStreamNoAud",
            "Switch": "ON"
        },
        {
            "Type": "AudioStreamLack",
            "Switch": "ON"
        },
        {
            "Type": "VideoStreamLack",
            "Switch": "ON"
        },
        {
            "Type": "LackAudioRecover",
            "Switch": "ON"
        },
        {
            "Type": "LackVideoRecover",
            "Switch": "ON"
        },
        {
            "Type": "VideoBitrateOutofRange",
            "Switch": "ON"
        },
        {
            "Type": "AudioBitrateOutofRange",
            "Switch": "ON"
        },
        {
            "Type": "VideoDecodeFailed",
            "Switch": "ON"
        },
        {
            "Type": "AudioDecodeFailed",
            "Switch": "ON"
        },
        {
            "Type": "AudioOutOfPhase",
            "Switch": "ON"
        },
        {
            "Type": "VideoDuplicatedFrame",
            "Switch": "ON"
        },
        {
            "Type": "AudioDuplicatedFrame",
            "Switch": "ON"
        },
        {
            "Type": "VideoRotation",
            "Switch": "ON"
        },
        {
            "Type": "TsMultiPrograms",
            "Switch": "ON"
        },
        {
            "Type": "Mp4InvalidCodecFourcc",
            "Switch": "ON"
        },
        {
            "Type": "HLSBadM3u8Format",
            "Switch": "ON"
        },
        {
            "Type": "HLSInvalidMasterM3u8",
            "Switch": "ON"
        },
        {
            "Type": "HLSInvalidMediaM3u8",
            "Switch": "ON"
        },
        {
            "Type": "HLSMasterM3u8Recommended",
            "Switch": "ON"
        },
        {
            "Type": "HLSMediaM3u8Recommended",
            "Switch": "ON"
        },
        {
            "Type": "HLSMediaM3u8DiscontinuityExist",
            "Switch": "ON"
        },
        {
            "Type": "HLSMediaSegmentsStreamNumChange",
            "Switch": "ON"
        },
        {
            "Type": "HLSMediaSegmentsPTSJitterDeviation",
            "Switch": "ON"
        },
        {
            "Type": "HLSMediaSegmentsDTSJitterDeviation",
            "Switch": "ON"
        },
        {
            "Type": "TimecodeTrackExist",
            "Switch": "ON"
        }
    ]
}

Output Example

{
    "Response": {
        "RequestId": "7c43b64a-8f21-4c2e-ab6e-a490ee5c439d"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.InvalidMpsUser Operation failed: unauthorized MPS user.
InternalError Internal error.
InternalError.AccessDBError Data error.
InvalidParameterValue Incorrect parameter value.
InvalidParameterValue.AudioBitrate Parameter error: Audio stream bitrate.
InvalidParameterValue.AudioChannel Incorrect parameter value: AudioChannel.
InvalidParameterValue.AudioCodec Parameter error: audio stream codec.
InvalidParameterValue.AudioSampleRate Parameter error: audio stream sample rate.
InvalidParameterValue.Container Parameter error: container format.
InvalidParameterValue.Fps Parameter error: video frame rate.
InvalidParameterValue.Name Incorrect parameter value: Name exceeds the length limit.
InvalidParameterValue.RemoveAudio Incorrect parameter value: RemoveAudio.
InvalidParameterValue.RemoveVideo Incorrect parameter value: RemoveVideo.
InvalidParameterValue.Resolution Parameter error: Incorrect resolution.
InvalidParameterValue.ResolutionAdaptive Invalid ResolutionAdaptive
InvalidParameterValue.SampleRate Invalid audio sample rate.
InvalidParameterValue.TEHDType Incorrect parameter value: invalid TEHD Type .
InvalidParameterValue.Type Parameter error: incorrect Type value.
InvalidParameterValue.VideoBitrate Parameter error: video stream bitrate.
InvalidParameterValue.VideoCodec Parameter error: video stream codec.
ResourceNotFound.TemplateNotExist The resource does not exist: the template does not exist.
联系我们

联系我们,为您的业务提供专属服务。

技术支持

如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

7x24 电话支持