Obtém as informações do arquivo de origem de um arquivo de áudio ou vídeo, como a URL do arquivo, resolução e taxa de bits.
Descrição da operação
As informações completas de um arquivo de origem ficam disponíveis após a transcodificação do fluxo de vídeo ou áudio.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vod:GetMezzanineInfo |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| VideoId |
string |
Não |
O ID do arquivo de áudio ou vídeo. Obtenha o ID de uma das seguintes maneiras:
|
1f1a6fc03ca04814031b8a6559e**** |
| AuthTimeout |
integer |
Não |
O tempo de expiração da URL assinada para o arquivo de origem (
|
3600 |
| OutputType |
string |
Não |
O tipo da URL de saída. Valores válidos:
Nota
Se o tipo de bucket do arquivo de origem for |
oss |
| AdditionType |
string |
Não |
O tipo de informação adicional. Separe múltiplos tipos com vírgulas (,). Por padrão, apenas informações básicas são retornadas. Valores válidos:
|
video |
| ReferenceId |
string |
Não |
O ID personalizado. O ID pode conter apenas letras minúsculas, letras maiúsculas, dígitos, hifens (-) e underscores (_). O ID deve ter de 6 a 64 caracteres e ser único para cada usuário. |
123-123 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
A resposta retornada. |
||
| RequestId |
string |
O ID da solicitação. |
25818875-5F78-4AF6-D7393642CA58**** |
| Mezzanine |
object |
As informações do arquivo. |
|
| CreationTime |
string |
A hora em que o arquivo foi criado. A hora está no formato yyyy-MM-ddTHH:mm:ssZ em UTC. |
2017-11-14T09:15:50Z |
| Status |
string |
O status do arquivo. Valores válidos:
|
Normal |
| FileURL |
string |
A URL do arquivo de origem. |
http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/27ffc438-164h67f57ef-0005-6884-51a-1****.mp4 |
| VideoId |
string |
O ID do vídeo. |
1f1a6fc03ca04814031b8a6559e**** |
| Height |
integer |
A altura do arquivo. Unidade: pixels. |
540 |
| Bitrate |
string |
A taxa de bits do arquivo. Unidade: Kbps. |
771.2280 |
| FileName |
string |
O nome do arquivo. |
27ffc438-164h67f57ef-0005-6884-51a-1****.mp4 |
| OutputType |
string |
O tipo da URL de saída. Valores válidos:
Nota
Apenas URLs OSS para arquivos no formato MP4 são suportadas para reprodução. |
oss |
| PreprocessStatus |
string |
O status de pré-processamento. Valores válidos:
|
UnPreprocess |
| Width |
integer |
A largura do arquivo. Unidade: pixels. |
960 |
| Size |
integer |
O tamanho do arquivo. Unidade: bytes. |
4096477 |
| Duration |
string |
A duração do arquivo. Unidade: segundos. |
42.4930 |
| Fps |
string |
A taxa de quadros do arquivo, em quadros por segundo. |
25.0000 |
| AudioStreamList |
array<object> |
As informações sobre o fluxo de áudio. |
|
|
object |
Os detalhes do fluxo de áudio. |
||
| Index |
string |
The ordinal number of the audio stream, which indicates the position of the audio stream in the entire media stream. |
0 |
| Timebase |
string |
The time base. |
0.000000 |
| SampleFmt |
string |
The sampling format. |
fltp |
| SampleRate |
string |
The sample rate. |
44100 |
| ChannelLayout |
string |
The sound channel layout. Valid values:
|
mono |
| Lang |
string |
The language. |
und |
| CodecLongName |
string |
The long name of the encoding format. |
AAC (Advanced Audio Coding) |
| Channels |
string |
The number of sound channels. |
1 |
| NumFrames |
string |
The total number of frames. |
1 |
| Bitrate |
string |
The bitrate. |
62.885 |
| CodecTagString |
string |
The tag of the encoding format. |
mp4a |
| StartTime |
string |
The start time. The time is in the yyyy-MM-ddTHH:mm:ssZ format in UTC. |
2017-01-11T12:00:00Z |
| CodecName |
string |
The short name of the encoding format. |
aac |
| Duration |
string |
The duration. |
3.227574 |
| CodecTag |
string |
The tag of the encoding format. |
0x6134706d |
| CodecTimeBase |
string |
The codec time base. |
1/44100 |
| VideoStreamList |
array<object> |
As informações sobre o fluxo de vídeo. |
|
|
object |
Os detalhes do fluxo de vídeo. |
||
| Timebase |
string |
The time base. |
0.000000 |
| Index |
string |
The ordinal number of the video stream, which indicates the position of the video stream in the entire media stream. |
1 |
| AvgFPS |
string |
The average frame rate. |
30.0 |
| PixFmt |
string |
The pixel format. |
yuv420p |
| Lang |
string |
The language. |
und |
| Sar |
string |
The sample aspect ratio (SAR). |
0:1 |
| Height |
string |
The height of the video. |
320 |
| CodecLongName |
string |
The long name of the encoding format. |
H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 |
| NumFrames |
string |
The total number of frames. |
0 |
| Bitrate |
string |
The bitrate of the file. Unit: Kbps. |
500 |
| Rotate |
string |
The rotation angle of the video. Valid values: [0, 360). |
90 |
| CodecTagString |
string |
The tag of the encoding format. |
avc1 |
| HasBFrames |
string |
Indicates whether B-frames exist. |
0 |
| Profile |
string |
The codec profile. |
Main |
| StartTime |
string |
The start time. The time is in the yyyy-MM-ddTHH:mm:ssZ format in UTC. |
2017-01-11T12:00:00Z |
| Dar |
string |
The display aspect ratio (DAR). |
0:1 |
| CodecName |
string |
The short name of the encoding format. |
h264 |
| Width |
string |
The width of the video. |
568 |
| Duration |
string |
The duration. |
3.166667 |
| Fps |
string |
The destination frame rate. |
30.0 |
| CodecTag |
string |
The tag of the encoding format. |
0x31637661 |
| CodecTimeBase |
string |
The codec time base. |
1/60 |
| Level |
string |
The encoding level. |
30 |
| HDRType |
string |
The High Dynamic Range (HDR) type of the video stream. |
HDR |
| StorageClass |
string |
A classe de armazenamento do ativo de mídia. Valores válidos:
|
Standard |
| RestoreStatus |
string |
O estado de restauração do ativo de mídia. Valores válidos:
|
Success |
| RestoreExpiration |
string |
O tempo de expiração do ativo de mídia restaurado. |
2023-03-30T10:14:14Z |
| FileMD5 |
string |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"Mezzanine": {
"CreationTime": "2017-11-14T09:15:50Z",
"Status": "Normal",
"FileURL": "http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/27ffc438-164h67f57ef-0005-6884-51a-1****.mp4",
"VideoId": "1f1a6fc03ca04814031b8a6559e****",
"Height": 540,
"Bitrate": "771.2280",
"FileName": "27ffc438-164h67f57ef-0005-6884-51a-1****.mp4",
"OutputType": "oss",
"PreprocessStatus": "UnPreprocess",
"Width": 960,
"Size": 4096477,
"Duration": "42.4930",
"Fps": "25.0000",
"AudioStreamList": [
{
"Index": "0",
"Timebase": "0.000000",
"SampleFmt": "fltp",
"SampleRate": "44100",
"ChannelLayout": "mono",
"Lang": "und",
"CodecLongName": "AAC (Advanced Audio Coding)",
"Channels": "1",
"NumFrames": "1",
"Bitrate": "62.885",
"CodecTagString": "mp4a",
"StartTime": "2017-01-11T12:00:00Z",
"CodecName": "aac",
"Duration": "3.227574",
"CodecTag": "0x6134706d",
"CodecTimeBase": "1/44100"
}
],
"VideoStreamList": [
{
"Timebase": "0.000000",
"Index": "1",
"AvgFPS": "30.0",
"PixFmt": "yuv420p",
"Lang": "und",
"Sar": "0:1",
"Height": "320",
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"NumFrames": "0",
"Bitrate": "500",
"Rotate": "90",
"CodecTagString": "avc1",
"HasBFrames": "0",
"Profile": "Main",
"StartTime": "2017-01-11T12:00:00Z",
"Dar": "0:1",
"CodecName": "h264",
"Width": "568",
"Duration": "3.166667",
"Fps": "30.0",
"CodecTag": "0x31637661",
"CodecTimeBase": "1/60",
"Level": "30",
"HDRType": "HDR"
}
],
"StorageClass": "Standard",
"RestoreStatus": "Success",
"RestoreExpiration": "2023-03-30T10:14:14Z",
"FileMD5": ""
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.