WebM Custom Settings 1.1
From Aviberry API
| Language: |
English • Русский |
Contents
Other formats
Still have a question?
Contents |
VideoSAsInput
VideoSAsInput - parameter responsible for using input file characteristics when converting.
Default value - false
Can possess the following values:
| Value | Description |
|---|---|
| false | Don't use input file characteristics |
| true | Use input file characteristics (Width, Height, FrameRate) |
Width
Width - frame width in pixels.
Height
Height - frame height in pixels.
ResizeMethod
ResizeMethod - video frame resize method.
Default value - 1.
Can possess the following values:
| Value | Description |
|---|---|
| 0 | Stretch. The image will be stretched to meet the new values of width and height |
| 1 | Letterbox. Black bars will be added to the image so that it meets the new values of width and height |
| 2 | Crop. The image will be cropped to meet the new values of width and height |
ResizeQuality
ResizeQuality - resize quality parameter.
Default value - 1.
Can possess the following values:
| Value | Description |
|---|---|
| 0 | Normal (Fast). Nearest-neighbor interpolation. |
| 1 | Best (Slow). Bilinear interpolation. |
FrameRate
FrameRate - number of frames per second.
Default value - 25.
The following values are usually used: 23.976, 24, 25, 29.97 or 30.
VideoBitrate
VideoBitrate - video bitrate.
The special value -1 is used to set automatic bitrate control. The other values set bitrate in bit/s.
VideoQuality
VideoQuality - video quality.
Can possess the following values: 0, 1 or 2. The higher the value is, the better the output video quality is, but the lower the conversion speed is.
Default value - 0.
Audio
Audio - turning on (or off) sound.
Default value - false.
Can possess the following values:
| Value | Description |
|---|---|
| false | Sound is turned off |
| true | Sound is turned on |
AudioBitrate
AudioBitrate - audio bitrate.
The measurement unit is bit/s.
Frequency
Frequency - audio sample rate.
Default value - 8000 kHz.
Can possess the following values: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 kHz.
Channels
Channels - number of channels.
Default value - 1.
Can possess the following values:
| Value | Description |
|---|---|
| 1 | Mono |
| 2 | Stereo |
Examples
XML-RPC
<member>
<name>format_id</name>
<value><string>16520</string></value>
</member>
<member>
<name>preset_id</name>
<value><string>-2</string></value>
</member>
<member>
<name>preset_data</name>
<value><string>
{
"VideoSAsInput":false,
"Width":320,
"Height":240,
"ResizeMethod":1,
"ResizeQuality":0,
"FrameRate":"25",
"VideoBitrate":768000,
"VideoQuality":0,
"Audio":true,
"AudioBitrate":128000,
"Frequency":44100,
"Channels":2
}
</string></value>
</member>JSON-RPC
"preset":
{
"format_id": "16520",
"preset_id": "-2"
"preset_data": "
{
\"VideoSAsInput\":false,
\"Width\":320,
\"Height\":240,
\"ResizeMethod\":1,
\"ResizeQuality\":0,
\"FrameRate\":\"25\",
\"VideoBitrate\":768000,
\"VideoQuality\":0,
\"Audio\":true,
\"AudioBitrate\":128000,
\"Frequency\":44100,
\"Channels\":2
}"
}Contents
Other formats
Still have a question?
| Language: |
English • Русский |
