21 April 2011
over 13 years ago by Encoding.com Product Team
Custom presets in API call
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<output>[PRESET_NAME]</output>
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "[PRESET_NAME]"
}
}
}
You could create and configure your custom output format in the user Interface. After that you will be able to use custom output formats in API calls as well.
Setting display aspect ratio
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<set_aspect_ratio>[ASPECT_RATIO]</set_aspect_ratio>
<!-- ... -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"set_aspect_ratio": "[ASPECT_RATIO]"
}
}
}
Format Name | Description | Allowed Values | Default Values |
---|---|---|---|
set_aspect_ratio | Display aspect ratio (DAR). When set, the option keep_aspect_ratio will be ignored. The option only has effect when used with the following formats: fl9, 3gp, mp4, m4v, ipod, iphone, ipad, android, ogg, webm, appletv, psp, iphone_stream, ipad_stream | Positive float value or N:M - where N and M are any positive integers. | None |
Thumbnail time in intervals
Added ability to make thumbnail each time interval by sign '!'. Thumbnail image files will be named with number at the end.
Added a Noise Reduction filter
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<noise_reduction>luma_spatial:chroma_spatial:luma_temp</noise_reduction>
<!-- ... -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"noise_reduction": "luma_spatial:chroma_spatial:luma_temp"
}
}
}
Format Name | Description | Allowed Values | Default Values |
---|---|---|---|
luma_spatial | Spatial Luma Strength. | [0,255] | 4:3:6 |
chroma_spatial | Spatial Chroma Strength | [0,255] | 4:3:6 |
luma_temp | Temporal Luma Strength. | [0,255] | 4:3:6 |
New MPEG-2 options
Audio codec MP2 added and set as default for MPEG-2.
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<output>mpeg2</output>
<keyframe>[12|15|25|30]</keyframe>
<bframes>[2|0]</bframes>
<gop>[cgop|sgop]</gop>
<!-- ... -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "mpeg2",
"keyframe": "[12|15|25|30]",
"bframes": "[2|0]",
"gop": "[cgop|sgop]"
}
}
}
Format Name | Description | Allowed Values | Default Values |
---|---|---|---|
keyframe | 12 [12 PAL DVD] , 15 [15 NTSC DVD], 25 [25 PAL Long GOP], 30 [30 NTSC Long GOP] | 15 | |
bframes | 2 [on = IBBPBBP], 0 [off = IPPPPPP] | 2 | |
gop | sgop [Strict (Locked)], cgop [Closed (Scene Detection)] | cgop |
Audio codec MP2 added and set as default for MPEG-2.