Adaptive Intermediate outputs create optimized transcodes ready to be packaged into a variety of adaptive segmented packages. When using this output, separate files will be created for each specified stream and alternate source. Files are transcoded into MPEG transport stream containers. All features that need transcoding (overlays, burn-in closed captions, etc.) should be specified on the intermediate creation step.
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid> <!-- required-->
<userkey>[UserKey]</userkey> <!-- required-->
<action>[AddMedia|AddMediaBenchmark]</action> <!-- required-->
<source>[SourceFile]</source> <!-- required-->
<multijob_workflow>[yes|no]</multijob_workflow>
<format>
<output>adaptive_intermediate</output>
<!-- Destination fields -->
<destination>[DestFile]</destination> <!-- required -->
<!-- Format fields -->
<!-- Multiple stream params may be included in output format -->
<!-- Maximum number of available streams is 15 -->
<stream>
<!-- stream params -->
</stream>
<!-- Alternate source fields -->
<!-- multiple alternate_sources may be included -->
<alternate_source>
<!-- alternate_source params -->
</alternate_source>
<image_media_playlist>
<interval>[Interval]</interval>
<layout>[Layout]</layout>
<size>[Size]</size>
</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": "[SourceFile]", // required
"multijob_workflow": "[yes|no]",
"format": {
"output": "adaptive_intermediate", // required
"destination": "[DestFile]", // required
"stream": [
{
// stream params
}
],
"alternate_source": [
{
// alternate_source params
}
],
"image_media_playlist": [
{
"interval": "[Interval]",
"layout": "[Layout]",
"size": "[Size]"
},
{
// image_media_playlist params
}
]
}
}
}
When transcoding is complete we will deliver output files to a destination folder with the following naming convention, with each parameter defined below:
%destname%-%streamid%[-%alternateid%][-%program_segment_id%][.%extension%]
destname - file name specified in param
streamid - stream id(from 0)
alternateid - alternate id(from 0). Exists only if <alternate_sources /> specified.
program_segment_id - program segment id. Exists only if <multijob_workflow /> set to yes.
extension - file extension specified in param