Duration Settings

Encoding.com permits frame-accurate editing of output material. These jobs can be chained to perform full assembly workflows.

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>addMedia</action> <!-- required-->
    <source>[SourceFile]</source> <!-- required-->
    <format> <!-- required -->
        <output>[output]</output> <!-- required -->
        <start>[StartTimecode]</start>
        <finish>[FinishTimecode]</finish>
        <duration>[Duration]</duration>
        <set_video_duration>[yes|no]</set_video_duration>
        <apply_timecode>[yes|no]</apply_timecode>
    </format>
</query>
{
    "query": {
        "userid": "[UserID]", // required
        "userkey": "[UserKey]", // required
        "action": "addMedia", // required
        "source": "[SourceFile]", // required
        "format": {
            "output": "[output]", // required
            "start": "[StartTimecode]",
            "finish": "[FinishTimecode]",
            "duration": "[Duration]",
            "set_video_duration": "[yes|no]",
            "apply_timecode": "[yes|no]"
        }
    }
}
ParameterDescriptionAllowed ValueDefault
startTime of source media that will be used as starting time of output media. positive float number in seconds
timecode in format HH:MM:SS[:;]FF
HH – hours
MM – minutes
SS – seconds
FF – frames
[:;] – : – non drop-frame, ; – drop-frame;
none
finishTime of source media that will be used as finishing time of output media. positive float number in seconds
timecode in format HH:MM:SS[:;]FF
HH – hours
MM – minutes
SS – seconds
FF – frames
[:;] – : – non drop-frame, ; – drop-frame;
none
durationDuration of resulting output media.* positive float number in secondsnone
set_video_durationForce set audio to video duration in output. This allows to precisely align durations of video and audio streams. If audio is longer, trim the output audio stream to the output video duration. If audio is shorter, by padding audio with silence to the output video duration. This parameter works only with MP4 container and aac, libfaac audio codecs.yes, nono
apply_timecodeUse source media muxed timecode to calculate start and finish points.yes, nono

🚧

Note

If the parameter is specified, the parameter will be ignored.

🚧

Note regarding use of apply_timecode when using ad signal insertion (SCTE35)

Specifying<apply_timecode /> will apply timecode value conversion of the and parameters of <ad_break />/<cue_insert />.