Bunpeg
Operations

Chain operations

Chain multiple operations on a file.

POST /chain
Content-Type: application/json

{
  "fileId": "string",
  "operations": [
    {
      "type": "transcode" | "resize-video" | "trim" | "trim-end" | "extract-audio" | "remove-audio" | "extract-thumbnail",
      // Operation-specific parameters
    }
  ]
}

Technical Details:

  • Operations are executed sequentially
  • Each operation maintains its own quality settings
  • Intermediate files are automatically cleaned up
  • Progress can be monitored via status endpoint
  • It doesn't include the add-audio or merge-media operations as these use a different payload

On this page