GetYikeAssetMediaInfo

Updated at:

Retrieves the content information of a media asset.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

MediaId

string

Yes

The media asset ID.

****20b48fb04483915d4f2cd8ac****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

******11-DB8D-4A9A-875B-275798******

MediaInfo

object

The media asset information.

MediaId

string

The media asset ID.

****20b48fb04483915d4f2cd8ac****

MediaBasicInfo

object

The basic information of the media asset.

MediaId

string

The media asset ID.

****20b48fb04483915d4f2cd8ac****

InputURL

string

The address of the media asset to be registered 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.

v6l82k_176822379****.jpeg

Description

string

The content description.

description

Category

string

The category.

category

MediaTags

string

The tags.

tag1

CoverURL

string

The cover URL.

https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg

UserData

string

The user data.

UserData

Snapshots

string

The snapshots.

[]

Status

string

The resource status.

Normal

CreateTime

string

The time when the media asset was created.

2020-12-26T04:11:08Z

ModifiedTime

string

The time when the media asset was last modified.

2020-12-26T04:11:10Z

DeletedTime

string

The time when the media asset was deleted.

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.

AiSaas

UploadSource

string

The upload source of the media asset.

general

CateName

string

The category name.

cateName

ReferenceId

string

The custom ID. Only lowercase letters, uppercase letters, digits, hyphens, and underscores are supported. The value must be 6 to 64 characters in length and is unique within the user scope.

123-1234

ThumbURL240P

string

The thumbnail with a height of 240 pixels.

ThumbURL240P

ThumbURLWebp

string

The thumbnail encoded in WebP format.

ThumbURLWebp

FileInfoList

array<object>

The file information.

array<object>

The file information.

FileBasicInfo

object

The basic file information, including 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.

27007

FileUrl

string

The OSS URL of the file.

http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=

Region

string

The storage region of the file.

cn-shanghai

FormatName

string

The container format.

mp4

Duration

string

The duration.

16.2

Bitrate

string

The bitrate.

20

Width

string

The width.

960

Height

string

The height.

540

CreateTime

string

The time when the file was created.

2020-12-26T04:11:08Z

ModifiedTime

string

The time when the file was last modified.

2020-12-26T04:11:10Z

AudioStreamInfoList

array<object>

The audio stream information. A media asset may have multiple audio streams.

object

The audio stream information.

Index

string

The audio stream index.

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 codec time base.

1/44100

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 time base.

1/44100

StartTime

string

The start time.

2026-02-04T02:13:00Z

Duration

string

The duration.

16.2

Bitrate

string

The bitrate.

192.0

Fps

string

The audio frame rate.

10

NumFrames

string

The total number of frames.

10

Lang

string

The language.

zh

VideoStreamInfoList

array<object>

The video stream information. A media asset may have multiple video streams.

object

The video stream information.

Index

string

The video stream index.

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 codec time base.

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 has B-frames.

2

Sar

string

The sample aspect ratio (SAR).

0:1

Dar

string

The display aspect ratio (DAR).

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 time base.

1/12288

StartTime

string

The start time.

0.081706

Duration

string

The duration.

216.206706

Bitrate

string

The bitrate.

20

NumFrames

string

The total number of frames.

5184

Lang

string

The language.

zh

Rotate

string

The rotation angle.

0

SubtitleStreamInfoList

array<object>

The subtitle stream information. A media asset may have multiple subtitle streams.

object

The subtitle stream information.

Index

string

The subtitle stream index.

1

CodecName

string

The short name of the codec.

srt

CodecLongName

string

The long name of the codec.

SubRip Text

CodecTimeBase

string

The codec time base.

29.97

CodecTagString

string

The codec tag string.

unicode

CodecTag

string

The codec tag.

unicode

Timebase

string

The time base.

30

StartTime

string

The start time.

2025-03-07T01:30Z

Duration

string

The duration.

1

Lang

string

The language.

zh

BizData

object

The custom business information.

FolderId

string

The folder ID.

fd-CBMEJaa2fA

ProductionId

string

The project ID.

ID

AuditBlockedLabel

string

The audit label.

Label

AuditStatus

string

The audit status.

Status

MediaAssetType

string

The media asset type.

Type

MediaAssetSubType

string

The media asset subtype.

SubType

SourceType

string

The source type.

MainBody

SourceId

string

The source ID.

f4a26390f02371f0a1f4e6e7c758****

SourceName

string

The source name.

SourceName

IsFavorite

string

Indicates whether the media asset is marked as a favorite.

1

IsLogicalDeleted

string

Indicates whether the media asset is logically deleted.

1

CreationJobId

string

The ID of the creation task.

ID

Prompt

string

The prompt.

Generate a summary for the above content. The content generation must be limited to 70 characters including punctuation.

Examples

Success response

JSON format

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "MediaInfo": {
    "MediaId": "****20b48fb04483915d4f2cd8ac****",
    "MediaBasicInfo": {
      "MediaId": "****20b48fb04483915d4f2cd8ac****",
      "InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
      "MediaType": "video",
      "BusinessType": "general",
      "Source": "oss",
      "Title": "v6l82k_176822379****.jpeg",
      "Description": "description",
      "Category": "category",
      "MediaTags": "tag1",
      "CoverURL": "https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg",
      "UserData": "UserData",
      "Snapshots": "[]",
      "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": "AiSaas",
      "UploadSource": "general",
      "CateName": "cateName",
      "ReferenceId": "123-1234",
      "ThumbURL240P": "ThumbURL240P",
      "ThumbURLWebp": "ThumbURLWebp"
    },
    "FileInfoList": [
      {
        "FileBasicInfo": {
          "FileName": "example.mp4",
          "FileStatus": "Normal",
          "FileType": "source_file",
          "FileSize": "27007",
          "FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
          "Region": "cn-shanghai",
          "FormatName": "mp4",
          "Duration": "16.2",
          "Bitrate": "20",
          "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/44100",
            "CodecTagString": "mp4a",
            "CodecTag": "0x6134706d",
            "Profile": "High",
            "SampleFmt": "fltp",
            "SampleRate": "44100",
            "Channels": "2",
            "ChannelLayout": "stereo",
            "Timebase": "1/44100",
            "StartTime": "2026-02-04T02:13:00Z",
            "Duration": "16.2",
            "Bitrate": "192.0",
            "Fps": "10",
            "NumFrames": "10",
            "Lang": "zh"
          }
        ],
        "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": "20",
            "NumFrames": "5184",
            "Lang": "zh",
            "Rotate": "0"
          }
        ],
        "SubtitleStreamInfoList": [
          {
            "Index": "1",
            "CodecName": "srt",
            "CodecLongName": "SubRip Text",
            "CodecTimeBase": "29.97",
            "CodecTagString": "unicode",
            "CodecTag": "unicode",
            "Timebase": "30",
            "StartTime": "2025-03-07T01:30Z",
            "Duration": "1",
            "Lang": "zh"
          }
        ]
      }
    ],
    "BizData": {
      "FolderId": "fd-CBMEJaa2fA",
      "ProductionId": "ID",
      "AuditBlockedLabel": "Label",
      "AuditStatus": "Status",
      "MediaAssetType": "Type",
      "MediaAssetSubType": "SubType",
      "SourceType": "MainBody",
      "SourceId": "f4a26390f02371f0a1f4e6e7c758****",
      "SourceName": "SourceName",
      "IsFavorite": "1",
      "IsLogicalDeleted": "1",
      "CreationJobId": "ID",
      "Prompt": "Generate a summary for the above content. The content generation must be limited to 70 characters including punctuation."
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.