30 December 2008
about 16 years ago by Encoding.com Product Team
VP6 encoding moved under FLV format
Format Name | Description | Allowed Values | Default Values |
---|---|---|---|
video_codec | Video codec. | flv: flv, vp6 fl9: libx264 wmv, zune: wmv2, msmpeg4 3gp: h263, libx264 m4v: mpeg4 mp4, ipod, iphone, appletv, psp: mpeg4, libx264 | flv: 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 Name | Description | Allowed Values | Default Values |
---|---|---|---|
keyframe | Keyframe period, in frames. | positive integer. | 300 |
start | Start encoding from (sec). | non-negative integer. | None |
duration | Duration (sec). | positive integer. | None |