V3 > Encoding

List encoding constraints.

List major encoding constraints that should be respected in order to guarantee correct output encoding in most cases.

Still, following these rules may lead to incorrect encodings. For example, trying to encode something into a flv container will fail if the audio sampling rate is not 44100, 22050 or 11025 Hz.

get/2/vod/encodings/constraints

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "video_codecs": [
      {
        "name": "H.264 (MPEG-4 AVC)",
        "value": "h264",
        "description": "Wow, such a nice Video Encoding Codec !",
        "bitrate_min": 42000000,
        "bitrate_max": 50000,
        "resolution_min": {
          "width": 673,
          "height": 785
        },
        "resolution_max": {
          "width": 673,
          "height": 785
        },
        "fps_min": 5,
        "fps_max": 120
      }
    ],
    "audio_codecs": [
      {
        "name": "AAC (Advanced Audio Coding)",
        "value": "aac",
        "description": "Advanced Audio Coding",
        "bitrate_min": 42000000,
        "bitrate_max": 50000
      }
    ],
    "containers": [
      {
        "name": "Matroska (.mkv)",
        "value": "mkv"
      }
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.