Description
You can call this operation to obtain the source file URL of a video.
Note: You can obtain the complete source file information of a video only after a stream is generated through transcoding.
Request parameters
Name | Type | Required | Description |
---|---|---|---|
Action | String | Yes | The operation that you want to perform. Set the value to GetMezzanineInfo. |
VideoId | String | Yes | The video ID. |
AuthTimeout | Long | No | The signature expiration time of the file URL. Minimum value: 1. Unit: seconds. Default value: 3600 (if an OSS URL is returned) or the default validity period specified in URL signing (if a CDN URL is returned). |
OutputType | String | No | The type of the media stream playback address. Valid values:
|
AdditionType | String | No | The type of the additional information. Valid values:
|
Response parameters
Name | Type | Description |
---|---|---|
RequestId | String | The GUID generated by Alibaba Cloud for the request. |
Mezzanine | Mezzanine | The source file information. |
Examples
Sample requests
http://vod.cn-shanghai.aliyuncs.com/?Action=GetMezzanineInfo&VideoId=93ab850b4f6f44eab54b6e91d24d81d4&Format=JSON&<Common request parameters>
Note: For more information about common request parameters, see Common parameters.
Sample responses
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"Mezzanine": {
"VideoId": "93ab850b4f6f44eab54b6e91d24d81d4",
"FileName": "ApsaraVideo for VOD file name",
"Duration": "15.278",
"Status": "Normal",
"OutputType": "oss",
"CreationTime": "2017-06-26T05:38:48Z",
"Height": 540,
"Width": 960,
"Fps": "25.000",
"FileURL": "http://in-bucket.example.com.oss-cn-shanghai.aliyuncs.com/video/1CD22DC-15E7B38A3B1-2389-0829-084-62272.mp4?Expires=1505882754&OSSAccessKeyId=STS.L4WDaUk1L2k2inPvhRFNbNE48&Signature=O8z%2B8mJaNhTWtpV4ZncyopPptiE%3D&security-token=CAIS%2FAJ1q6Ft5B2yfSjIrffiD9vhhu5thanZa0jhkmgHSsFOoYCf2jz2IHpKeXduAeAXs%2Fo0mmhZ7%2F",
"Bitrate":"881.087",
"Size":1682694,
"AudioStreamList": [{
"Lang": "eng",
"SampleFmt": "fltp",
"SampleRate": "48000",
"CodecName": "aac",
"CodecTimeBase": "1/48000",
"CodecTag": "0x6134706d",
"Channels": "2",
"ChannelLayout": "stereo",
"Index": "1",
"CodecTagString": "mp4a",
"Duration": "96.853333",
"CodecLongName": "AAC (Advanced Audio Coding)",
"StartTime": "-0.042667",
"Bitrate": "127.04"
}],
"VideoStreamList": [{
"Lang": "eng",
"PixFmt": "yuv420p",
"Dar": "16:9",
"Profile": "High",
"Height": 720,
"Sar": "1:1",
"CodecName": "h264",
"CodecTimeBase": "1001/48000",
"CodecTag": "0x31637661",
"HasBFrames": "2",
"Index": "0",
"CodecTagString": "avc1",
"Duration": "96.805042",
"AvgFPS": "23.976025",
"CodecLongName": "H. 264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"Level": "31",
"StartTime": "0.083000",
"Width": 1280,
"Fps": "23.976025"
}],
}
Error codes
The following table lists the error codes that this operation can return. For more information, see Error codes.
Error code | Error message | HTTP status code | Description |
---|---|---|---|
InvalidVideo.NotFound | The video does not exist. | 404 | The error message returned when the specified video ID does not exist. |
InvalidFile.NotFound | The file does not exist. | 404 | The error message returned when the specified video source file does not exist. |