MPEG1,2 Custom Settings 1.1

From Aviberry API

Jump to: navigation, search

Contents
Other formats
Still have a question?


Contents

Type

Type - video codec.
Default value - 2.

Can possess the following values:

Value Description
1 MPEG-1
2 MPEG-2

Width

Width - frame width in pixels.

Height

Height - frame height in pixels.

AspectRatio

AspectRatio - display aspect ratio. In the general case, can differ from the Width:Height ratio.

Can possess the following values:

Value Description
1 Use the Width:Height ratio (square pixel)
2 4:3
3 16:9
4 2.21:1

FrameRate

FrameRate - number of frames per second.

Default value - 25.
Can possess the following values: 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.

VideoBitrate

VideoBitrate - video bitrate.
The special value 0 is used to set automatic bitrate control. The other values set bitrate in kbit/s.

VBRQuality

VBRQuality - sets the output video quality when variable bitrate is used. The higher the value is, the better the output video quality is, but the lower the conversion speed is.

Can possess the following values:

Value Description
0 Don't use variable bitrate
1 The highest quality
2 Very high quality
3 High quality
4 Normal quality

IsSound

IsSound - 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

Frequency

Frequency - audio sample rate.

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

AudioBitrate

AudioBitrate - audio bitrate.

Can possess the following values: 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 kbit/s.

Examples

XML-RPC

<member> <name>format_id</name> <value><string>16501</string></value> </member> <member> <name>preset_id</name> <value><string>-2</string></value> </member> <member> <name>preset_data</name> <value><string> { "Type":"2", "Width":"640", "Height":"480", "AspectRatio":"2", "FrameRate":"25", "VideoSAsInput":"false", "ResizeMethod":"1", "ResizeQuality":"1", "VideoBitrate":"2070", "VBRQuality":"0", "IsSound":"true", "Frequency":"48000", "Channels":"2", "AudioBitrate":"224" } </string></value> </member>

JSON-RPC

"preset": [{ "format_id":"16501", "preset_id":"-2", "preset_data":" { \"Type\":\"2\", \"Width\":\"640\", \"Height\":\"480\", \"AspectRatio\":\"2\", \"FrameRate\":\"25\", \"VideoSAsInput\":false, \"ResizeMethod\":\"1\", \"ResizeQuality\":\"1\", \"VideoBitrate\":\"2070\", \"VBRQuality\":\"0\", \"IsSound\":true, \"Frequency\":\"48000\", \"Channels\":\"2\", \"AudioBitrate\":\"224\" }" }]



Contents
Other formats
Still have a question?

Views
Personal tools