VP8/VP9

Preset: 1

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>1</preset>
        <video_codec_parameters>
            <two_pass>yes</two_pass>
            <quality>best</quality>
            <auto-alt-ref>1</auto-alt-ref>
            <lag-in-frames>16</lag-in-frames>
            <slices>2</slices>
            <static-thresh>0</static-thresh>
            <skip_threshold>0</skip_threshold>
            <qmin>0</qmin>
            <qmax>60</qmax>
            <minsection-pct>5</minsection-pct>
            <maxsection-pct>800</maxsection-pct>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>2000k</target-bitrate>
            <fps>30000/1001</fps>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "1",
            "video_codec_parameters": {
                "two_pass": "yes",
                "quality": "best",
                "auto-alt-ref": "1",
                "lag-in-frames": "16",
                "slices": "2",
                "static-thresh": "0",
                "skip_threshold": "0",
                "qmin": "0",
                "qmax": "60",
                "minsection-pct": "5",
                "maxsection-pct": "800",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "2000k",
                "fps": "30000/1001"
            }
        }
    }
}

Preset: 2

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>2</preset>
        <video_codec_parameters>
            <two_pass>yes</two_pass>
            <quality>good</quality>
            <auto-alt-ref>1</auto-alt-ref>
            <lag-in-frames>16</lag-in-frames>
            <slices>2</slices>
            <static-thresh>0</static-thresh>
            <qmin>0</qmin>
            <qmax>60</qmax>
            <minsection-pct>5</minsection-pct>
            <maxsection-pct>800</maxsection-pct>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>2000k</target-bitrate>
            <fps>30000/1001</fps>
            <cpu-used>1</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "2",
            "video_codec_parameters": {
                "two_pass": "yes",
                "quality": "good",
                "auto-alt-ref": "1",
                "lag-in-frames": "16",
                "slices": "2",
                "static-thresh": "0",
                "qmin": "0",
                "qmax": "60",
                "minsection-pct": "5",
                "maxsection-pct": "800",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "2000k",
                "fps": "30000/1001",
                "cpu-used": "1"
            }
        }
    }
}

Preset: 3

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>3</preset>
        <video_codec_parameters>
            <two_pass>yes</two_pass>
            <quality>good</quality>
            <auto-alt-ref>1</auto-alt-ref>
            <lag-in-frames>16</lag-in-frames>
            <static-thresh>0</static-thresh>
            <qmin>4</qmin>
            <qmax>63</qmax>
            <profile>1</profile>
            <minsection-pct>15</minsection-pct>
            <maxsection-pct>400</maxsection-pct>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>2000k</target-bitrate>
            <fps>30000/1001</fps>
            <cpu-used>0</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "3",
            "video_codec_parameters": {
                "two_pass": "yes",
                "quality": "good",
                "auto-alt-ref": "1",
                "lag-in-frames": "16",
                "static-thresh": "0",
                "qmin": "4",
                "qmax": "63",
                "profile": "1",
                "minsection-pct": "15",
                "maxsection-pct": "400",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "2000k",
                "fps": "30000/1001",
                "cpu-used": "0"
            }
        }
    }
}

Preset: 4

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>4</preset>
        <video_codec_parameters>
            <two_pass>yes</two_pass>
            <cbr>yes</cbr>
            <quality>good</quality>
            <static-thresh>0</static-thresh>
            <skip_threshold>70</skip_threshold>
            <qmin>4</qmin>
            <qmax>63</qmax>
            <undershoot-pct>95</undershoot-pct>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>400k</target-bitrate>
            <fps>30000/1001</fps>
            <buf-sz>6000</buf-sz>
            <buf-initial-sz>4000</buf-initial-sz>
            <cpu-used>0</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "4",
            "video_codec_parameters": {
                "two_pass": "yes",
                "cbr": "yes",
                "quality": "good",
                "static-thresh": "0",
                "skip_threshold": "70",
                "qmin": "4",
                "qmax": "63",
                "undershoot-pct": "95",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "400k",
                "fps": "30000/1001",
                "buf-sz": "6000",
                "buf-initial-sz": "4000",
                "cpu-used": "0"
            }
        }
    }
}

Preset: 5

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>5</preset>
        <video_codec_parameters>
            <two_pass>yes</two_pass>
            <quality>good</quality>
            <auto-alt-ref>1</auto-alt-ref>
            <lag-in-frames>16</lag-in-frames>
            <slices>2</slices>
            <qmin>4</qmin>
            <qmax>60</qmax>
            <arnr-max-frames>5</arnr-max-frames>
            <arnr-strength>3</arnr-strength>
            <minsection-pct>5</minsection-pct>
            <maxsection-pct>800</maxsection-pct>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>2000k</target-bitrate>
            <fps>30000/1001</fps>
            <cpu-used>0</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "5",
            "video_codec_parameters": {
                "two_pass": "yes",
                "quality": "good",
                "auto-alt-ref": "1",
                "lag-in-frames": "16",
                "slices": "2",
                "qmin": "4",
                "qmax": "60",
                "arnr-max-frames": "5",
                "arnr-strength": "3",
                "minsection-pct": "5",
                "maxsection-pct": "800",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "2000k",
                "fps": "30000/1001",
                "cpu-used": "0"
            }
        }
    }
}

Preset: 6

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>6</preset>
        <video_codec_parameters>
            <quality>good</quality>
            <slices>2</slices>
            <static-thresh>0</static-thresh>
            <qmin>0</qmin>
            <qmax>63</qmax>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>2000k</target-bitrate>
            <fps>30000/1001</fps>
            <cpu-used>0</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "6",
            "video_codec_parameters": {
                "quality": "good",
                "slices": "2",
                "static-thresh": "0",
                "qmin": "0",
                "qmax": "63",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "2000k",
                "fps": "30000/1001",
                "cpu-used": "0"
            }
        }
    }
}

Preset: 7

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>7</preset>
        <video_codec_parameters>
            <quality>good</quality>
            <slices>2</slices>
            <static-thresh>0</static-thresh>
            <qmin>0</qmin>
            <qmax>63</qmax>
            <keyint_max>360</keyint_max>
            <keyint_min>0</keyint_min>
            <target-bitrate>2000k</target-bitrate>
            <fps>30000/1001</fps>
            <cpu-used>3</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "7",
            "video_codec_parameters": {
                "quality": "good",
                "slices": "2",
                "static-thresh": "0",
                "qmin": "0",
                "qmax": "63",
                "keyint_max": "360",
                "keyint_min": "0",
                "target-bitrate": "2000k",
                "fps": "30000/1001",
                "cpu-used": "3"
            }
        }
    }
}

Preset: 8

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>webm</output>
        <video_codec>[vp8|vp9]</video_codec>
      	<preset>8</preset>
        <video_codec_parameters>
            <quality>realtime</quality>
            <cbr>yes</cbr>
            <qmin>4</qmin>
            <qmax>56</qmax>
            <undershoot-pct>95</undershoot-pct>
            <keyint_max>999999</keyint_max>
            <target-bitrate>500k</target-bitrate>
            <fps>15000/1001</fps>
            <buf-sz>6000</buf-sz>
            <buf-initial-sz>4000</buf-initial-sz>
            <cpu-used>4</cpu-used>
        </video_codec_parameters>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "output": "webm",
            "video_codec": "[vp8|vp9]",
            "preset": "8",
            "video_codec_parameters": {
                "quality": "realtime",
                "cbr": "yes",
                "qmin": "4",
                "qmax": "56",
                "undershoot-pct": "95",
                "keyint_max": "999999",
                "target-bitrate": "500k",
                "fps": "15000/1001",
                "buf-sz": "6000",
                "buf-initial-sz": "4000",
                "cpu-used": "4"
            }
        }
    }
}
ParameterDescriptionAllowed ValuesAllowed Values
two_passTwo pass transcodingyes, nopreset 1-5: yes
preset 6-8: none
qualityVideo qualitybest, good, realtimepreset 1: best
preset 2-7: good
preset 8: realtime
auto-alt-refAutomatic alt reference frames0,1preset 1-3: 1
preset 4: 0
preset 5: 1
preset 6-8: 0
lag-in-framesMax number of frames to lagPositive integer from 0 to 25.preset 1-3: 16
preset 4: none
preset 5: 16
preset 6-8: none
slicesSlices numberPositive integer number greater than 0.preset 1,2: 2
preset 3,4: none
preset 5-7: 2
preset 8: none
static-threshMotion detection thresholdPositive integer number.preset 1-4: 0
preset 5: none
preset 6,7: 0
preset 8: none
skip_thresholdTemporal resampling thresholdPositive integer number from 0 to 100.preset 1: 0
preset 2,3: none
preset 4: 70
preset 5-8: none
qminMinimum quantizerPositive integer number from 0 to 63.preset 1,2: 0
preset 3-5: 4
preset 6,7: 0
preset 8: 4
qmaxMaximum quantizerPositive integer number from 0 to 63. Must be greater than qmin.preset 1,2: 60
preset 3,4: 63
preset 5: 60
preset 6,7: 63
preset 8: 56
minsection-pctGOP min bitratePositive integer number from 0 to 20.preset 1,2: 5
preset 3: 15
preset 4: none
preset 5: 5
preset 6-8: none
maxsection-pctGOP max bitratePositive integer number from 200 to 800.preset 1,2: 800
preset 3: 400
preset 4: none
preset 5: 800
preset 6-8: none
keyint_maxMaximum keyframe intervalPositive integer number.preset 1-7: 360
preset 8: 999999
keyint_minMinimum keyframe intervalPositive integer number.preset 1-7: 0
preset 8: none
target-bitrateBitratePositive integer number.preset 1-3: 2000k
preset 4: 400k
preset 5-7: 2000k
preset 8: 500k
fpsStream frame rateRate/Scalepreset 1-7: 30000/1001
preset 8: 15000/1001
cpu-usedCPU UsedInteger number from -16 to 16preset 1: none
preset 2: 1
preset 3-6: 0
preset 7: 3
preset 8: 4
profileBitstream profile number to useInteger number from 0 to 3preset 1,2: none
preset 3: 1
preset 4-8: none
cbrConstant Bitrateyes, nopreset 1-3: none
preset 4: yes
preset 5-7: none
preset 8: yes
undershoot-pctMinimum datarate undershoot.Integer number from 1 to 100preset 1-3: none
preset 4: 95
preset 5-7: none
preset 8: 95
buf-szClient buffer sizePositive integer number.preset 1-3: none
preset 4: 6000
preset 5-7: none
preset 8: 6000
buf-initial-szClient initial buffer sizePositive integer number.preset 1-3: none
preset 4: 4000
preset 5-7: none
preset 8: 4000
arnr-max-framesAltRef Max FramesInteger number from 0 to 25preset 1-4: none
preset 5: 5
preset 6-8: none
arnr-strengthAltRef StrengthInteger number from 0 to 6preset 1-4: none
preset 5: 3
preset 6-8: none