Zencoder: Creating Multiple Outputs

Product(s)
Zencoder
Role(s)
API Developer
API(s)
Zencoder API

This topic explains how you create multiple outputs for an encoding job.

Create multiple outputs

You can specify multiple outputs by passing more than one hash in the outputs array, like this:

{
  "input": "https://user:pass@bucket-name/file-name.avi",
  "outputs": [
  {
      "label": "web",
      "url": "s3://output-bucket/web.mp4",
      "size": "512x384"
  },
  {
      "label": "iphone",
      "url": "s3://output-bucket/iphone.m4v",
      "size": "480x320"
  }
  ]
}