27 February 2013

Slideshow

If you want to create slideshow from your sources you should specify 1 in Main Fields. Now we can support following input formats for slideshow: jpeg, png, mpeg audio, mpeg-4, wave. If audio file was specified - it would be used as audio stream in output slideshow video. By default each slide has duration equal to 3 seconds. If you want to change it, you should add duration parameter to your source.

Text overlay

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <!-- Format fields -->
        <text_overlay>
            <text>[Font1Source]</text>
            <font_source>[Font1Source]</font_source>
            <font_size>[Font1Size]</font_size>
            <font_rotate>[Font1Rotate]</font_rotate>
            <font_color>[Font1Color]</font_color>
            <align_center>[0|1]</align_center>
            <overlay_x>[TextOverlay1PositionX]</overlay_x>
            <overlay_y>[TextOverlay1PositionY]</overlay_y>
            <size>[TextOverlay1Size]</size>
            <overlay_start>[TextOverlay1StartInSeconds]</overlay_start>
            <overlay_duration>[TextOverlay1DurationInSeconds]</overlay_duration>
        </text_overlay>
        <!-- ... -->
        <text_overlay>
            <text>[FontNSource]</text>
            <font_source>[FontNSource]</font_source>
            <font_size>[FontNSize]</font_size>
            <font_rotate>[FontNRotate]</font_rotate>
            <font_color>[FontNColor]</font_color>
            <align_center>[0|1]</align_center>
            <overlay_x>[TextOverlayNPositionX]</overlay_x>
            <overlay_y>[TextOverlayNPositionY]</overlay_y>
            <size>[TextOverlayNSize]</size>
            <overlay_start>[TextOverlayNStartInSeconds]</overlay_start>
            <overlay_duration>[TextOverlayNDurationInSeconds]</overlay_duration>
        </text_overlay>
    </format>
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "[Action]",
        "format": {
            "text_overlay": [
                {
                    "text": "[Font1Source]",
                    "font_source": "[Font1Source]",
                    "font_size": "[Font1Size]",
                    "font_rotate": "[Font1Rotate]",
                    "font_color": "[Font1Color]",
                    "align_center": "[0|1]",
                    "overlay_x": "[TextOverlay1PositionX]",
                    "overlay_y": "[TextOverlay1PositionY]",
                    "size": "[TextOverlay1Size]",
                    "overlay_start": "[TextOverlay1StartInSeconds]",
                    "overlay_duration": "[TextOverlay1DurationInSeconds]"
                },
                {
                    "text": "[FontNSource]",
                    "font_source": "[FontNSource]",
                    "font_size": "[FontNSize]",
                    "font_rotate": "[FontNRotate]",
                    "font_color": "[FontNColor]",
                    "align_center": "[0|1]",
                    "overlay_x": "[TextOverlayNPositionX]",
                    "overlay_y": "[TextOverlayNPositionY]",
                    "size": "[TextOverlayNSize]",
                    "overlay_start": "[TextOverlayNStartInSeconds]",
                    "overlay_duration": "[TextOverlayNDurationInSeconds]"
                }
            ]
        }
    }
}
Field NameDescriptionAllowed ValuesDefault Values
(required)textText for overlayValid urlNone
(required)font_sourceFont's source URLValid urlNone
font_sizeText font's sizenon-negative integer20
font_rotateAngle on which text should be rotatedinteger0
font_colorFont color6-digits hexadecimal 000000-FFFFFF000000
align_centerAlign text by center0 or 10
overlay_xOverlay's position Xnon-negative integer0
overlay_yOverlay's position Ynon-negative integer0
sizeSize of the text blockWxH where W and H - positive integersNone
overlay_startOverlay's start time (in seconds)positive float value0
overlay_durationOverlay's duration (in seconds)positive float valueNone

Ability to add paddings to video

If you want to add paddings to video you should specify in format fields:

Field NameDescriptionAllowed ValuesDefault Values
padd_topPadding TopNon-negative integer0
padd_leftPadding LeftNon-negative integer0
padd_rightPadding RightNon-negative integer0
padd_bottomPadding BottomNon-negative integer0

Feature Request: Avid DNxHD format for .mov output

Added dnxhd. Additionally the following options are available in fields:

Field NameDescriptionAllowed ValuesDefault Values
best_qualityBest quality mode (very slow)yes, nono
interlacedyes, nono
Note:bitrate is specified separately and the default is 145m

Feature request: adaptive framesize HLS preset using RESOLUTION parameter

Several sizes may be specified in for Apple's HTTP Live Streaming (HLS) output.

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <!-- Format fields -->
        <output>[iphone_stream|ipad_stream]</output>
        <size>[CommaSeparatedList]</size>
        <bitrates>[CommaSeparatedList]</bitrates>
    </format>
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "[Action]",
        "format": {
            "output": "[iphone_stream|ipad_stream]",
            "size": "[CommaSeparatedList]",
            "bitrates": "[CommaSeparatedList]"
        }
    }
}
Field NameDescriptionAllowed ValuesDefault Values
sizeComma separated list of video sizesOne or more valid size values separated by commasiphone_stream: 400x300ipad_stream: 640x480

Force YUV420p colorspace

Added <pix_format> option in format fields to lock output to YUV420p colorspace.

Field NameDescriptionAllowed ValuesDefault Values
pix_formatPixel formatyuv420p, yuv422p, yuvj420p, yuvj422p, sourceyuv420p
Note:If 'source' specified as value, then <pix_format> won't be added to format options.