Zum Inhalt
HALOWERK

Medienwerk

video audio replace

Takes a video and an audio file (for example a dubbed track from /v1/dub, a voice-over or music) and returns the video with the new sound: mode replace drops the original audio, mode mix keeps it at original_volume underneath. The new audio is trimmed to the video length or padded with silence, optionally delayed by offset_seconds. The picture is copied, not re-encoded. Output MP4 with AAC inline as base64, max 24 MB. Runs locally with ffmpeg. Fixed price per call.

POST https://medien.halowerk.com/v1/video-audio-replace

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
videoobjectJa
audioobjectJa
modestringNein
original_volumenumberNein
offset_secondsnumberNein
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "video",
    "audio"
  ],
  "additionalProperties": false,
  "properties": {
    "video": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048
        },
        "content_base64": {
          "type": "string",
          "maxLength": 5500000
        },
        "filename": {
          "type": "string",
          "maxLength": 260
        }
      }
    },
    "audio": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048
        },
        "content_base64": {
          "type": "string",
          "maxLength": 5500000
        },
        "filename": {
          "type": "string",
          "maxLength": 260
        }
      }
    },
    "mode": {
      "type": "string",
      "enum": [
        "replace",
        "mix"
      ],
      "default": "replace"
    },
    "original_volume": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "default": 0.2
    },
    "offset_seconds": {
      "type": "number",
      "minimum": 0,
      "maximum": 600,
      "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 →