Zum Inhalt
HALOWERK

Medienwerk

video trim

Takes a video (up to 24 MB) and returns the part between start_seconds and end_seconds, at most 180 seconds, as MP4 with H.264 and AAC. The clip is re-encoded, so it starts exactly at the requested time rather than at the previous keyframe. Optional maximum width and short video and audio fades at both ends. If the end lies beyond the video, the clip ends with the video and this is reported. Output inline as base64, max 24 MB. Runs locally with ffmpeg. Fixed price per call.

POST https://medien.halowerk.com/v1/video-trim

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
sourceobjectJa
start_secondsnumberJa
end_secondsnumberJa
max_widthintegerNein
fade_secondsnumberNein
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "source",
    "start_seconds",
    "end_seconds"
  ],
  "additionalProperties": false,
  "properties": {
    "source": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048
        },
        "content_base64": {
          "type": "string",
          "maxLength": 12000000
        },
        "filename": {
          "type": "string",
          "maxLength": 260
        }
      }
    },
    "start_seconds": {
      "type": "number",
      "minimum": 0,
      "maximum": 36000
    },
    "end_seconds": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 36000
    },
    "max_width": {
      "type": "integer",
      "minimum": 160,
      "maximum": 1920,
      "default": 1280
    },
    "fade_seconds": {
      "type": "number",
      "minimum": 0,
      "maximum": 3,
      "default": 0
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →