Mengambil metadata media, termasuk format media dan informasi aliran.
Deskripsi operasi
Sebelum memanggil operasi ini, pastikan Anda memahami penagihan Intelligent Media Management (IMM).
Pastikan proyek yang ditentukan telah ada di Wilayah saat ini. Untuk informasi selengkapnya, lihat Project management.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:DetectMediaMeta |
none |
*Project
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
No |
|
test-project |
| SourceURI |
string |
No |
URI objek media di Object Storage Service (OSS). Tentukan URI OSS dalam format oss://${Bucket}/${Object}, di mana |
oss://examplebucket/sampleobject.mp4 |
| CredentialConfig | CredentialConfig |
No |
Jika tidak ada persyaratan khusus, biarkan parameter ini kosong. Pengaturan rantai otorisasi. Untuk informasi selengkapnya, lihat Use authorization chains to access resources of other entities. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2213B1A9-EB3D-4666-84E0-24980BC***** |
| Language |
string |
Bahasa konten. Untuk informasi selengkapnya, lihat kode Alpha-3 ISO 639-2 untuk representasi nama bahasa. |
eng |
| Title |
string |
Judul objek media. |
test |
| VideoStreams |
array |
Aliran video. |
|
| VideoStream |
Informasi mengenai aliran video. |
||
| AudioStreams |
array |
Aliran audio. |
|
| AudioStream |
Informasi mengenai aliran audio. |
||
| Subtitles |
array |
Aliran subtitle. |
|
| SubtitleStream |
Informasi mengenai aliran subtitle. |
||
| StreamCount |
integer |
Jumlah aliran media. |
2 |
| ProgramCount |
integer |
Jumlah program. |
2 |
| FormatName |
string |
Nama format singkat. |
mov,mp4,m4a,3gp,3g2,mj2 |
| FormatLongName |
string |
Nama format lengkap. |
QuickTime / MOV |
| Size |
integer |
Ukuran objek media. Satuan: byte. |
25115517 |
| StartTime |
number |
Waktu pemutaran awal. |
0.000000 |
| Bitrate |
integer |
Bitrate. Satuan: bit/s. |
13164131 |
| Artist |
string |
Artis. |
unable |
| AlbumArtist |
string |
Artis album. |
unable |
| Composer |
string |
Komposer. |
unable |
| Performer |
string |
Performer. |
unable |
| Album |
string |
Album. |
unable |
| Duration |
number |
Durasi total video. Satuan: detik. |
15.263000 |
| ProduceTime |
string |
Waktu perekaman. Untuk informasi selengkapnya mengenai format waktu, lihat standar RFC3339 Nano. |
2022-04-24T02:39:57Z |
| LatLong |
string |
Pasangan koordinat titik pusat. Pasangan koordinat terdiri dari nilai lintang dan bujur. Nilai parameter ini harus dalam format "lintang,bujur". Nilai lintang yang valid: [-90,+90]. Nilai bujur yang valid: [-180,+180]. |
+120.029003,+30.283095 |
| VideoWidth |
integer |
Lebar video dalam piksel. |
1080 |
| VideoHeight |
integer |
Tinggi video dalam piksel. |
1920 |
| Addresses |
array |
Alamat. Parameter ini hanya dikembalikan jika informasi alamat terdeteksi. |
|
| Address |
Detail alamat. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2213B1A9-EB3D-4666-84E0-24980BC*****",
"Language": "eng",
"Title": "test",
"VideoStreams": [
{
"Index": 0,
"Language": "en",
"CodecName": "h264",
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"Profile": "High",
"CodecTimeBase": "1373627/83160000",
"CodecTagString": "avc1",
"CodecTag": "0x31637661",
"Width": 1280,
"Height": 720,
"HasBFrames": 2,
"SampleAspectRatio": "1:1",
"DisplayAspectRatio": "16:9",
"PixelFormat": "yuv420p",
"Level": 40,
"FrameRate": "25/1",
"AverageFrameRate": "25/1",
"TimeBase": "1/12800",
"StartTime": 0,
"Duration": 22.88,
"Bitrate": 5407765,
"FrameCount": 572,
"Rotate": "90",
"BitDepth": 8,
"ColorSpace": "bt709",
"ColorRange": "tv",
"ColorTransfer": "bt709",
"ColorPrimaries": "bt709"
}
],
"AudioStreams": [
{
"Index": 1,
"Language": "en",
"CodecName": "aac",
"CodecLongName": "AAC (Advanced Audio Coding)",
"CodecTimeBase": "1/44100",
"CodecTagString": "mp4a",
"CodecTag": "0x6134706d",
"TimeBase": "1/48000",
"StartTime": 0.0235,
"Duration": 3.690667,
"Bitrate": 320087,
"FrameCount": 173,
"Lyric": "test",
"SampleFormat": "fltp",
"SampleRate": 48000,
"Channels": 2,
"ChannelLayout": "stereo"
}
],
"Subtitles": [
{
"Index": 2,
"Language": "en",
"CodecName": "mov_text",
"CodecLongName": "MOV text",
"CodecTagString": "tx3g",
"CodecTag": "0x67337874",
"StartTime": 0,
"Duration": 71.378,
"Bitrate": 74,
"Content": "欢迎",
"Width": 600,
"Height": 30
}
],
"StreamCount": 2,
"ProgramCount": 2,
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"FormatLongName": "QuickTime / MOV",
"Size": 25115517,
"StartTime": 0,
"Bitrate": 13164131,
"Artist": "unable",
"AlbumArtist": "unable",
"Composer": "unable",
"Performer": "unable",
"Album": "unable",
"Duration": 15.263,
"ProduceTime": "2022-04-24T02:39:57Z",
"LatLong": "+120.029003,+30.283095",
"VideoWidth": 1080,
"VideoHeight": 1920,
"Addresses": [
{
"Language": "zh-Hans",
"AddressLine": "中国浙江省杭州市余杭区文一西路969号",
"Country": "中国",
"Province": "浙江省",
"City": "杭州市",
"District": "余杭区",
"Township": "文一西路"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.