Sample HLS Template

Below is an HLS output example using our most modern advanced_hls output format template. This template will generate 1 Dolby HEEAC 64k audio only stream and 8 video streams ranging from 640x360 @ 200k - 1920x1080 @ 8500k. All parameters can be customized for your workflow's specific requirements.

<?xml version="1.0"?>
<query>
  <userid>[UserID]</userid>
  <userkey>[UserKey]</userkey>
  <action>AddMedia</action>
  <source>[SOURCE URL]</source>
  <format>
    <destination>[DESTINATION URL]</destination>
    <output>advanced_hls</output>
    <stream>
      <audio_bitrate>64k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <bitrate>200k</bitrate>
      <framerate>29.97</framerate>
      <keyframe>90</keyframe>
      <profile>baseline</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>0</coder>
        <flags>+loop</flags>
        <flags2>-wpred-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>7</subq>
        <me_range>16</me_range>
        <bf>0</bf>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <trellis>1</trellis>
        <level>13</level>
        <refs>3</refs>
        <wpredp>0</wpredp>
        <vprofile>baseline</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>416x234</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <two_pass>no</two_pass>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>64k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>400k</bitrate>
      <framerate>29.97</framerate>
      <keyframe>90</keyframe>
      <profile>baseline</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>0</coder>
        <flags>+loop</flags>
        <flags2>-wpred-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>7</subq>
        <me_range>16</me_range>
        <bf>0</bf>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <trellis>1</trellis>
        <level>13</level>
        <refs>3</refs>
        <wpredp>0</wpredp>
        <vprofile>baseline</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>480x270</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>64k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>600k</bitrate>
      <framerate>29.97</framerate>
      <profile>baseline</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>0</coder>
        <flags>+loop</flags>
        <flags2>-wpred-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>7</subq>
        <me_range>16</me_range>
        <bf>0</bf>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <trellis>1</trellis>
        <level>13</level>
        <refs>3</refs>
        <wpredp>0</wpredp>
        <vprofile>baseline</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>640x360</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>96k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>1200k</bitrate>
      <framerate>29.97</framerate>
      <profile>baseline</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>0</coder>
        <flags>+loop</flags>
        <flags2>-wpred-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>7</subq>
        <me_range>16</me_range>
        <bf>0</bf>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <trellis>1</trellis>
        <level>13</level>
        <refs>3</refs>
        <wpredp>0</wpredp>
        <vprofile>baseline</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>640x360</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>96k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>3500k</bitrate>
      <framerate>29.97</framerate>
      <profile>main</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>1</coder>
        <flags>+loop</flags>
        <flags2>-bpyramid+fastpskip-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>6</subq>
        <me_range>16</me_range>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <level>30</level>
        <vprofile>main</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>960x540</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>128k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>5000k</bitrate>
      <framerate>29.97</framerate>
      <profile>main</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>1</coder>
        <flags>+loop</flags>
        <flags2>-bpyramid+fastpskip-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>6</subq>
        <me_range>16</me_range>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <level>30</level>
        <vprofile>main</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>1280x720</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>128k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>6500k</bitrate>
      <framerate>29.97</framerate>
      <profile>main</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>1</coder>
        <flags>+loop</flags>
        <flags2>-bpyramid+fastpskip-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>6</subq>
        <me_range>16</me_range>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <level>30</level>
        <vprofile>main</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>1280x720</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>128k</audio_bitrate>
      <audio_codec>dolby_heaac</audio_codec>
      <two_pass>yes</two_pass>
      <bitrate>8500k</bitrate>
      <framerate>29.97</framerate>
      <profile>high</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>1</coder>
        <flags>+loop</flags>
        <flags2>+bpyramid+wpred+mixed_refs+dct8x8-fastpskip</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>umh</me_method>
        <subq>7</subq>
        <me_range>16</me_range>
        <bf>16</bf>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>3</directpred>
        <level>30</level>
        <refs>4</refs>
        <psy>0</psy>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <size>1920x1080</size>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <audio_only>no</audio_only>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image>no</still_image>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <stream>
      <audio_bitrate>64k</audio_bitrate>
      <still_image>first_segment</still_image>
      <two_pass>yes</two_pass>
      <profile>baseline</profile>
      <video_codec>libx264</video_codec>
      <video_codec_parameters>
        <sc_threshold>0</sc_threshold>
        <coder>0</coder>
        <flags>+loop</flags>
        <flags2>-wpred-dct8x8</flags2>
        <cmp>+chroma</cmp>
        <partitions>+parti8x8+parti4x4+partp8x8+partb8x8</partitions>
        <me_method>hex</me_method>
        <subq>7</subq>
        <me_range>16</me_range>
        <bf>0</bf>
        <keyint_min>25</keyint_min>
        <i_qfactor>0.71</i_qfactor>
        <b_strategy>1</b_strategy>
        <qcomp>0.6</qcomp>
        <qmin>10</qmin>
        <qmax>51</qmax>
        <qdiff>4</qdiff>
        <directpred>1</directpred>
        <trellis>1</trellis>
        <level>13</level>
        <refs>3</refs>
        <wpredp>0</wpredp>
        <vprofile>baseline</vprofile>
      </video_codec_parameters>
      <ftyp>mp42</ftyp>
      <audio_only>yes</audio_only>
      <size>400x300</size>
      <bitrate>1024k</bitrate>
      <audio_sample_rate>44100</audio_sample_rate>
      <audio_channels_number>2</audio_channels_number>
      <framerate>30</framerate>
      <keep_aspect_ratio>yes</keep_aspect_ratio>
      <audio_codec>libfaac</audio_codec>
      <cbr>no</cbr>
      <hard_cbr>no</hard_cbr>
      <deinterlacing>auto</deinterlacing>
      <video_sync>old</video_sync>
      <keyframe>90</keyframe>
      <audio_volume>100</audio_volume>
      <rotate>def</rotate>
      <metadata_copy>no</metadata_copy>
      <strip_chapters>no</strip_chapters>
      <pix_format>yuv420p</pix_format>
      <veryfast>auto</veryfast>
      <copy_timestamps>yes</copy_timestamps>
      <encryption>no</encryption>
      <encryption_method>aes-128-cbc</encryption_method>
      <hint>no</hint>
      <set_rotate>0</set_rotate>
      <copy_nielsen_metadata>no</copy_nielsen_metadata>
      <nielsen_distributor_id></nielsen_distributor_id>
      <duration_precision>0</duration_precision>
      <video_only>no</video_only>
      <add_iframe_stream>no</add_iframe_stream>
      <still_image_time>5</still_image_time>
      <still_image_size>480x320</still_image_size>
      <byte_range>no</byte_range>
      <group_id></group_id>
      <use_group_id></use_group_id>
      <drm>no</drm>
      <init_video_codec_parameters>
        <sc_threshold>0</sc_threshold>
      </init_video_codec_parameters>
    </stream>
    <turbo>no</turbo>
    <twin_turbo>no</twin_turbo>
    <ui_main_source></ui_main_source>
    <ui_alternate_source></ui_alternate_source>
    <ui_stream></ui_stream>
    <segment_duration>9</segment_duration>
    <duration_precision>0</duration_precision>
    <pack_files>yes</pack_files>
    <pack_type>tar</pack_type>
    <pack_each_stream>no</pack_each_stream>
    <encryption>no</encryption>
    <encryption_key></encryption_key>
    <encryption_key_file></encryption_key_file>
    <segmenter>v3</segmenter>
    <copy_nielsen_metadata>no</copy_nielsen_metadata>
    <nielsen_breakout_code></nielsen_breakout_code>
    <nielsen_distributor_id></nielsen_distributor_id>
    <file_extension>tar</file_extension>
    <main_source></main_source>
    <alternate_source></alternate_source>
  </format>
</query>

{
  "query": {
    "userid": "[UserID]",
    "userkey": "[UserKey]",
    "action": "AddMedia",
    "source": "[SOURCE URL]",
    "format": {
      "destination": "[DESTINATION URL]",
      "output": "advanced_hls",
      "stream": [
        {
          "audio_bitrate": "64k",
          "audio_codec": "dolby_heaac",
          "bitrate": "200k",
          "framerate": "29.97",
          "keyframe": "90",
          "profile": "baseline",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "0",
            "flags": "+loop",
            "flags2": "-wpred-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "7",
            "me_range": "16",
            "bf": "0",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "trellis": "1",
            "level": "13",
            "refs": "3",
            "wpredp": "0",
            "vprofile": "baseline"
          },
          "ftyp": "mp42",
          "size": "416x234",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "two_pass": "no",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "64k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "400k",
          "framerate": "29.97",
          "keyframe": "90",
          "profile": "baseline",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "0",
            "flags": "+loop",
            "flags2": "-wpred-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "7",
            "me_range": "16",
            "bf": "0",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "trellis": "1",
            "level": "13",
            "refs": "3",
            "wpredp": "0",
            "vprofile": "baseline"
          },
          "ftyp": "mp42",
          "size": "480x270",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "64k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "600k",
          "framerate": "29.97",
          "profile": "baseline",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "0",
            "flags": "+loop",
            "flags2": "-wpred-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "7",
            "me_range": "16",
            "bf": "0",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "trellis": "1",
            "level": "13",
            "refs": "3",
            "wpredp": "0",
            "vprofile": "baseline"
          },
          "ftyp": "mp42",
          "size": "640x360",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "96k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "1200k",
          "framerate": "29.97",
          "profile": "baseline",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "0",
            "flags": "+loop",
            "flags2": "-wpred-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "7",
            "me_range": "16",
            "bf": "0",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "trellis": "1",
            "level": "13",
            "refs": "3",
            "wpredp": "0",
            "vprofile": "baseline"
          },
          "ftyp": "mp42",
          "size": "640x360",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "96k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "3500k",
          "framerate": "29.97",
          "profile": "main",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "1",
            "flags": "+loop",
            "flags2": "-bpyramid+fastpskip-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "6",
            "me_range": "16",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "level": "30",
            "vprofile": "main"
          },
          "ftyp": "mp42",
          "size": "960x540",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "128k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "5000k",
          "framerate": "29.97",
          "profile": "main",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "1",
            "flags": "+loop",
            "flags2": "-bpyramid+fastpskip-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "6",
            "me_range": "16",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "level": "30",
            "vprofile": "main"
          },
          "ftyp": "mp42",
          "size": "1280x720",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "128k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "6500k",
          "framerate": "29.97",
          "profile": "main",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "1",
            "flags": "+loop",
            "flags2": "-bpyramid+fastpskip-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "6",
            "me_range": "16",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "level": "30",
            "vprofile": "main"
          },
          "ftyp": "mp42",
          "size": "1280x720",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "128k",
          "audio_codec": "dolby_heaac",
          "two_pass": "yes",
          "bitrate": "8500k",
          "framerate": "29.97",
          "profile": "high",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "1",
            "flags": "+loop",
            "flags2": "+bpyramid+wpred+mixed_refs+dct8x8-fastpskip",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "umh",
            "subq": "7",
            "me_range": "16",
            "bf": "16",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "3",
            "level": "30",
            "refs": "4",
            "psy": "0"
          },
          "ftyp": "mp42",
          "size": "1920x1080",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "keep_aspect_ratio": "yes",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "audio_only": "no",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        },
        {
          "audio_bitrate": "64k",
          "still_image": "first_segment",
          "two_pass": "yes",
          "profile": "baseline",
          "video_codec": "libx264",
          "video_codec_parameters": {
            "sc_threshold": "0",
            "coder": "0",
            "flags": "+loop",
            "flags2": "-wpred-dct8x8",
            "cmp": "+chroma",
            "partitions": "+parti8x8+parti4x4+partp8x8+partb8x8",
            "me_method": "hex",
            "subq": "7",
            "me_range": "16",
            "bf": "0",
            "keyint_min": "25",
            "i_qfactor": "0.71",
            "b_strategy": "1",
            "qcomp": "0.6",
            "qmin": "10",
            "qmax": "51",
            "qdiff": "4",
            "directpred": "1",
            "trellis": "1",
            "level": "13",
            "refs": "3",
            "wpredp": "0",
            "vprofile": "baseline"
          },
          "ftyp": "mp42",
          "audio_only": "yes",
          "size": "400x300",
          "bitrate": "1024k",
          "audio_sample_rate": "44100",
          "audio_channels_number": "2",
          "framerate": "30",
          "keep_aspect_ratio": "yes",
          "audio_codec": "libfaac",
          "cbr": "no",
          "hard_cbr": "no",
          "deinterlacing": "auto",
          "video_sync": "old",
          "keyframe": "90",
          "audio_volume": "100",
          "rotate": "def",
          "metadata_copy": "no",
          "strip_chapters": "no",
          "pix_format": "yuv420p",
          "veryfast": "auto",
          "copy_timestamps": "yes",
          "encryption": "no",
          "encryption_method": "aes-128-cbc",
          "hint": "no",
          "set_rotate": "0",
          "copy_nielsen_metadata": "no",
          "duration_precision": "0",
          "video_only": "no",
          "add_iframe_stream": "no",
          "still_image_time": "5",
          "still_image_size": "480x320",
          "byte_range": "no",
          "drm": "no",
          "init_video_codec_parameters": { "sc_threshold": "0" }
        }
      ],
      "turbo": "no",
      "twin_turbo": "no",
      "segment_duration": "9",
      "duration_precision": "0",
      "pack_files": "yes",
      "pack_type": "tar",
      "pack_each_stream": "no",
      "encryption": "no",
      "segmenter": "v3",
      "copy_nielsen_metadata": "no",
      "file_extension": "tar"
    }
  }
}