All Products
Search
Document Center

GetMezzanineInfo

Last Updated: Mar 04, 2019

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

NameTypeRequiredDescription
ActionStringYesThe operation that you want to perform. Set the value to GetMezzanineInfo.
VideoIdStringYesThe video ID.
AuthTimeoutLongNoThe 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).
OutputTypeStringNoThe type of the media stream playback address. Valid values:
  • oss
  • cdn
Default value: cdn. Note: If the source file is stored in a bucket of the in type, only an OSS URL can be returned.
AdditionTypeStringNoThe type of the additional information. Valid values:
  • video: indicates video stream information.
  • audio: indicates audio stream information.
Separate the additional video and audio information parameters with a comma (,). Only the basic information is returned by default.

Response parameters

NameTypeDescription
RequestId StringThe GUID generated by Alibaba Cloud for the request.
Mezzanine Mezzanine The source file information.

Examples

Sample requests

  1. 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

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  3. "Mezzanine": {
  4. "VideoId": "93ab850b4f6f44eab54b6e91d24d81d4",
  5. "FileName": "ApsaraVideo for VOD file name",
  6. "Duration": "15.278",
  7. "Status": "Normal",
  8. "OutputType": "oss",
  9. "CreationTime": "2017-06-26T05:38:48Z",
  10. "Height": 540,
  11. "Width": 960,
  12. "Fps": "25.000",
  13. "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",
  14. "Bitrate":"881.087",
  15. "Size":1682694,
  16. "AudioStreamList": [{
  17. "Lang": "eng",
  18. "SampleFmt": "fltp",
  19. "SampleRate": "48000",
  20. "CodecName": "aac",
  21. "CodecTimeBase": "1/48000",
  22. "CodecTag": "0x6134706d",
  23. "Channels": "2",
  24. "ChannelLayout": "stereo",
  25. "Index": "1",
  26. "CodecTagString": "mp4a",
  27. "Duration": "96.853333",
  28. "CodecLongName": "AAC (Advanced Audio Coding)",
  29. "StartTime": "-0.042667",
  30. "Bitrate": "127.04"
  31. }],
  32. "VideoStreamList": [{
  33. "Lang": "eng",
  34. "PixFmt": "yuv420p",
  35. "Dar": "16:9",
  36. "Profile": "High",
  37. "Height": 720,
  38. "Sar": "1:1",
  39. "CodecName": "h264",
  40. "CodecTimeBase": "1001/48000",
  41. "CodecTag": "0x31637661",
  42. "HasBFrames": "2",
  43. "Index": "0",
  44. "CodecTagString": "avc1",
  45. "Duration": "96.805042",
  46. "AvgFPS": "23.976025",
  47. "CodecLongName": "H. 264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
  48. "Level": "31",
  49. "StartTime": "0.083000",
  50. "Width": 1280,
  51. "Fps": "23.976025"
  52. }],
  53. }

Error codes

The following table lists the error codes that this operation can return. For more information, see Error codes.

Error codeError messageHTTP status codeDescription
InvalidVideo.NotFoundThe video does not exist.404The error message returned when the specified video ID does not exist.
InvalidFile.NotFoundThe file does not exist.404The error message returned when the specified video source file does not exist.