WMV 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 |
|---|---|
| 1 | Uncompressed Video |
| 827739479 | Windows Media Video V7 |
| 844516695 | Windows Media Video V8 |
| 861293911 | Windows Media Video 9 |
| 827544397 | Windows Media Screen V7 |
| 844321613 | Windows Media Video 9 Screen |
| 826496599 | Windows Media Video 9 Advanced Profile |
VideoBuffer
VideoBuffer - maximal delay between receiving and displaying the stream. The measurement unit is ms.
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.
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) |
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. |
VideoQuality
VideoQuality - parameter responsible for the output video quality. The higher the value is, the better the output video quality is, but the lower the conversion speed is.
Can possess values from 1 to 100.
VideoBitrate
VideoBitrate - video bitrate. The special value -1 is used to set automatic bitrate control. The other values set bitrate in bit/s.
AudioCodec
AudioCodec - audio codec.
Can possess the following values:
| Value | Description |
|---|---|
| -1 | No sound |
| 10 | Windows Media Audio Voice 9 |
| 353 | Windows Media Audio 9.2 |
| 354 | Windows Media Audio 10 Professional |
AudioBuffer
AudioBuffer - Maximal delay between receiving and displaying the stream. The measurement unit is ms.
The special value -1 - don't use AudioBuffer.
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.
Can possess the following values:
| Value | Description |
|---|---|
| 1 | Mono |
| 2 | Stereo |
WMV
| Parameter | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| VBR | Using variable video bitrate
| ||||||||||
| VBRMaxBitrate | Maximal video bitrate value. The measurement unit is kbit/s.
Is used only if VBR=2. | ||||||||||
| VBRMaxBuff | Maximal value of the VideoBuffer parameter. The measurement unit is ms.
Is used only if VBR=2. | ||||||||||
| VBRQuality | Affects video quality. The higher the value is, the better the output video quality is, but the lower the conversion speed is.
Is used only if VBR=1.
Can possess values from 1 to 100. | ||||||||||
| VidBuffer | This parameter is no longer used. It's recommended to use the VideoBuffer parameter instead. |
WMA
| Parameter | Description | ||||||
|---|---|---|---|---|---|---|---|
| IsAV | It's recommended to always set IsAV=1 if a file has at least one video track. | ||||||
| VBR | Using variable audio bitrate
| ||||||
| VBRQuality | Affects audio quality. The higher the value is, the better the quality is, but the lower the conversion speed is.
Is used only if VBR=1.
Can possess values from 1 to 100. |
Parameter Combinations
When converting to WMV and WMA formats, you should remember that not every parameter combination will be correct.
Supported combinations can vary depending on selected audio codec.
For more information, please check Parameter combinations for WMV and WMA
Examples
XML-RPC
<member>
<name>format_id</name>
<value><string>16503</string></value>
</member>
<member>
<name>preset_id</name>
<value><string>-2</string></value>
</member>
<member>
<name>preset_data</name>
<value><string>
{
"VideoCodec":"861293911",
"VideoBuffer":"5000",
"Width":"600",
"Height":"200",
"FrameRate":"30.00",
"VideoSAsInput":"false",
"ResizeMethod":"1",
"ResizeQuality":"1",
"VideoQuality":"85",
"VideoBitrate":"-1",
"AudioCodec":"353",
"AudioBuffer":"5000",
"AudioBitrate":"192000",
"Frequency":"48000",
"Channels":"2",
"WMV":
{
"VBR":"0",
"VBRMaxBitrate":"0",
"VBRMaxBuff":"0",
"VBRQuality":"0",
"VidBuffer":"5000"
},
"WMA":
{
"IsAV":"1",
"VBR":"0",
"VBRQuality":"0"
}
}
</string></value>
</member>JSON-RPC
"preset":
{
"format_id": "16503",
"preset_id": "-2"
"preset_data": "
{
\"VideoCodec\":\"861293911\",
\"VideoBuffer\":\"5000\",
\"Width\":\"600\",
\"Height\":\"200\",
\"FrameRate\":\"30.00\",
\"VideoSAsInput\":\"false\",
\"ResizeMethod\":\"1\",
\"ResizeQuality\":\"1\",
\"VideoQuality\":\"85\",
\"VideoBitrate\":\"-1\",
\"AudioCodec\":\"353\",
\"AudioBuffer\":\"5000\",
\"AudioBitrate\":\"192000\",
\"Frequency\":\"48000\",
\"Channels\":\"2\",
\"WMV\":
{
\"VBR\":\"0\",
\"VBRMaxBitrate\":\"0\",
\"VBRMaxBuff\":\"0\",
\"VBRQuality\":\"0\",
\"VidBuffer\":\"5000\"
},
\"WMA\":
{
\"IsAV\":\"1\",
\"VBR\":\"0\",
\"VBRQuality\":\"0\"
}
}"
}Contents
Other formats
Still have a question?
| Language: |
English • Русский |
