Encoding.com API Documentation

The Encoding.com API

Welcome to the EDC developer hub. You'll find comprehensive guides and documentation to help you start working with EDC as quickly as possible, as well as support if you get stuck. Let's jump right in!

    Recent API Changes

Advanced HLS default streams

List of default streams for advanced_hls format.

Params Streams
#1 #2 #3 #4 #5 #6 #7 #8 #9
audio_codec dolby_heaac  
video_codec libx264
profile baseline main high baseline
size 416x234 480x270 640x360 960x540 1280x720 1920x1080  
framerate 12 15 29.97  
keyframe 36 45 90  
bitrate 200k 400k 600k 1200k 3500k 5000k 6500k 8500k  
audio_bitrate 64k 96k 128k 64k
two_pass yes
audio_only   yes
still_image   first_segment
video_codec_parameters
sc_threshold 0
<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>advanced_hls</output>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>baseline</profile>
            <size>416x234</size>
            <framerate>12</framerate>
            <keyframe>36</keyframe>
            <bitrate>200k</bitrate>
            <audio_bitrate>64k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>baseline</profile>
            <size>480x270</size>
            <framerate>15</framerate>
            <keyframe>45</keyframe>
            <bitrate>400k</bitrate>
            <audio_bitrate>64k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>baseline</profile>
            <size>640x360</size>
            <framerate>29.97</framerate>
            <keyframe>90</keyframe>
            <bitrate>600k</bitrate>
            <audio_bitrate>64k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>baseline</profile>
            <size>640x360</size>
            <framerate>29.97</framerate>
            <keyframe>90</keyframe>
            <bitrate>1200k</bitrate>
            <audio_bitrate>96k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>main</profile>
            <size>960x540</size>
            <framerate>29.97</framerate>
            <keyframe>90</keyframe>
            <bitrate>3500k</bitrate>
            <audio_bitrate>96k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>main</profile>
            <size>1280x720</size>
            <framerate>29.97</framerate>
            <keyframe>90</keyframe>
            <bitrate>5000k</bitrate>
            <audio_bitrate>128k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>main</profile>
            <size>1280x720</size>
            <framerate>29.97</framerate>
            <keyframe>90</keyframe>
            <bitrate>6500k</bitrate>
            <audio_bitrate>128k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_codec>dolby_heaac</audio_codec>
            <video_codec>libx264</video_codec>
            <profile>high</profile>
            <size>1920x1080</size>
            <framerate>29.97</framerate>
            <keyframe>90</keyframe>
            <bitrate>8500k</bitrate>
            <audio_bitrate>128k</audio_bitrate>
            <two_pass>yes</two_pass>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
        <stream>
            <audio_only>yes</audio_only>
            <video_codec>libx264</video_codec>
            <profile>baseline</profile>
            <two_pass>yes</two_pass>
            <audio_bitrate>64k</audio_bitrate>
            <still_image>first_segment</still_image>
            <video_codec_parameters>
                <sc_threshold>0</sc_threshold>
            </video_codec_parameters>
        </stream>
    </format>
</query>
{
    "query": {
        "userid": "",
        "userkey": "",
        "action": "[Action]",
        "format": {
            "output": "advanced_hls",
            "stream": [
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "baseline",
                    "size": "416x234",
                    "framerate": "12",
                    "keyframe": "36",
                    "bitrate": "200k",
                    "audio_bitrate": "64k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "baseline",
                    "size": "480x270",
                    "framerate": "15",
                    "keyframe": "45",
                    "bitrate": "400k",
                    "audio_bitrate": "64k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "baseline",
                    "size": "640x360",
                    "framerate": "29.97",
                    "keyframe": "90",
                    "bitrate": "600k",
                    "audio_bitrate": "64k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "baseline",
                    "size": "640x360",
                    "framerate": "29.97",
                    "keyframe": "90",
                    "bitrate": "1200k",
                    "audio_bitrate": "96k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "main",
                    "size": "960x540",
                    "framerate": "29.97",
                    "keyframe": "90",
                    "bitrate": "3500k",
                    "audio_bitrate": "96k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "main",
                    "size": "1280x720",
                    "framerate": "29.97",
                    "keyframe": "90",
                    "bitrate": "5000k",
                    "audio_bitrate": "128k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "main",
                    "size": "1280x720",
                    "framerate": "29.97",
                    "keyframe": "90",
                    "bitrate": "6500k",
                    "audio_bitrate": "128k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_codec": "dolby_heaac",
                    "video_codec": "libx264",
                    "profile": "high",
                    "size": "1920x1080",
                    "framerate": "29.97",
                    "keyframe": "90",
                    "bitrate": "8500k",
                    "audio_bitrate": "128k",
                    "two_pass": "yes",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                },
                {
                    "audio_only": "yes",
                    "video_codec": "libx264",
                    "profile": "baseline",
                    "two_pass": "yes",
                    "audio_bitrate": "64k",
                    "still_image": "first_segment",
                    "video_codec_parameters": {
                        "sc_threshold": "0"
                    }
                }
            ]
        }
    }
}