Home » API Reference » Encoding Settings » Thumbnails » Times

times

:Array permalink

API Versions: V1, V2

Parent: outputs / thumbnails

Compatible Job Types: All

Example: [0, 30, 60, 90]

Description:

An array of times, in seconds, at which to grab a thumbnail. Decimals are valid. So setting times to [12.5, 25] would grab two thumbnails, one at 12.5 seconds, and one at 25 seconds. This value must be an array of non-negative numbers.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "thumbnails": {
        "times": [0, 30, 60, 90]
      }
    }
  ]
}
      
<api_request>
  <input>s3://zencodertesting/test.mov</input>
  <outputs type="array">
    <output>
      <thumbnails>
        <times type="array">
          <time>0</time>
          <time>30</time>
          <time>60</time>
          <time>90</time>
        </times>
      </thumbnails>
    </output>
  </outputs>
</api_request>