30 December 2008

VP6 encoding moved under FLV format

Format NameDescriptionAllowed ValuesDefault Values
video_codecVideo codec.flv: flv, vp6 fl9: libx264 wmv, zune: wmv2, msmpeg4 3gp: h263, libx264 m4v: mpeg4 mp4, ipod, iphone, appletv, psp: mpeg4, libx264flv: flv fl9: libx264 wmv, zune: wmv2 3gp: h263 mp4, m4v, ipod, iphone, appletv, psp: mpeg4

VP6 Features

If you choose 'vp6' codec for 'flv' output format, your XML query will differ (less number of parameters are supported, see below):

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>flv</output>
        <video_codec>vp6</video_codec>
        <bitrate></bitrate> <!-- optional -->
        <size></size> <!-- optional -->
        <audio_bitrate>64k</audio_bitrate> <!-- optional -->
        <audio_sample_rate>44100</audio_sample_rate> <!-- optional -->
        <audio_channels_number>2</audio_channels_number> <!-- optional -->
        <framerate></framerate> <!-- optional -->
        <destination></destination> <!-- optional -->
    </format>
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "[Action]",
        "format": {
            "output": "flv",
            "video_codec": "vp6",
            "bitrate": "",
            "size": "",
            "audio_bitrate": "64k",
            "audio_sample_rate": "44100",
            "audio_channels_number": "2",
            "framerate": "",
            "destination": ""
        }
    }
}

Note: old-style requests with vp6 are deprecated and will be automatically converted to the new form.

Custom keyframe interval and video splicing added

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <!-- Format fields -->
        <keyframe>[Keyframe Period (GOP)]</keyframe>
        <start>[Start From]</start>
        <duration>[Result Duration]</duration>
        <!-- Destination fields -->
        <!-- ... -->
        <!-- Logo fields (OPTIONAL) -->
        <!-- ... -->
    </format>
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "[Action]",
        "format": {
            "keyframe": "[Keyframe Period (GOP)]",
            "start": "[Start From]",
            "duration": "[Result Duration]"
        }
    }
}

Format fields

 

Format NameDescriptionAllowed ValuesDefault Values
keyframeKeyframe period, in frames.positive integer.300
startStart encoding from (sec).non-negative integer.None
durationDuration (sec).positive integer.None