Mengambil metadata file media, termasuk informasi format media dan informasi aliran media.
Deskripsi operasi
Sebelum menggunakan operasi ini, pastikan Anda memahami penagihan Intelligent Media Management (IMM) dan harganya.
Sebelum memanggil operasi ini, pastikan tersedia sebuah proyek di wilayah saat ini. Untuk informasi lebih lanjut, lihat Manajemen proyek.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:DetectMediaMeta |
none |
*Proyek.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
No |
Nama proyek. Untuk informasi tentang cara mendapatkan nama proyek, lihat Membuat proyek. |
test-project |
| SourceURI |
string |
No |
URI Object Storage Service (OSS) dari file media. URI OSS mengikuti format oss://${Bucket}/${Object}, di mana |
oss://examplebucket/sampleobject.mp4 |
| CredentialConfig | CredentialConfig |
No |
Biarkan parameter ini kosong kecuali Anda memiliki persyaratan khusus. Konfigurasi otorisasi berantai. Parameter ini bersifat opsional. Untuk informasi lebih lanjut, lihat Menggunakan otorisasi berantai untuk mengakses resource entitas lain. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2213B1A9-EB3D-4666-84E0-24980BC***** |
| Language |
string |
Bahasa yang digunakan dalam video. Nilai mengikuti standar ISO 639-2. |
eng |
| Title |
string |
Judul file media. |
test |
| VideoStreams |
array |
Array aliran video. |
|
| VideoStream |
Informasi aliran video. |
||
| AudioStreams |
array |
Array aliran audio. |
|
| AudioStream |
Informasi aliran audio. |
||
| Subtitles |
array |
Array aliran subtitle. |
|
| SubtitleStream |
Informasi aliran subtitle. |
||
| StreamCount |
integer |
Jumlah aliran media. |
2 |
| ProgramCount |
integer |
Jumlah program. |
2 |
| FormatName |
string |
Nama format. |
mov,mp4,m4a,3gp,3g2,mj2 |
| FormatLongName |
string |
Nama lengkap format. |
QuickTime / MOV |
| Size |
integer |
Ukuran file media, dalam byte. |
25115517 |
| StartTime |
number |
Pengatur waktu mulai pemutaran media, dalam detik. |
0.000000 |
| Bitrate |
integer |
Bitrate file media, dalam bit/detik. |
13164131 |
| Artist |
string |
Artis. |
unable |
| AlbumArtist |
string |
Artis album. |
unable |
| Composer |
string |
Komposer. |
unable |
| Performer |
string |
Penampil. |
unable |
| Album |
string |
Album. |
unable |
| Duration |
number |
Durasi total video, dalam detik. |
15.263000 |
| ProduceTime |
string |
Pengatur waktu saat video direkam. Nilai mengikuti standar RFC 3339 Nano. |
2022-04-24T02:39:57Z |
| LatLong |
string |
Titik koordinat geografis pusat, yaitu nilai lintang dan bujur. Formatnya adalah lintang,bujur, dengan lintang pertama dan bujur kedua. Rentang lintang adalah [-90,+90] dan rentang bujur adalah [-180,+180]. Contoh: 35.8,-45.91. |
+120.029003,+30.283095 |
| VideoWidth |
integer |
Lebar frame video dalam file media, dalam piksel. |
1080 |
| VideoHeight |
integer |
Tinggi frame video dalam file media, dalam piksel. |
1920 |
| Addresses |
array |
Hasil deteksi geolokasi video. Parameter ini memiliki nilai hanya jika video berisi informasi geolokasi. |
|
| Address |
Informasi lokasi detail. |
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.