Encoding.com's platform allows for multiple overlays of video, audio, and textual data across a source. For more specific information on each of the three types of overlays, please see the subsequent sections on each.
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid> <!-- required-->
<userkey>[UserKey]</userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<source>[SourceFile]</source> <!-- required-->
<format>
<output>[OutputFormat]</output> <!-- required-->
<!-- Format params -->
<overlay>
<overlay_start>[Overlay1StartInSeconds]</overlay_start>
<overlay_duration>[Overlay1DurationInSeconds]</overlay_duration>
<overlay_fade_in>[Overlay1FadeInInSeconds]</overlay_fade_in>
<overlay_fade_out>[Overlay1FadeOutInSeconds]</overlay_fade_out>
<!-- Video overlay params -->
</overlay>
<!-- ... -->
<overlay>
<!-- Video overlay params -->
</overlay>
<audio_overlay>
<overlay_start>[Overlay1StartInSeconds]</overlay_start>
<overlay_duration>[Overlay1DurationInSeconds]</overlay_duration>
<overlay_fade_in>[Overlay1FadeInInSeconds]</overlay_fade_in>
<overlay_fade_out>[Overlay1FadeOutInSeconds]</overlay_fade_out>
<!-- Audio overlay params -->
</audio_overlay>
<!-- ... -->
<audio_overlay>
<!-- Audio overlay params -->
</audio_overlay>
<text_overlay>
<overlay_start>[Overlay1StartInSeconds]</overlay_start>
<overlay_duration>[Overlay1DurationInSeconds]</overlay_duration>
<overlay_fade_in>[Overlay1FadeInInSeconds]</overlay_fade_in>
<overlay_fade_out>[Overlay1FadeOutInSeconds]</overlay_fade_out>
<!-- Text overlay params -->
</text_overlay>
<!-- ... -->
<text_overlay>
<!-- Text overlay params -->
</text_overlay>
</format>
</query>
{
"query": {
"userid": "sdf", // required
"userkey": "sdf", // required
"action": "[Action]", // required
"source": "[SourceFile]", // required
"format": {
"output": "[OutputFormat]",
"overlay": [
{
"overlay_start": "[Overlay1StartInSeconds]",
"overlay_duration": "[Overlay1DurationInSeconds]",
"overlay_fade_in": "[Overlay1FadeInInSeconds]",
"overlay_fade_out": "[Overlay1FadeOutInSeconds]"
// Video overlay params
},
{
// Video overlay params
}
],
"audio_overlay": [
{
"overlay_start": "[Overlay1StartInSeconds]",
"overlay_duration": "[Overlay1DurationInSeconds]",
"overlay_fade_in": "[Overlay1FadeInInSeconds]",
"overlay_fade_out": "[Overlay1FadeOutInSeconds]"
// Audio overlay params
},
{
// Audio overlay params
}
],
"text_overlay": [
{
"overlay_start": "[Overlay1StartInSeconds]",
"overlay_duration": "[Overlay1DurationInSeconds]",
"overlay_fade_in": "[Overlay1FadeInInSeconds]",
"overlay_fade_out": "[Overlay1FadeOutInSeconds]"
// Text overlay params
},
{
// Text overlay params
}
]
}
}
}
Parameter | Description | Allowed Values | Default Value |
---|---|---|---|
overlay_start | Specify the overlay's start time in seconds. | Positive float number | 0 |
overlay_duration | Specify the overlay's duration in seconds. | Positive float number | none |
overlay_fade_in | Overlay fade-in duration in seconds. | Positive float number | 0 |
overlay_fade_out | Overlay fade-out duration in seconds. | Positive float number | 0 |
For video overlay fade in and out
If <keep_audio /> in <overlay /> set to yes <overlay_fade_in /> and <overlay_fade_out /> will be applied to audio as well.