This page was machine-translated. Spotted a mistake?Help improve it.
Skip to content

Replace Audio

비디오의 오디오 트랙을 오디오 파일로 교체합니다. 비디오와 오디오 파일을 모두 업로드하세요.

API Endpoint

POST /api/v1/tools/video/replace-audio

정확히 두 개의 파일이 담긴 multipart form data를 받습니다. 비디오 파일에 이어 오디오 파일입니다.

Parameters

이 도구에는 설정 매개변수가 없습니다. 비디오 파일과 오디오 파일을 두 개의 file 파트로 업로드하세요.

Example Request

bash
curl -X POST http://localhost:1349/api/v1/tools/video/replace-audio \
  -H "Authorization: Bearer si_your-api-key" \
  -F "[email protected]" \
  -F "[email protected]"

Example Response

json
{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/clip.mp4",
  "originalSize": 12500000,
  "processedSize": 13100000
}

Notes

  • 정확히 두 개의 파일을 업로드해야 합니다. 첫 번째는 비디오여야 하고 두 번째는 오디오 파일이어야 합니다.
  • 오디오 파일이 비디오보다 길면 비디오 길이에 맞게 잘립니다. 짧으면 나머지 비디오는 무음으로 재생됩니다.
  • 비디오 스트림은 재인코딩 없이 복사되므로 비디오 품질 손실이 없습니다.