Consulte les modèles de transcodage personnalisés dans l'état spécifié.
Description de l'opération
Vous pouvez appeler cette opération jusqu'à 100 fois par seconde. Si le nombre d'appels par seconde dépasse la limite, une limitation de débit est déclenchée. Par conséquent, votre activité peut être affectée. Nous vous recommandons de prendre en compte cette limite lors de l'appel de cette opération. Pour plus d'informations, consultez Limite de QPS.
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:SearchTemplate |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| PageSize |
integer |
Non |
La taille de chaque page définie lors de la requête de pagination des résultats. |
10 |
| PageNumber |
integer |
Non |
Le numéro de la page à renvoyer. Valeur par défaut : 1. |
1 |
| State |
string |
Non |
L'état des modèles de transcodage personnalisés que vous souhaitez interroger. |
Normal |
| NamePrefix |
string |
Non |
Le préfixe de nom sur la base duquel vous souhaitez rechercher des modèles. |
S00000001 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les paramètres de réponse. |
||
| TotalCount |
integer |
Le nombre total de résultats de recherche. |
1 |
| TemplateList |
object |
||
| Template |
array<object> |
Les modèles de transcodage. |
|
|
array<object> |
Les configurations de codec vidéo. |
||
| Video |
object |
The video codec configurations. |
|
| Bufsize |
string |
The buffer size.
|
6000 |
| LongShortMode |
string |
Indicates whether the auto-rotate screen feature is enabled.
|
false |
| Degrain |
string |
The level of video quality control. |
10 |
| BitrateBnd |
object |
The average bitrate range of the video. |
|
| Max |
string |
The upper limit of the total bitrate. Unit: Kbit/s. |
500 |
| Min |
string |
The lower limit of the total bitrate. Unit: Kbit/s. |
100 |
| PixFmt |
string |
The pixel format of the video. Valid values: standard pixel formats such as yuv420p and yuvj420p. |
yuv420p |
| Pad |
string |
The black bars that are added to the video.
|
1280:800:0:140 |
| Codec |
string |
The codec.
|
H.264 |
| Height |
string |
The height of the video.
|
800 |
| Qscale |
string |
The strength of the independent denoising algorithm. |
1 |
| Crop |
string |
The method of video cropping. Valid values:
|
border |
| Bitrate |
string |
The average bitrate of the video. Unit: Kbit/s. |
200 |
| Maxrate |
string |
The maximum bitrate of the video. Unit: Kbit/s. |
500 |
| NarrowBand |
object |
The Narrowband HD settings. |
|
| 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 |
| Version |
string |
The Narrowband HD version. Only 1.0 may be returned. |
1.0 |
| MaxFps |
string |
The maximum frame rate. |
60 |
| Profile |
string |
The codec profile. Valid values:
|
high |
| Crf |
string |
The constant rate factor.
|
15 |
| Remove |
string |
Indicates whether the video stream is deleted. Valid values:
|
false |
| Gop |
string |
The maximum number of frames between two keyframes. Default value: 250. |
10 |
| Width |
string |
The width of the video.
|
256 |
| Fps |
string |
The frame rate of the video.
|
25 |
| Preset |
string |
The preset video algorithm. Default value: medium. Valid values:
|
medium |
| ScanMode |
string |
The scan mode. Valid values:
|
interlaced |
| ResoPriority |
string |
The policy of resolution adjustment. |
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 |
| TransConfig |
object |
The general transcoding configurations. |
|
| IsCheckAudioBitrate |
string |
Indicates whether the audio bitrate is checked. If the bitrate of the output audio is higher than that of the input audio, the input bitrate is retained and the specified audio bitrate does not take effect. This parameter has a lower priority than IsCheckAudioBitrateFail. Valid values:
|
false |
| TransMode |
string |
The transcoding mode. Default value: onepass. Valid values:
|
onepass |
| IsCheckReso |
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. Valid values:
|
false |
| IsCheckVideoBitrateFail |
string |
Indicates whether video bitrate check errors are allowed. This parameter has a higher priority than IsCheckVideoBitrate. Valid values:
|
false |
| AdjDarMethod |
string |
The method of resolution adjustment. Default value: none. Valid values:
|
none |
| IsCheckVideoBitrate |
string |
Indicates whether the video bitrate is checked. If the bitrate of the output video is higher than that of the input video, the input bitrate is retained. Valid values:
|
false |
| IsCheckResoFail |
string |
Indicates whether the resolution is checked. If the output resolution is higher than the input resolution based on the width or height, a transcoding failure is returned. Valid values:
|
false |
| IsCheckAudioBitrateFail |
string |
Indicates whether audio bitrate check errors are allowed. This parameter has a greater priority than IsCheckAudioBitrate. Valid values:
|
false |
| State |
string |
The status of the template. Valid values:
|
Normal |
| MuxConfig |
object |
The transmuxing configurations. |
|
| Gif |
object |
The transmuxing configurations for GIF. |
|
| FinalDelay |
string |
The duration for which the final frame is paused. Unit: centisecond. |
0 |
| DitherMode |
string |
The color dithering algorithm of the palette. Valid values: sierra and bayer. |
sierra |
| Loop |
string |
The loop count. |
0 |
| IsCustomPalette |
string |
Indicates whether a custom palette is used. |
false |
| Segment |
object |
The segment configurations. |
|
| Duration |
string |
The length of the segment. Unit: seconds. |
10 |
| Name |
string |
The name of the template. |
MPS-example |
| Audio |
object |
The audio codec configurations. |
|
| Profile |
string |
The codec profile of the audio. Valid values when the value of Codec is aac:
|
aac_low |
| Remove |
string |
Indicates whether the audio stream is deleted. Valid values:
|
false |
| Codec |
string |
The audio codec format. Default value: aac. Valid values:
|
aac |
| Samplerate |
string |
The sampling rate.
|
44100 |
| Qscale |
string |
The strength of the independent denoising algorithm. Valid values: [1,9]. |
1 |
| Channels |
string |
The number of sound channels. Default value: 2. |
2 |
| Bitrate |
string |
The audio bitrate of the output file.
|
500 |
| Id |
string |
The transcoding template ID. |
16f01ad6175e4230ac42bb5182cd**** |
| Container |
object |
The container format configurations. |
|
| Format |
string |
The format of the container. Valid values:
|
mp4 |
| CreationTime |
string |
The time when the template was created. |
2021-03-04T06:44:43Z |
| PageSize |
integer |
Le numéro de la page renvoyée. |
10 |
| RequestId |
string |
L'identifiant de la requête. |
BC860F04-778A-472F-AB39-E1BF329C**** |
| PageNumber |
integer |
Le numéro de la page à renvoyer. |
1 |
Exemples
JSON format
{
"TotalCount": 1,
"TemplateList": {
"Template": [
{
"Video": {
"Bufsize": "6000",
"LongShortMode": "false",
"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",
"NarrowBand": {
"Abrmax": 3000,
"MaxAbrRatio": 1,
"Version": "1.0"
},
"MaxFps": "60",
"Profile": "high",
"Crf": "15",
"Remove": "false",
"Gop": "10",
"Width": "256",
"Fps": "25",
"Preset": "medium",
"ScanMode": "interlaced",
"ResoPriority": "1",
"Hdr2sdr": "true"
},
"TransConfig": {
"IsCheckAudioBitrate": "false",
"TransMode": "onepass",
"IsCheckReso": "false",
"IsCheckVideoBitrateFail": "false",
"AdjDarMethod": "none",
"IsCheckVideoBitrate": "false",
"IsCheckResoFail": "false",
"IsCheckAudioBitrateFail": "false"
},
"State": "Normal",
"MuxConfig": {
"Gif": {
"FinalDelay": "0",
"DitherMode": "sierra",
"Loop": "0",
"IsCustomPalette": "false"
},
"Segment": {
"Duration": "10"
}
},
"Name": "MPS-example",
"Audio": {
"Profile": "aac_low",
"Remove": "false",
"Codec": "aac",
"Samplerate": "44100",
"Qscale": "1",
"Channels": "2",
"Bitrate": "500"
},
"Id": "16f01ad6175e4230ac42bb5182cd****",
"Container": {
"Format": "mp4"
},
"CreationTime": "2021-03-04T06:44:43Z"
}
]
},
"PageSize": 10,
"RequestId": "BC860F04-778A-472F-AB39-E1BF329C****",
"PageNumber": 1
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.