AVI Custom Settings 1.1
From Aviberry API
| Language: |
English • Русский |
Contents
Other formats
Still have a question?
Contents |
VideoCodec
VideoCodec - video codec.
Can possess the following values:
| Value | Description |
|---|---|
| 1145656920 | Xvid MPEG-4 Codec |
Width
Width - frame width in pixels.
Height
Height - frame height in pixels.
FrameRate
FrameRate - number of frames per second.
Default value - 25.
The following values are usually used 23.976, 24, 25, 29.97 or 30.
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. |
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) |
AudioCodec
AudioCodec - audio codec.
Default value - 0.
Can possess the following values:
| Value | Description |
|---|---|
| 0 | No sound |
| 1 | PCM |
| 2 | MP3 |
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>16500</string></value>
</member>
<member>
<name>preset_id</name>
<value><string>-2</string></value>
</member>
<member>
<name>preset_data</name>
<value><string>
{
"VideoCodec":879783277,
"Width":800,
"Height":480,
"FrameRate":"25",
"ResizeMethod":1,
"ResizeQuality":1,
"VideoSAsInput":true,
"AudioCodec":2,
"Freq":44100,
"Channels":2
}
</string></value>
</member>JSON-RPC
"preset":
[{
"format_id":"16500",
"preset_id":"-2",
"preset_data":"
{
\"VideoCodec\":\"879783277\",
\"Width\":\"800\",
\"Height\":\"480\",
\"FrameRate\":\"25\",
\"ResizeMethod\":\"1\",
\"ResizeQuality\":\"1\",
\"VideoSAsInput\":true,
\"AudioCodec\":\"2\",
\"Freq\":\"44100\",
\"Channels\":\"2\"
}"
}]Contents
Other formats
Still have a question?
| Language: |
English • Русский |
