Repackaging from Intermediate

For adaptive intermediate repackaging workflows, the below example shows the options available for stream selection, alternates, and supported parameters to create multiple packaged variants from intermediate outputs generated in a separate, earlier job request.

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[AddMedia|AddMediaBenchmark]</action> <!-- required-->
    <source>[SourceFile]</source> <!-- required-->
    <!-- Multiple sorces may be included -->
    <source>[SourceFile]</source>
    <format>
        <output>[advanced_hls|fmp4_hls|advanced_dash|advanced_mss|advanced_fmp4]</output>
        <!-- Destination fields -->
        <destination>[DestFile]</destination> <!-- required -->
        <!-- Multiple intermediate source map params may be included -->
        <intermediate_source_map>
            <source_id>[ID]</source_id> <!-- required -->
            <stream_id>[ID]</stream_id>
            <alternate_id>[ID]</alternate_id>
            <program_segment_id>[ID]</program_segment_id>
            <image_media_playlist_id>[ID]</image_media_playlist_id>
        </intermediate_source_map>
        <intermediate_source_map>
            <!-- intermediate source map params -->
        </intermediate_source_map>
        <!-- Format fields -->
        <!-- Multiple stream params may be included in output format -->
        <!-- Maximum number of available streams is 15 -->
        <stream>
            <!-- stream transcoding params -->
        </stream>
        <stream>
            <!-- stream params -->
        </stream>
        <!-- Alternate source fields -->
        <!-- multiple alternate_sources may be included -->
        <alternate_source>
            <source>[FileURL]</source>
        </alternate_source>
        <alternate_source>
            <!-- alternate_source params -->
        </alternate_source>
        <image_media_playlist>
            <sub_path>[SubPath]</sub_path>
            <base_name>[BaseName]</base_name>
            <no_ext_x_tiles>[yes|no]</no_ext_x_tiles>
            <!-- image_media_playlist params -->
        </image_media_playlist>
        <image_media_playlist>
            <!-- image_media_playlist params -->
        </image_media_playlist>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]", // required
        "userkey": "[UserKey]", // required
        "action": "[AddMedia|AddMediaBenchmark]", // required
        "source": [ // required
            "[SourceFile]",
            "[SourceFile]"
        ],
        "format": {
            "output": "[advanced_hls|fmp4_hls|advanced_dash|advanced_mss|advanced_fmp4]", // required
            "destination": "[DestFile]", // required
            "intermediate_source_map": [
                {
                    "source_id": "[ID]", // required
                    "stream_id": "[ID]",
                    "alternate_id": "[ID]",
                    "program_segment_id": "[ID]",
                    "image_media_playlist_id": "[ID]"
                }
            ],
            "stream": [
                {
                    // stream params
                }
            ],
            "alternate_source": [
                {
                    "source": "[FileURL]"
                }
            ],
            "image_media_playlist": [
                {
                    "sub_path": "[SubPath]",
                    "base_name": "[BaseName]",
                    "no_ext_x_tiles ": "[yes|no]",
                },
                {
                    // image_media_playlist params
                }
            ]
        }
    }
}
ParameterDescriptionAllowed ValuesDefault Value
source_idSpecify the media source index number.non-negative integernone
stream_idSpecify adaptive bitrate stream index number, to which we will apply intermediate source specified in source_id.non-negative integernone
alternate_idSpecify the alternate stream index number, to which we will apply intermediate source specified in source_id.non-negative integernone
program_segment_idSpecify the program segment stream index number, to which
we will apply intermediate source specified in source_id.
non-negative integernone
image_media_playlist_idSpecify the image playlist tarball index number, to which
we will apply intermediate source specified in source_id.
non-negative integernone

🚧

For image_media_playlist parameters

<interval />, <layout />, and <size /> options has no effect on the repackaging stage.