Retrieves media asset information based on the IMS media ID or the input URL of the media asset.
Operation description
If MediaId is not empty, it takes precedence. If MediaId is empty, InputURL must be specified.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetMediaInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
No |
The IMS media asset ID. If this parameter is empty, InputURL must be specified. |
****20b48fb04483915d4f2cd8ac**** |
| InputURL |
string |
No |
The URL of the media asset to be queried in the corresponding system. The media asset must be registered in the IMS content library and attached to an IMS media ID before use.
http(s)://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or oss://example-bucket/example.mp4. In this format, the default OSS region is the same as the service registration area. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| OutputType |
string |
No |
The type of the media asset file URL in the response. Valid values:
|
cdn |
| ReturnDetailedInfo |
string |
No |
Specifies whether to return detailed information for the corresponding media asset fields. Supported fields: AiRoughData.StandardSmartTagJob: Specifies whether to return detailed tagging results if the media asset has been submitted for tag analysis. Valid values:
|
{"AiRoughData.StandardSmartTagJob": false} |
| AuthTimeout |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2FDE2411-DB8D-4A9A-875B-275798F14A5E |
| MediaInfo |
object |
The media asset information. |
|
| MediaId |
string |
The media asset ID. |
****20b48fb04483915d4f2cd8ac**** |
| MediaBasicInfo |
object |
BasicInfo |
|
| MediaId |
string |
MediaId |
****20b48fb04483915d4f2cd8ac**** |
| InputURL |
string |
The URL of the queried media asset in the corresponding system. |
https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| MediaType |
string |
The media type of the media asset. |
video |
| BusinessType |
string |
The business type of the media asset. |
general |
| Source |
string |
The source. |
oss |
| Title |
string |
The title. |
Title |
| Description |
string |
The description. |
Description |
| Category |
string |
The category. |
Category |
| MediaTags |
string |
The tags. |
tag1 |
| CoverURL |
string |
The cover URL. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires= |
| UserData |
string |
The user data. |
userDataTest |
| Snapshots |
string |
The snapshots. |
[
"http://example-bucket.oss-cn-shanghai.aliyuncs.com/snapshot-00001.png?Expires= |
| Status |
string |
The resource status. |
Normal |
| CreateTime |
string |
The time when the media asset was created. The time is in UTC and follows the ISO 8601 standard, ending with Z. |
2020-12-26T04:11:08Z |
| ModifiedTime |
string |
The time when the media asset was modified. The time is in UTC and follows the ISO 8601 standard, ending with Z. |
2020-12-26T04:11:10Z |
| DeletedTime |
string |
The time when the media asset was deleted. The time is in UTC and follows the ISO 8601 standard, ending with Z. |
2020-12-26T04:11:15Z |
| SpriteImages |
string |
The sprite images. |
[{"bucket":"example-bucket","count":"32","iceJobId":"******83ec44d58b2069def2e******","location":"oss-cn-shanghai","snapshotRegular":"example/example-{Count}.jpg","spriteRegular":"example/example-{TileCount}.jpg","templateId":"******e438b14ff39293eaec25******","tileCount":"1"}] |
| CateId |
integer |
The category ID. |
3048 |
| Biz |
string |
The business to which the media asset belongs. |
ICE |
| UploadSource |
string |
The upload source of the media asset. |
general |
| CateName |
string |
The category name. |
cateName |
| ReferenceId |
string |
The custom ID. The ID must be 6 to 64 characters in length and can contain only lowercase letters, uppercase letters, digits, hyphens, and underscores. The ID must be unique within the user dimension. |
123-1234 |
| FileInfoList |
array<object> |
The list of file information. |
|
|
array<object> |
The media file information. |
||
| FileBasicInfo |
object |
The basic file information, including the duration and size. |
|
| FileName |
string |
The file name. |
example.mp4 |
| FileStatus |
string |
The file status. |
Normal |
| FileType |
string |
The file type. |
source_file |
| FileSize |
string |
The file size in bytes. |
30611502 |
| FileUrl |
string |
The OSS URL of the file. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| Region |
string |
The storage region of the file. |
cn-shanghai |
| FormatName |
string |
The container format. |
mov,mp4,m4a,3gp,3g2,mj2 |
| Duration |
string |
The duration. |
216.206667 |
| Bitrate |
string |
The bitrate. |
1132.68 |
| Width |
string |
The width. |
960 |
| Height |
string |
The height. |
540 |
| CreateTime |
string |
The time when the file was created. The time is in UTC and follows the ISO 8601 standard, ending with Z. |
2020-12-26T04:11:08Z |
| ModifiedTime |
string |
The time when the file was modified. The time is in UTC and follows the ISO 8601 standard, ending with Z. |
2020-12-26T04:11:10Z |
| AudioStreamInfoList |
array<object> |
The audio stream information. A media asset may contain multiple audio streams. |
|
|
object |
The audio stream information. |
||
| Index |
string |
The index of the audio stream. |
1 |
| CodecName |
string |
The short name of the codec. |
aac |
| CodecLongName |
string |
The long name of the codec. |
AAC (Advanced Audio Coding) |
| CodecTimeBase |
string |
The time base of the codec. |
1/24000 |
| CodecTagString |
string |
The codec tag string. |
mp4a |
| CodecTag |
string |
The codec tag. |
0x6134706d |
| Profile |
string |
The codec profile. |
High |
| SampleFmt |
string |
The sample format. |
fltp |
| SampleRate |
string |
The sample rate. |
44100 |
| Channels |
string |
The number of channels. |
2 |
| ChannelLayout |
string |
The channel layout. |
stereo |
| Timebase |
string |
The timebase. |
1/44100 |
| StartTime |
string |
The start time, in seconds. |
0.000000 |
| Duration |
string |
The duration. |
16.200998 |
| Bitrate |
string |
The bitrate. |
127.794 |
| Fps |
string |
The audio frame rate. |
8 |
| NumFrames |
string |
The total number of frames. |
10 |
| Lang |
string |
The language. |
und |
| VideoStreamInfoList |
array<object> |
The video stream information. A media asset may contain multiple video streams. |
|
|
object |
The video stream information. |
||
| Index |
string |
The index of the video stream. |
0 |
| CodecName |
string |
The short name of the codec. |
h264 |
| CodecLongName |
string |
The long name of the codec. |
H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 |
| Profile |
string |
The codec profile. |
High |
| CodecTimeBase |
string |
The time base of the codec. |
1/48 |
| CodecTagString |
string |
The codec tag string. |
[0][0][0][0] |
| CodecTag |
string |
The codec tag. |
0x0000 |
| Width |
string |
The width. |
960 |
| Height |
string |
The height. |
540 |
| HasBFrames |
string |
Indicates whether the video stream contains B-frames. |
2 |
| Sar |
string |
The sample aspect ratio. |
0:1 |
| Dar |
string |
The display aspect ratio. |
0:1 |
| PixFmt |
string |
The pixel format. |
yuv420p |
| Level |
string |
The codec level. |
30 |
| Fps |
string |
The video frame rate. |
24.0 |
| AvgFPS |
string |
The average frame rate. |
24.0 |
| Timebase |
string |
The timebase. |
1/12288 |
| StartTime |
string |
The start time, in seconds. |
0.081706 |
| Duration |
string |
The duration. |
216.206706 |
| Bitrate |
string |
The bitrate. |
1001.594 |
| NumFrames |
string |
The total number of frames. |
5184 |
| Lang |
string |
The language. |
und |
| Rotate |
string |
The rotation. |
0 |
| Nb_frames |
string |
The total number of frames. |
5184 |
| SubtitleStreamInfoList |
array<object> |
The subtitle stream information. A media asset may contain multiple subtitle streams. |
|
|
object |
The subtitle stream information. |
||
| Index |
string |
The index of the subtitle stream. |
1 |
| CodecName |
string |
The short name of the codec. |
srt |
| CodecLongName |
string |
The long name of the codec. |
SubRip Text |
| CodecTimeBase |
string |
The time base of the codec. |
29.97 |
| CodecTagString |
string |
The codec tag string. |
unicode |
| CodecTag |
string |
The codec tag. |
unicode |
| Timebase |
string |
The timebase. |
30 |
| StartTime |
string |
The start time, in seconds. |
0 |
| Duration |
string |
The duration. |
1 |
| Lang |
string |
The language. |
und |
| AiRoughData |
object |
The raw data of the AI analysis. |
|
| Result |
string |
The raw AI analysis result. |
https://sample-bucket.cn-shanghai.aliyuncs.com/result.json |
| Status |
string |
The AI analysis status. Valid values:
|
Analyzing |
| SaveType |
string |
The storage type. Specifies whether to save the data to the search library after intelligent analysis is completed. Valid values:
|
TEXT |
| AiCategory |
string |
The AI category. Valid values:
|
Life |
| AiJobId |
string |
The ID of the AI task. |
****483915d4f2cd8ac20b48fb04**** |
| StandardSmartTagJob |
object |
The tagging task. |
|
| AiJobId |
string |
The ID of the AI task. |
****483915d4f2cd8ac20b48fb04**** |
| Status |
string |
The AI analysis status. Valid values:
|
Analyzing |
| ResultUrl |
string |
The URL of the tagging result. |
http://xx.oss-cn-shanghai.aliyuncs.com/result2.txt |
| Results |
array<object> |
The list of tagging recognition results. |
|
|
object |
The tagging recognition result. |
||
| Data |
string |
The specific data of the analysis result, represented as a JSON string. For more information about the data structures of different types, see Result parameter description. |
{"autoChapters": [...]} |
| Type |
string |
The tagging recognition type. Valid values:
|
NLP |
Examples
Success response
JSON format
{
"RequestId": "2FDE2411-DB8D-4A9A-875B-275798F14A5E",
"MediaInfo": {
"MediaId": "****20b48fb04483915d4f2cd8ac****",
"MediaBasicInfo": {
"MediaId": "****20b48fb04483915d4f2cd8ac****",
"InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "Title",
"Description": "Description",
"Category": "Category",
"MediaTags": "tag1",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"UserData": "userDataTest",
"Snapshots": "[\n \"http://example-bucket.oss-cn-shanghai.aliyuncs.com/snapshot-00001.png?Expires=&OSSAccessKeyId=&Signature=&security-token=\",\n \"http://example-bucket.oss-cn-shanghai.aliyuncs.com/snapshot-00002.jpg?Expires=&OSSAccessKeyId=&Signature=&security-token=\",\n \"http://example-bucket.oss-cn-shanghai.aliyuncs.com/snapshot-00003.jpg?Expires=&OSSAccessKeyId=&Signature=&security-token=\"\n]",
"Status": "Normal",
"CreateTime": "2020-12-26T04:11:08Z",
"ModifiedTime": "2020-12-26T04:11:10Z",
"DeletedTime": "2020-12-26T04:11:15Z",
"SpriteImages": "[{\"bucket\":\"example-bucket\",\"count\":\"32\",\"iceJobId\":\"******83ec44d58b2069def2e******\",\"location\":\"oss-cn-shanghai\",\"snapshotRegular\":\"example/example-{Count}.jpg\",\"spriteRegular\":\"example/example-{TileCount}.jpg\",\"templateId\":\"******e438b14ff39293eaec25******\",\"tileCount\":\"1\"}]",
"CateId": 3048,
"Biz": "ICE",
"UploadSource": "general",
"CateName": "cateName",
"ReferenceId": "123-1234"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "30611502",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"Region": "cn-shanghai",
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"Duration": "216.206667",
"Bitrate": "1132.68",
"Width": "960",
"Height": "540",
"CreateTime": "2020-12-26T04:11:08Z",
"ModifiedTime": "2020-12-26T04:11:10Z"
},
"AudioStreamInfoList": [
{
"Index": "1",
"CodecName": "aac",
"CodecLongName": "AAC (Advanced Audio Coding)",
"CodecTimeBase": "1/24000",
"CodecTagString": "mp4a",
"CodecTag": "0x6134706d",
"Profile": "High",
"SampleFmt": "fltp",
"SampleRate": "44100",
"Channels": "2",
"ChannelLayout": "stereo",
"Timebase": "1/44100",
"StartTime": "0.000000",
"Duration": "16.200998",
"Bitrate": "127.794",
"Fps": "8",
"NumFrames": "10",
"Lang": "und"
}
],
"VideoStreamInfoList": [
{
"Index": "0",
"CodecName": "h264",
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"Profile": "High",
"CodecTimeBase": "1/48",
"CodecTagString": "[0][0][0][0]",
"CodecTag": "0x0000",
"Width": "960",
"Height": "540",
"HasBFrames": "2",
"Sar": "0:1",
"Dar": "0:1",
"PixFmt": "yuv420p",
"Level": "30",
"Fps": "24.0",
"AvgFPS": "24.0",
"Timebase": "1/12288",
"StartTime": "0.081706",
"Duration": "216.206706",
"Bitrate": "1001.594",
"NumFrames": "5184",
"Lang": "und",
"Rotate": "0",
"Nb_frames": "5184"
}
],
"SubtitleStreamInfoList": [
{
"Index": "1",
"CodecName": "srt",
"CodecLongName": "SubRip Text",
"CodecTimeBase": "29.97",
"CodecTagString": "unicode",
"CodecTag": "unicode",
"Timebase": "30",
"StartTime": "0",
"Duration": "1",
"Lang": "und"
}
]
}
],
"AiRoughData": {
"Result": "https://sample-bucket.cn-shanghai.aliyuncs.com/result.json",
"Status": "Analyzing",
"SaveType": "TEXT",
"AiCategory": "Life",
"AiJobId": "****483915d4f2cd8ac20b48fb04****",
"StandardSmartTagJob": {
"AiJobId": "****483915d4f2cd8ac20b48fb04****",
"Status": "Analyzing",
"ResultUrl": "http://xx.oss-cn-shanghai.aliyuncs.com/result2.txt",
"Results": [
{
"Data": "{\"autoChapters\": [...]}",
"Type": "NLP"
}
]
}
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.