|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
Pengaturan parameter pemrosesan video. |
||
| DisableVideo |
boolean |
Apakah akan menonaktifkan pembuatan aliran video. Nilai valid:
|
false |
| Stream |
array |
Daftar nomor indeks aliran video yang akan diproses dari file sumber. Nilai kosong (default) menunjukkan bahwa aliran video dengan nomor indeks terkecil (aliran video pertama) diproses. Nomor indeks lebih besar dari 100 menunjukkan bahwa semua aliran video diproses.
Catatan
Hanya aliran video dengan nomor indeks yang ada yang diproses. Jika aliran video yang sesuai dengan nomor indeks tidak ada, nomor indeks tersebut diabaikan. |
|
|
integer |
Nomor indeks aliran video yang akan diproses. |
0 |
|
| TranscodeVideo |
object |
Parameter transkoding video. Nilai kosong menunjukkan bahwa pemrosesan video dinonaktifkan dan file output tidak berisi aliran video. Catatan
Menetapkan parameter ini ke nilai kosong untuk menonaktifkan pemrosesan video tidak direkomendasikan. |
|
| Codec |
string |
Format encoding video. Nilai valid:
|
h264 |
| PixelFormat |
string |
Format piksel. Nilai default sama dengan video sumber. Nilai valid:
Catatan
yuva420p hanya tersedia untuk API CreateMediaConvert, dan parameter Codec harus diatur ke vp9. |
yuv420p |
| FrameRateOption |
string |
Opsi laju frame. Nilai valid:
Nilai default:
Catatan
Parameter ini harus diatur bersama dengan parameter FrameRate. |
fixed |
| FrameRate |
number |
Laju frame video. Nilai default sama dengan video sumber. |
25 |
| ResolutionOption |
string |
Opsi resolusi. Nilai valid:
Nilai default:
Catatan
Parameter ini harus diatur bersama dengan parameter Resolution. |
fixed |
| Resolution |
string |
Resolusi video output dalam format
Catatan
Jika video sumber berisi informasi rotasi, penentuan lebar/tinggi dan sisi panjang/pendek didasarkan pada keadaan pasca-rotasi, yaitu resolusi pemutaran. |
640x480 |
| AdaptiveResolutionDirection |
boolean |
Apakah akan mengaktifkan mode sisi panjang/pendek adaptif. Nilai valid:
|
true |
| ScaleType |
string |
Mode penskalaan. Nilai valid:
Catatan
Parameter ini harus diatur bersama dengan parameter Resolution. |
crop |
| Rotation |
integer |
Sudut rotasi searah jarum jam video dalam derajat. Nilai valid:
|
90 |
| BitrateOption |
string |
Opsi bitrate video. Nilai valid:
Nilai default:
Catatan
Parameter ini harus diatur bersama dengan parameter Bitrate. |
fixed |
| Bitrate |
integer |
Laju bitrate aliran video, dalam bit per detik (bit/s). Catatan
Parameter ini saling eksklusif dengan CRF. Jika kedua parameter ini dan CRF kosong, encoding dilakukan dengan nilai CRF 23. |
128000 |
| GOPSize |
integer |
Jumlah frame antar keyframe. Nilai default: 150. Catatan
Parameter ini tidak didukung untuk API GenerateVideoPlaylist. |
60 |
| CRF |
number |
Menentukan mode kualitas konstan. Parameter ini saling eksklusif dengan Bitrate. Nilai valid: [0,51]. Nilai lebih tinggi menghasilkan kualitas lebih rendah. Nilai yang direkomendasikan: [18,38]. |
18 |
| BufferSize |
integer |
Ukuran buffer decoding untuk variable bitrate, dalam bit per detik (bps). Catatan
Parameter ini hanya berlaku jika digunakan bersama dengan parameter CRF. |
4000000 |
| MaxBitrate |
integer |
Batas laju bitrate maksimum untuk variable bitrate. Saat menggunakan parameter ini, Anda harus menentukan parameter BufferSize. Catatan
Parameter ini hanya berlaku jika digunakan bersama dengan parameter CRF. |
128000 |
| BFrames |
integer |
Jumlah B-frame berurutan. Nilai default: 3. |
3 |
| Refs |
integer |
Jumlah frame referensi. Nilai default: 2. |
2 |
| VideoSlim |
integer |
Mengaktifkan mode Narrowband HD. Nilai valid: 0: Nilai default. Dinonaktifkan. 1: Menggunakan mode Narrowband HD untuk transkoding. Catatan
Untuk hasil optimal, gunakan parameter Bitrate atau CRF yang direkomendasikan secara resmi untuk transkoding video dengan Narrowband HD. Penting Narrowband HD hanya mendukung format H.264/H.265, hanya yuv420p, kedalaman 8-bit, dan tidak mendukung output transkoding video multi-target atau penggabungan video. Untuk informasi lebih lanjut, lihat Ikhtisar Narrowband HD. |
0 |
| FilterVideo |
object |
Parameter filter video. Parameter ini tidak berlaku jika TranscodeVideo kosong atau TranscodeVideo.Codec diatur ke copy. Catatan
Parameter ini tidak didukung untuk API GenerateVideoPlaylist. |
|
| Watermarks |
array |
Daftar watermark video. |
|
|
object |
Informasi watermark video. |
||
| Type |
string |
The watermark type. Valid values:
|
text |
| Dx |
number |
The meanings differ depending on whether the value is an integer or a decimal:
|
0 |
| Dy |
number |
The meanings differ depending on whether the value is an integer or a decimal:
|
0 |
| StartTime |
number |
The start time for adding the watermark, in seconds (s). Default value: starts from the beginning of the video. |
0 |
| Duration |
number |
The duration for which the watermark is displayed, in seconds (s). Default value: lasts until the end of the video. |
0 |
| ReferPos |
string |
The reference position for adding the watermark. Valid values:
|
topleft |
| Content |
string |
The content of the text watermark. Default value: empty. Penting This parameter takes effect when the Type parameter is set to text. |
example |
| FontName |
string |
The font name for the text watermark. Valid values:
Penting This parameter takes effect when the Type parameter is set to text. |
SourceHanSans-Bold |
| FontSize |
integer |
The font size for the text watermark. Default value: 16. The value must be an integer. Valid values: (4,120). Penting This parameter takes effect when the Type parameter is set to text. |
18 |
| FontColor |
string |
The font color for the watermark text. The format is #RRGGBB. Default value: #000000. Values such as "red" and "green" are also supported. Penting This parameter takes effect when the Type parameter is set to text. |
red |
| FontApha |
number |
The font opacity for the text watermark. Valid values: (0,1]. Default value: 1, indicating fully opaque. Penting This parameter takes effect when the Type parameter is set to text. |
0.8 |
| BorderWidth |
integer |
The stroke width for the text watermark, in pixels (px). The value must be an integer. Valid values: [0,4096]. Default value: 0. Penting This parameter takes effect when the Type parameter is set to text. |
2 |
| BorderColor |
string |
The stroke color for the watermark text. The format is #RRGGBB. Default value: #000000. Values such as "red" and "green" are also supported. Penting This parameter takes effect when the Type parameter is set to text. |
red |
| URI |
string |
The OSS address of the watermark file. Supported formats are PNG and MOV. The OSS address format is Penting This parameter takes effect when the Type parameter is set to file. |
oss://test-bucket/watermark.jpg |
| Width |
number |
The width of the watermark image. Default value: the original width of the watermark image. The meanings differ depending on whether the value is an integer or a decimal:
|
80 |
| Height |
number |
The height of the watermark image. Default value: the original height of the watermark image. The meanings differ depending on whether the value is an integer or a decimal:
|
40 |
| Delogos |
array |
Menerapkan pemrosesan mosaik ke area persegi panjang video untuk menghapus logo atau watermark stasiun. |
|
|
object |
Parameter pemrosesan mosaik video. |
||
| StartTime |
number |
The start time for adding the mosaic, in seconds (s). Default value: starts from the beginning of the video. |
0 |
| Duration |
number |
The duration for which the mosaic is applied, in seconds (s). Default value: lasts until the end of the video. |
15 |
| Dx |
number |
The meanings differ depending on whether the value is an integer or a decimal:
|
0 |
| Dy |
number |
Default value: 0. The meanings differ depending on whether the value is an integer or a decimal:
|
0 |
| Width |
number |
The width of the mosaic. Default value: 1.0 (decimal), which fills the entire output video width. The meanings differ depending on whether the value is an integer or a decimal:
|
100 |
| Height |
number |
The height of the mosaic. Default value: 1.0 (decimal), which fills the entire output video height. The meanings differ depending on whether the value is an integer or a decimal:
|
40 |
| ReferPos |
string |
The reference position for adding the mosaic. Valid values:
|
topleft |
| Speed |
number |
Pengaturan kecepatan pemutaran video. Nilai valid: [0.5,1.0]. Nilai default: 1.0. Catatan
Penting
|
1.0 |
| Desensitization |
object |
Konfigurasi desensitisasi video. Penting
|
|
| Face |
object |
Face desensitization configuration. Catatan
In public preview. If you have any questions, please join the DingTalk group to provide feedback. For the DingTalk group number, see Contact Us. |
|
| Confidence |
number |
The face confidence threshold, used to set the lower limit of confidence for face detection. If the confidence value of a detected face is lower than this threshold, the face will not be desensitized.
|
0.4 |
| MinSize |
integer |
The minimum face size threshold, used to set the minimum size of faces to be desensitized. If the width or height of a detected face is smaller than this threshold, the face will not be desensitized. Unit: pixels. Default value: 0, indicating no restriction on face size. |
0.4 |
| ScaleRatio |
number |
||
| BlurRadius |
integer |
||
| Transparency |
number |
||
| LicensePlate |
object |
License plate desensitization configuration. Catatan
In public preview. If you have any questions, please join the DingTalk group to provide feedback. For the DingTalk group number, see Contact Us. |
|
| Confidence |
number |
The license plate confidence threshold, used to set the lower limit of confidence for license plate detection. If the confidence value of a detected license plate is lower than this threshold, the license plate will not be desensitized.
|
0.4 |
| MinSize |
integer |
The minimum license plate size threshold, used to set the minimum size of license plates to be desensitized. If the width or height of a detected license plate is smaller than this threshold, the license plate will not be desensitized. Unit: pixels. Default value: 0, indicating no restriction on license plate size. |
0.4 |
| ScaleRatio |
number |
||
| BlurRadius |
integer |
||
| Transparency |
number |