Membuat konfigurasi live-to-VOD untuk menyimpan Catatan di ApsaraVideo VOD.
Deskripsi operasi
-
Storing recordings in ApsaraVideo for VOD triggers automatic operations like video merging and transcoding, which incur video processing fees within the service. For details, see video editing billing and video transcoding billing. For FAQs on automatic merging and transcoding, see the live-to-VOD FAQ.
-
Alibaba Finance Cloud accounts do not support the live-to-VOD feature.
QPS limit
The QPS limit for this API is 1,000 calls per minute per user. Exceeding this limit will cause API calls to be throttled, which can impact your business. To avoid throttling, call the API at a reasonable rate.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveRecordVodConfig |
create |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID Wilayah. Nilai contoh |
cn-shanghai |
| DomainName |
string |
Yes |
Domain streaming. Catatan
Pastikan ApsaraVideo VOD diaktifkan di Wilayah yang sama dengan domain streaming. |
example.com |
| AppName |
string |
Yes |
Nama aplikasi tempat aliran berada. Anda dapat mencari nilai ini di halaman manajemen aliran. |
testName |
| StreamName |
string |
No |
Nama aliran. Anda dapat mencari nilai ini di halaman manajemen aliran. |
stream |
| VodTranscodeGroupId |
string |
No |
Penting Parameter ini diabaikan jika RecordFormat ditentukan. |
e2d796d3bb5fd8049d32bff62f94**** |
| CycleDuration |
integer |
No |
Durasi siklus, dalam detik. Nilai default adalah 3600. Nilai harus antara 300 dan 21600. |
300 |
| AutoCompose |
string |
No |
Penting Parameter ini diabaikan jika RecordFormat ditentukan.Nilai ON mengaktifkan penggabungan Otomatis. Jika diaktifkan, Anda juga harus menentukan parameter |
ON |
| SpaceId |
string |
No |
ID ruang aplikasi VOD. Anda dapat memperoleh ID ini dari Konsol VOD atau dengan memanggil Operasi API untuk mengkueri informasi aplikasi. Parameter ini hanya berlaku saat fitur ruang aplikasi VOD diaktifkan. |
app-1000000 |
| StorageLocation |
string |
No |
Lokasi penyimpanan. |
****-tjptr2vatm.oss-cn-shanghai.aliyuncs.com |
| ComposeVodTranscodeGroupId |
string |
No |
Penting Parameter ini diabaikan jika RecordFormat ditentukan.AutoCompose disetel ke ON. |
***** |
| OnDemand |
integer |
No |
Mode Pemicu Catatan. Nilai valid:
|
0 |
| RecordContent |
string |
No |
Konten Catatan. Nilai valid:
Untuk merekam aliran sumber dan aliran yang ditranskode, berikan daftar yang dipisahkan koma, misalnya, Catatan
Jika parameter ini disetel untuk menyertakan |
raw |
| DelayTime |
integer |
No |
Batas waktu gangguan aliran, dalam detik. Jika gangguan aliran lebih pendek dari Durasi ini, Catatan dilanjutkan di berkas yang sama. Jika gangguan lebih lama, berkas baru akan dibuat. Nilai valid: 15 hingga 21600. |
180 |
| RecordFormat |
array<object> |
No |
Daftar konfigurasi Catatan khusus format. |
|
|
object |
No |
The recording format configuration. |
||
| Format |
string |
No |
The recording format. Valid values:
|
m3u8 |
| SliceDuration |
integer |
No |
The slice duration, in seconds. This parameter applies only to the The value must be between 5 and 30. The default is 30. |
30 |
| AutoCompose |
string |
No |
Specifies whether to automatically merge recording files for this format after the stream ends. Valid values:
|
ON |
| VideoProcess |
string |
No |
The video source to process. Valid values:
To process both video sources, separate the values with a comma (,), for example, |
origin |
| ProcessMethod |
string |
No |
The video processing method. Valid values:
|
transcode |
| ProcessTemplateId |
string |
No |
The ID of the transcoding template group or workflow. Catatan
The specified ID must match the |
e2d796d3bb5fd8049d32bff62f94**** |
| Tags |
string |
No |
The tags for video categorization. |
sports |
| TranscodeTemplates |
array |
No |
Daftar template Transkoding untuk merekam aliran Catatan yang ditranskode. |
|
|
string |
No |
Catatan
The value |
sd |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ConfigAlreadyExists | Config has already exist. | |
| 400 | CommomLiveRcordConfigExisted | Commom liverecord config has already exist. | |
| 400 | InvalidAutoCompose.Malformed | Specified parameter AutoCompose is not valid. | |
| 400 | InvalidAutoComposeAndComposeVodTranscodeGroupId.Malformed | Specified parameter AutoCompose and ComposeVodTranscodeGroupId is not valid, must both empty or input | |
| 400 | InvalidParam | %s. | |
| 500 | InternalError | The request processing has failed due to backend service exception. | |
| 403 | InvalidRegion.Conflict | Specified parameter StorageLocation and Region is not match | |
| 404 | InvalidStorage.NotFound | Specified parameter StorageLocation is not exist | |
| 404 | InvalidTemplateGroupId.NotFound | Specified parameter vodTranscodeGroupId or composeVodTranscodeGroupId is not exist |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.