3GPP Custom Settings 1.1
From Aviberry API
| Language: |
English • Русский |
Contents
Other formats
Still have a question?
Contents |
VideoCodec
VideoCodec - video codec.
Default value - mp4v.
Can possess the following values:
| Value | Description |
|---|---|
| mp4v | MPEG-4 Video |
| s263 | H.263 |
| avc1 | H.264 |
AudioCodec
AudioCodec - audio codec.
Default value - 0.
Can possess the following values:
| Value | Description |
|---|---|
| 0 | No sound |
| mp4a | AAC |
| samr | AMR |
Size
Size - frame size (width and height).
Default value - 11534480.
Can possess the following values:
| Value | Description |
|---|---|
| 8388704 | 128x96 SubQCIF |
| 11534480 | 176x144 QCIF |
| 23068960 | 352x288 CIF |
| 20971760 | 320x240 QVGA (only for MPEG-4 and H.264 codecs) |
| 0 | the same as input |
FrameRate
FrameRate - number of frames per second.
Default value - 8.
Can possess the following values: 8, 10, 12, 15, 23.976, 24, 25, 29.97, 30.
The special value FrameRate=0 - frame rate is the same as input.
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. |
Frequency
Frequency - audio sample rate. Is used for AAC audio codec only.
Default value - 8000 kHz.
Can possess the following values: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 kHz.
Channels
Channels - number of channels. Is used for AAC audio codec only.
Default value - 1.
Can possess the following values:
| Value | Description |
|---|---|
| 1 | Mono |
| 2 | Stereo |
VParams
VParams - a set of parameters for the selected video codec.
The list of parameters for each video codec:
MPEG-4
Example:
"VParams":{"MPEG4":{"Profile":8,"Bitrate":572000,"Quality":3,"MaxIFrameInterval":25,"MaxBFrameSequence":0,"AspectRatio":0}}
| Parameter | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Profile | Profile. Default value - 148.
| ||||||||
| Bitrate | Video bitrate. The special value -1 is used to set automatic bitrate control. The other values set bitrate in bit/s. | ||||||||
| Quality | A complex parameter determining the output video quality. Can possess values from 0 to 6. The higher the value is, the better the output video quality is, but the lower the conversion speed is. Default value - 0. | ||||||||
| MaxIFrameInterval | Maximal interval between I-frames. Default value - 0. Can possess values from 0 to 1000. | ||||||||
| MaxBFrameSequence | Maximal number of adjacent B-frames. Default value - 0. Can possess values from 0 to 10. | ||||||||
| AspectRatio | Display aspect ratio. In the general case, can differ from the Width:Height ratio. Default value - 0.
You can also set any other values. |
H.263
Examples:
"VParams":{"H263":{"MotionSrchRng":"1","Quality":"30","VBR":"true"}}
"VParams":{"H263":{"MotionSrchRng":"1","Bitrate":"250000","VBR":"false"}}
| Parameter | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MotionSrchRng | Motion search range
| ||||||||||||
| Bitrate | Video bitrate. The special value -1 is used to set automatic bitrate control. Is used only if VBR=false. The measurement unit is bit/s. | ||||||||||||
| Quality | Video quality. Is used only if VBR=true. Can possess values from 1 to 30. The higher the value is, the better the output video quality is, but the lower the conversion speed is. | ||||||||||||
| VBR | Using variable bitrate. Default value - false.
|
H.264
Examples:
"VParams":{"H264":{"Profile":4,"Quality":2,"MaxIFrameInterval":25,"MaxBFrameSequence":0,"VBR":true,"AspectRatio":0}}
"VParams":{"H264":{"Profile":4,"Bitrate":250000,"Quality":2,"MaxIFrameInterval":25,"MaxBFrameSequence":0,"VBR":false,"AspectRatio":0}}
"VParams":{"H264":{"Profile":2,"Bitrate":-1,"Quality":2,"MaxIFrameInterval":25,"MaxBFrameSequence":0,"AspectRatio":0}}
"VParams":{"H264":{"Profile":2,"Bitrate":250000,"Quality":2,"MaxIFrameInterval":25,"MaxBFrameSequence":0,"AspectRatio":0}}
| Parameter | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Profile | Profile
| ||||||||
| Bitrate | Video bitrate. The special value -1 is used to set automatic bitrate control. The other values set bitrate in bit/s. Is used only if VBR=false. The measurement unit is bit/s. | ||||||||
| Quality | Video quality. Is used only if VBR=true. Can possess values from 0 to 4. The higher the value is, the better the output video quality is, but the lower the conversion speed is. | ||||||||
| MaxIFrameInterval | Maximal interval between I-frames. Default value - 0. Can possess values from 0 to 1000. | ||||||||
| MaxBFrameSequence | Maximal number of adjacent B-frames. Default value - 0. Can possess values from 0 to 10. | ||||||||
| VBR | Using variable bitrate. Default value - false. This parameter can be used only if Profile=4.
| ||||||||
| AspectRatio | Display aspect ratio. In the general case, can differ from the Width:Height ratio. Default value - 0.
You can also set any other values. |
AParams
AParams - a set of parameters for the selected audio codec.
The list of parameters for each audio codec:
AAC
Example:
"AParams":{"AAC":{"Profile":"2","Bitrate":"192000","Quality":"100"}}
| Parameter | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Profile | Profile. Default value - 1.
| ||||||||
| Bitrate | Audio bitrate. Default value - 8000. Can possess the following values: 8000, 16000, 20000, 24000, 28000, 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000 bit/s. | ||||||||
| Quality | A complex parameter determining the output audio quality. Can possess values from 100 to 500. The higher the value is, the better the output video quality is, but the lower the conversion speed is. Default value - 100. |
AMR
Example:
"AMR":{"Bitrate":7950}}
| Parameter | Description |
|---|---|
| Bitrate | Audio bitrate. Default value - 4750. Can possess the following values: 4750, 5150, 5900, 6700, 7400, 7950, 10200, 12200 kbit/s. |
Examples
XML-RPC
<member>
<name>format_id</name>
<value><string>16506</string></value>
</member>
<member>
<name>preset_id</name>
<value><string>-2</string></value>
</member>
<member>
<name>preset_data</name>
<value><string>
{
"VideoCodec":"s263",
"AudioCodec":"samr",
"Size":"23068960",
"FrameRate":"15",
"ResizeMethod":"1",
"ResizeQuality":"1",
"Frequency":"8000",
"Channels":"1",
"VParams":
{
"H263":
{
"MotionSrchRng":"15",
"Bitrate":"448000",
"Quality":"30",
"VBR":"false"
}
},
"AParams":
{
"AMR":
{
"Bitrate":"12200"
}
}
}
</string></value>
</member>JSON-RPC
"preset":
[{
"format_id":"16506",
"preset_id":"-2",
"preset_data":"
{
\"VideoCodec\":\"s263\",
\"AudioCodec\":\"samr\",
\"Size\":\"23068960\",
\"FrameRate\":\"15\",
\"ResizeMethod\":\"1\",
\"ResizeQuality\":\"1\",
\"Frequency\":\"8000\",
\"Channels\":\"1\",
\"VParams\":
{
\"H263\":
{
\"MotionSrchRng\":\"15\",
\"Bitrate\":448000,
\"Quality\":\"30\",
\"VBR\":false
}
},
\"AParams\":
{
\"AMR\":
{
\"Bitrate\":12200
}
}
}"
}]Contents
Other formats
Still have a question?
| Language: |
English • Русский |
