03 February 2010
almost 15 years ago by Encoding.com Product Team
iPhone Streaming Features
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<output>iphone_stream</output>
<bitrates>[CommaSeparatedList]</bitrates>
<segment_duration>[Duration]</segment_duration>
<pack_files>[yes|no]</pack_files>
<!-- Destination fields -->
<destination>[DestFile]</destination> <!-- optional -->
<!-- ... -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "iphone_stream",
"bitrates": "[CommaSeparatedList]",
"segment_duration": "[Duration]",
"pack_files": "[yes|no]",
"destination": "[DestFile]"
}
}
}
With the following specific parameters:
Format Name | Description | Allowed Values | Default Values |
---|---|---|---|
bitrates | Comma separated list of bitrates. | One or more valid bitrate values, separated by comma | 96k,256k,800k |
segment_duration | Segment duration to split media (in seconds) | Non-negative integer | 10 |
pack_files | Whether to pack result files to single tarball | yes, no | yes |
Image Converting Changes
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<output>image</output>
<image_format>jpg</image_format>
<resize_method>resize</resize_method>
<size>560x420</size>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<quality>75</quality>
<sharpen_radius>1</sharpen_radius>
<sharpen_sigma>0.5</sharpen_sigma>
<remove_metadata>no</remove_metadata>
<!-- Destination fields -->
<destination>[DestFile]</destination>
<!-- ... -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "image",
"image_format": "jpg",
"resize_method": "resize",
"size": "560x420",
"keep_aspect_ratio": "yes",
"quality": "75",
"sharpen_radius": "1",
"sharpen_sigma": "0.5",
"remove_metadata": "no",
"destination": "[DestFile]"
}
}
}
With the following specific parameters:
Format Name | Description | Allowed Values | Default Values |
---|---|---|---|
image_format | [required] — Format of resulting image. | jpg, png, gif | jpg |
size | Size of resulting image. | WxH or Wx0 or 0xH or Wx or xH, where W and H are positive integers | none |
resize_method | How the original picture will be inscribed to new size | resize, crop, combine | resize |
keep_aspect_ratio | Whether to keep width to height ratio of original picture | yes, no | yes |
quality | JPEG quality | jpg: 1-100All: none | 80 |
sharpen_radius | Sharpen radius (use 0 in most cases) | Integer: 0-10 | none |
sharpen_sigma | Sharpen amount (best are 0.5-1.0) | Float: 0, 0.2-10 | 0 |
remove_metadata | Whether to remove image meta data (incl. EXIF) | yes, no | no |
Advanced H.264 Parameters
To see the example for parameters please follow this link