5 March 2024

Force set video duration to output

Added parameter to force set video duration to output

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <source>[FileURL]</source>
    <format>
        <output>[OutputFormat]</output>
        <set_video_duration>[yes|no]</set_video_duration>
        <!-- format params -->
    </format>
</query>
{
  "query": {
    "userid": "[UserID]",  // required
    "userkey": "[UserKey]",  // required
    "action": "[Action]",  // required
    "source": "[FileURL]",  // required
    "format": {
      "output": "[OutputFormat]", // required
      "set_video_duration": "[yes|no]"
      // format params
    }
  }
}
Field NameDescriptionAllowed ValuesDefault Values
set_video_durationForce set audio to video duration in output. For MP4-like containers, this allows to precisely align durations of video and audio streams by trimming the output audio stream to the output video duration.yes, nono