Video Audio Merger & BGM Sync
High-speed native audio-video merger and background music synchronization engine. Merges voiceovers, soundtracks, and ambient audio with videos via ultra-efficient stream copying without quality loss.
Parameters
Configure parameters and run inference.
Ready for Execution
Configure parameters on the left and click Run Microservice to generate output.
Processing Microservice...
Spawning browser worker & capturing full render...
{}
Execution Failed
Failed to connect to worker.
Invoke this microservice programmatically from your backend application. Authenticate by passing your Lumoz API key in the Authorization: Bearer YOUR_API_KEY header.
curl -X POST https://lumozai.com/api/v1/services/run \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"service_id": "video-audio-merger",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}'
import requests
url = "https://lumozai.com/api/v1/services/run"
headers = {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
}
payload = {
"service_id": "video-audio-merger",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print("Output:", data.get("output"))
print("Execution time:", data.get("execution_time"))
const response = await fetch("https://lumozai.com/api/v1/services/run", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
service_id: "video-audio-merger",
url: "https://lumozai.com",
w: 1920,
h: 1080
})
});
const data = await response.json();
console.log("Output URL:", data.output);
Parameters Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
video |
string | Yes | - |
Source video URL, uploaded file, or base64 data URI (MP4, WEBM, MOV, MKV) |
audio |
string | Yes | - |
Source audio URL, uploaded file, or base64 data URI (MP3, WAV, AAC, M4A, OGG) |
mode |
string | No | "replace" |
Audio integration mode: "replace" swaps the video soundtrack completely; "mix" blends audio with original video audio |
audio_volume |
number | No | 1 |
Volume multiplier for input audio track (0.0 to 3.0) |
video_volume |
number | No | 1 |
Volume multiplier for original video audio track when in "mix" mode (0.0 to 2.0) |
loop |
boolean | No | false |
Automatically loop audio if shorter than the video duration |
trim_to_video |
boolean | No | true |
Automatically cut audio playback when the video stream finishes |
fade_in |
number | No | 0 |
Audio fade-in transition duration in seconds |
fade_out |
number | No | 0 |
Audio fade-out transition duration in seconds |
audio_delay_ms |
integer | No | 0 |
Offset audio track start time in milliseconds |