Skip to content

API: Audio and video tools

List the containers and codecs this server can produce

H.264 and H.265 come from x264 and x265, which are GPL-only, so an ffmpeg built without GPL support has neither. gpl_build says which build this is, and codecs lists what can actually be encoded.

GET/api/v1/tools/video-convert/capabilities

Authentication#

No key is needed. This route is public.

Responses#

200 OK#

Content type application/json. Schema: VideoCapabilities.

NameTypeRequiredDescription
codecsarray of string-The video codecs this server can encode. An ffmpeg built without GPL support has no H.264 or H.265
containersarray of VideoContainer-Every output container, with the codecs it carries
dithersarray of string-The dithering modes video-to-gif accepts
gpl_buildboolean-Whether the video engine is built with GPL support, which H.264 and H.265 require
max_gif_secondsnumber (double)-The longest range video-to-gif will convert, in seconds
max_secondsnumber (double)-The longest video this server converts, in seconds

Any other status#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

curl -X GET "http://localhost:3000/api/v1/tools/video-convert/capabilities"

Response examples

{
  "codecs": [
    "h264",
    "h265",
    "vp9",
    "av1"
  ],
  "containers": [
    {
      "audio_codecs": [
        "aac",
        "mp3",
        "copy",
        "mute"
      ],
      "extension": ".mp4",
      "label": "MP4",
      "name": "mp4",
      "video_codecs": [
        "h264",
        "h265",
        "av1"
      ]
    },
    {
      "audio_codecs": [
        "opus",
        "vorbis",
        "copy",
        "mute"
      ],
      "extension": ".webm",
      "label": "WebM",
      "name": "webm",
      "video_codecs": [
        "vp9",
        "av1"
      ]
    }
  ],
  "dithers": [
    "none",
    "bayer",
    "heckbert",
    "floyd_steinberg",
    "sierra2",
    "sierra2_4a",
    "sierra3",
    "burkes",
    "atkinson"
  ],
  "gpl_build": true,
  "max_gif_seconds": 15,
  "max_seconds": 7200
}

The examples are built from the schemas, so every value is a placeholder of its type. The tables above hold the fields that carry the real values.