03 February 2010

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 NameDescriptionAllowed ValuesDefault Values
bitratesComma separated list of bitrates.One or more valid bitrate values, separated by comma96k,256k,800k
segment_durationSegment duration to split media (in seconds)Non-negative integer10
pack_filesWhether to pack result files to single tarballyes, noyes

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 NameDescriptionAllowed ValuesDefault Values
image_format[required] — Format of resulting image.jpg, png, gifjpg
sizeSize of resulting image.WxH or Wx0 or 0xH or Wx or xH, where W and H are positive integersnone
resize_methodHow the original picture will be inscribed to new sizeresize, crop, combineresize
keep_aspect_ratioWhether to keep width to height ratio of original pictureyes, noyes
qualityJPEG qualityjpg: 1-100All: none80
sharpen_radiusSharpen radius (use 0 in most cases)Integer: 0-10none
sharpen_sigmaSharpen amount (best are 0.5-1.0)Float: 0, 0.2-100
remove_metadataWhether to remove image meta data (incl. EXIF)yes, nono

Advanced H.264 Parameters

To see the example for parameters please follow this link