Met à jour les paramètres du modèle de transcodage personnalisé.
Description de l'opération
Si une tâche dont l'état est « Submitted » spécifie l'utilisation de ce modèle personnalisé, les informations du modèle de transcodage correspondant ne peuvent pas être mises à jour.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
mts:UpdateTemplate |
update |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| TemplateId |
string |
Oui |
Le nom du modèle. Le nom peut comporter jusqu'à 128 octets. |
16f01ad6175e4230ac42bb5182cd**** |
| Name |
string |
Oui |
Le format de conteneur. La valeur est un objet JSON. Format par défaut : MP4.
Pour plus d'informations, consultez le paramètre Container de la rubrique « Détails des paramètres ». |
MPS-exemple |
| Container |
string |
Non |
Les configurations du flux vidéo. La valeur est un objet JSON. Pour plus d'informations, consultez le paramètre Video de la rubrique « Détails des paramètres ». |
{"Format":"mp4"} |
| Video |
string |
Non |
Les configurations du flux audio. La valeur est un objet JSON. Pour plus d'informations, consultez le paramètre Audio de la rubrique « Détails des paramètres ». |
{"Codec":"H.264","Profile":"high","Bitrate":"500","Crf":"15","Width":"256","Height":"800","Fps":"25","Gop":"10"} |
| Audio |
string |
Non |
Les configurations de remultiplexage. La valeur est un objet JSON. Pour plus d'informations, consultez le paramètre MuxConfig de la rubrique « Détails des paramètres ». |
{"Codec":"aac","Samplerate":"44100","Bitrate":"500","Channels":"2"} |
| MuxConfig |
string |
Non |
Les configurations générales de transcodage. La valeur est un objet JSON. Pour plus d'informations, consultez le paramètre TransConfig de la rubrique « Détails des paramètres ». |
{"Segment":{"Duration":"10"}} |
| TransConfig |
string |
Non |
L'identifiant de la requête. |
{"TransMode":"onepass"} |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| RequestId |
string |
Le type du modèle de transcodage. |
5E4FB22E-B9EA-4E24-8FFC-B407EA71QW21 |
| Template |
object |
Le type du modèle de transcodage. |
|
| Video |
object |
Les configurations du codec vidéo. |
|
| LongShortMode |
string |
The size of the buffer.
|
false |
| Bufsize |
string |
The level of quality control on the video. |
6000 |
| Degrain |
string |
The average bitrate range of the video. |
10 |
| BitrateBnd |
object |
The upper limit of the total bitrate. Unit: Kbit/s. |
|
| Max |
string |
The lower limit of the total bitrate. Unit: Kbit/s. |
500 |
| Min |
string |
The pixel format. Valid values: standard pixel formats such as yuv420p and yuvj420p. |
100 |
| PixFmt |
string |
The black borders added to the video.
|
yuv420p |
| Pad |
string |
The video codec. Default value: H.264. |
1280:800:0:140 |
| Codec |
string |
The height of the output video.
|
H.264 |
| Height |
string |
The level of the independent denoising algorithm. |
800 |
| Qscale |
string |
The method used to crop the video.
|
1 |
| Crop |
string |
The average bitrate of the video. Unit: Kbit/s. |
border |
| Bitrate |
string |
The maximum bitrate of the video. Unit: Kbit/s. |
200 |
| Maxrate |
string |
The maximum frame rate. |
500 |
| MaxFps |
string |
The encoding profile. Valid values:
|
60 |
| Profile |
string |
The bitrate quality control factor.
|
high |
| Crf |
string |
Indicates whether the video stream is deleted. Valid values:
|
15 |
| Remove |
string |
The maximum number of frames between two keyframes. Default value: 250. |
false |
| Gop |
string |
The width of the video.
|
10 |
| Width |
string |
The frame rate.
|
256 |
| Fps |
string |
The preset video algorithm. Default value: medium. Valid values:
|
25 |
| Preset |
string |
The scan mode. Valid values:
|
medium |
| ScanMode |
string |
The policy of resolution adjustment. |
interlaced |
| ResoPriority |
string |
The general transcoding configurations. |
1 |
| Hdr2sdr |
string |
Indicates whether the HDR2SDR conversion feature is enabled. If this feature is enabled, high dynamic range (HDR) videos are transcoded to standard dynamic range (SDR) videos. |
true |
| NarrowBand |
object |
The Narrowband HD settings. |
|
| Version |
string |
The Narrowband HD version. Only 1.0 may be returned. |
1.0 |
| Abrmax |
number |
The upper limit of the dynamic bitrate. If this parameter is set, the average bitrate is in the range of (0, 1000000]. |
3000 |
| MaxAbrRatio |
number |
The maximum ratio of the upper limit of dynamic bitrate. If this parameter is set, the value of Abrmax does not exceed x times of the source video bitrate. Valid values: (0,1.0]. |
1.0 |
| TransConfig |
object |
Indique si le débit binaire audio est vérifié. Si le débit binaire de l'audio de sortie est supérieur au débit binaire de l'audio d'entrée, le débit binaire de l'audio d'entrée est conservé après le transcodage. Dans ce cas, le débit binaire audio spécifié ne prend pas effet. Ce paramètre a une priorité inférieure à celle du paramètre IsCheckAudioBitrateFail. Valeurs valides :
|
|
| IsCheckAudioBitrate |
string |
The transcoding mode. Default value: onepass. Valid values:
|
false |
| TransMode |
string |
Indicates whether the resolution is checked. If the output resolution is higher than the input resolution based on the width or height, the input resolution is retained after transcoding. Valid values:
|
onepass |
| IsCheckReso |
string |
Indicates whether the video bitrate is checked. This parameter has a higher priority than the IsCheckVideoBitrate parameter. Valid values:
|
false |
| IsCheckVideoBitrateFail |
string |
The method of resolution adjustment. Default value: none. Valid values:
|
false |
| AdjDarMethod |
string |
Indicates whether the video bitrate is checked. If this parameter is set to true and the system detects that the video bitrate of the output file is greater than that of the input file, the video bitrate of the input file is retained after transcoding. Valid values:
|
none |
| IsCheckVideoBitrate |
string |
Indicates whether the resolution is checked. If this parameter is set to true and the system detects that the resolution of the output file is higher than that of the input file based on the width or height, an error that indicates a transcoding failure is returned. Valid values:
|
false |
| IsCheckResoFail |
string |
Indicates whether the audio bitrate is checked. This parameter has a higher priority than the IsCheckAudioBitrate parameter. Valid values:
|
false |
| IsCheckAudioBitrateFail |
string |
The status of the template. Valid values:
|
false |
| State |
string |
Les configurations de transmuxage. |
Normal |
| MuxConfig |
object |
Les configurations de transmuxage pour WebP. |
|
| Webp |
object |
The loop count. |
|
| Loop |
string |
The transmuxing configurations for GIF. |
0 |
| Gif |
object |
The duration for which the final frame is paused. Unit: milliseconds. |
|
| FinalDelay |
string |
The color dithering algorithm of the palette. Valid values: sierra and bayer. |
false |
| DitherMode |
string |
The loop count. |
bayer |
| Loop |
string |
Indicates whether the custom palette is used. |
0 |
| IsCustomPalette |
string |
The segment configurations. |
0 |
| Segment |
object |
The length of the segment. Unit: seconds. |
|
| Duration |
string |
The name of the template. |
10 |
| Name |
string |
Les configurations du codec audio. |
MPS-exemple |
| Audio |
object |
Les paramètres du codec audio. |
|
| Profile |
string |
Indicates whether the audio stream is deleted.
|
aac_low |
| Remove |
string |
The audio codec format. Default value: aac. Valid values:
|
false |
| Codec |
string |
The sampling rate.
|
aac |
| Samplerate |
string |
The level of the independent denoising algorithm. |
44100 |
| Qscale |
string |
The number of sound channels. Default value: 2. |
1 |
| Channels |
string |
The audio bitrate of the output file.
|
2 |
| Bitrate |
string |
The ID of the transcoding template. |
500 |
| Volume |
object |
The volume control configurations. |
|
| Method |
string |
The volume adjustment method. Valid values:
|
auto |
| TruePeak |
string |
The peak volume.
|
-1 |
| IntegratedLoudnessTarget |
string |
The expected volume.
|
-6 |
| Level |
string |
The increased volume relative to the volume of the input audio.
|
-20 |
| LoudnessRangeTarget |
string |
The range of the volume relative to the expected volume.
|
8 |
| PeakLevel |
string |
The volume adjustment coefficient. This parameter takes effect only if the value of Method is adaptive. Valid values: [0,1]. Default value: 0.9. |
0.9 |
| Id |
string |
Les configurations du conteneur. |
16f01ad6175e4230ac42bb5182cd**** |
| Container |
object |
Le format du conteneur. |
|
| Format |
string |
The container format. |
mp4 |
Exemples
JSON format
{
"RequestId": "5E4FB22E-B9EA-4E24-8FFC-B407EA71QW21",
"Template": {
"Video": {
"LongShortMode": "false",
"Bufsize": "6000",
"Degrain": "10",
"BitrateBnd": {
"Max": "500",
"Min": "100"
},
"PixFmt": "yuv420p",
"Pad": "1280:800:0:140",
"Codec": "H.264",
"Height": "800",
"Qscale": "1",
"Crop": "border",
"Bitrate": "200",
"Maxrate": "500",
"MaxFps": "60",
"Profile": "high",
"Crf": "15",
"Remove": "false",
"Gop": "10",
"Width": "256",
"Fps": "25",
"Preset": "medium",
"ScanMode": "interlaced",
"ResoPriority": "1",
"Hdr2sdr": "true",
"NarrowBand": {
"Version": "1.0",
"Abrmax": 3000,
"MaxAbrRatio": 1
}
},
"TransConfig": {
"IsCheckAudioBitrate": "false",
"TransMode": "onepass",
"IsCheckReso": "false",
"IsCheckVideoBitrateFail": "false",
"AdjDarMethod": "none",
"IsCheckVideoBitrate": "false",
"IsCheckResoFail": "false",
"IsCheckAudioBitrateFail": "false"
},
"State": "Normal",
"MuxConfig": {
"Webp": {
"Loop": "0"
},
"Gif": {
"FinalDelay": "false",
"DitherMode": "bayer",
"Loop": "0",
"IsCustomPalette": "0"
},
"Segment": {
"Duration": "10"
}
},
"Name": "MPS-example",
"Audio": {
"Profile": "aac_low",
"Remove": "false",
"Codec": "aac",
"Samplerate": "44100",
"Qscale": "1",
"Channels": "2",
"Bitrate": "500",
"Volume": {
"Method": "auto",
"TruePeak": "-1",
"IntegratedLoudnessTarget": "-6",
"Level": "-20",
"LoudnessRangeTarget": "8",
"PeakLevel": "0.9"
}
},
"Id": "16f01ad6175e4230ac42bb5182cd****",
"Container": {
"Format": "mp4"
}
}
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.