Lay the score on the picture
doseedo_score_to_pictureSCORE TO PICTURE: the last step of scoring a film. Lays each mixed cue (and any sound effect) on the video at its SMPTE timecode, with dialogue ducking (the lines found on the video's own soundtrack by VAD, or the spans you pass; the music dips ahead of each line and comes back after it), normalises the program to a delivery loudness (web −16, streaming −14, broadcast/ebu −23, atsc −24 LUFS, or a number; true peak under the ceiling) and muxes it onto the picture untouched (no re-encode). Returns the scored video, the printmaster WAV and the music-and-effects stem, plus a report of what it MEASURED: where each track landed (and what was cut at the film's edges), how far the music sits under the lines, and the final loudness and true peak. CPU, no credits. tracks: [{audio_url (a doseedo_mix mix_url as returned, or any public https URL) | audio_key, start_timecode (in the film's timecode) | start_s, gain_db?, role?: music|dialogue|effects, duck?, name?}], ≤ 64. Keep the production audio (default) or drop it (production_audio:"drop"). A FILM THAT ALREADY HAS MUSIC: keeping its audio mixes the old music under yours — split it first (doseedo_split_soundtrack) and lay its dialogue and effects stems back (start_s 0, role dialogue / effects) with production_audio:"drop": the old music is gone, the lines are kept, and the duck reads the lines off the dialogue stem; lay the old music stem back too with duck:false to keep it (or a part of it). With dialogue tracks the delivery also returns the dialogue / music / effects stems. report.tracks[] names each placed track's role (none said is music; sfx is effects): a delivery that placed NO music (a film of its sound design alone) still returns score and music files, which are silence — hand over the printmaster instead. Up to 25 minutes of film per call (a reel). Async: job_id → doseedo_wait_task. Cancel: a delivery still queued never starts and one running stops within seconds; either way its credit is refunded and the job ends as canceled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tracks": "<tracks>"
},
"name": "doseedo_score_to_picture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duck | No | Dialogue ducking (on by default): depth_db (default: line by line, the music is HELD 15–18 dB under the voice that line is spoken at, by a LEVEL and a gentle dip — each passage of talk under a cue SEATS the cue lower (a fader ride, from the cue's head when the talk starts near it; music with no talk near it is never lowered) and each line dips a few dB on top (6, at most 9: report duck.depth_db; held_under_lines.seated_db, deepest_db = both, up to 24; tracks[].seated_db), lifted back where it sits deeper, never above the cue as mixed; the voice is read on the dialogue tracks, else on the film's own audio when it is kept (its bed beside each line taken off), and a kept film audio whose voices are too quiet to hold the music under is raised by up to 12 dB — as far as the print master's limiter can hold its own peaks, the dip deepening by what the lift cannot give — unless production_gain_db says; the music never dips under the film audio's ROOM beside a line (its noise, its own music left out, lifted with the voice: held_under_lines.room_db / lines_at_room); lines closer than attack + release are one stretch, and a dip moves at most 6 dB between lines a breath apart; a depth you give is used as given and switches the hold off), under_voice_db (the hold's target, 0–40, default 15: how far under the voices the music is held — the window runs from it to 3 dB more, the seat moving with it, seat and dip to 24 in all, deeper by as much as the target is past 15 (to 40); a note asking for the music further back raises it; the report says the depth used, music_under_dialogue_db (music minus the voices, measured), under_voice_db and held_under_lines), attack_ms (250: how early before a line the music is down), release_ms (700), sfx (false: duck effects too), enabled. | |
| name | No | Optional: a name for this job's files, e.g. "rainy-loop-3". Every file it returns downloads as <name>_<part>.<ext> (rainy-loop-3_Celesta.wav, rainy-loop-3_rough-mix.wav; one take: rainy-loop-3.wav), so the user can find them. Give each job its own name (a second take: "rainy-loop-3b"). Default: doseedo-<last 6 characters of the job id>. | |
| medium | No | THE FILM'S OWN RECORDING MEDIUM: a period film's music and lines were recorded on the medium of their day (mono, the highs ending by 9 kHz, no deep bass), and a modern hi-fi score sounds wrong beside them. Pass doseedo_split_soundtrack's soundtrack.medium AS IT CAME when it reads period: every music track (not medium:false) is printed in it — a high-pass and low-pass fitted on each cue so its spectrum lands on the film's own skirt points, folded to the film's width, peaks rounded to the film music's, its loudness kept — and the music is held under the lines as far as the film's own sat (placement; duck.under_voice_db wins). {period: true} alone = the shellac medium (a 1940s transfer's band, mono, surface noise) for a director who asks for the old-record sound on a film that does not read as one; {period: false} = the modern sound, nothing printed. report.medium + tracks[].medium say what was printed and where each cue's skirts landed against the film's. | |
| tracks | Yes | What to lay on the film, in any order. | |
| dialogue | No | Dialogue spans [{start_s, end_s}] to duck under, instead of detecting them (use the cue sheet's dialogue, or your own). | |
| loudness | No | Delivery loudness: "web" (−16 LUFS, default), "streaming" (−14), "broadcast" / "ebu" (−23), "atsc" (−24), or a LUFS number (−36…−8). | |
| video_key | No | R2 ingest key of the video (the same upload doseedo_spot_video used). | |
| video_url | No | https URL of the video, as an alternative to video_key. | |
| start_timecode | No | SMPTE timecode of the film's first frame (default: the file's own, else 00:00:00:00) — the clock the tracks' start_timecode is read on. | |
| idempotency_key | No | Optional. Any unique string for THIS request (e.g. a UUID). Re-sending the same call with the same key after a timeout returns the same job instead of starting a second one. | |
| loudness_gain_db | No | The print-master gain of an earlier delivery of this film (its report.loudness.gain_db): kept, so the cues this version did not touch play at the level they had, while the program lands within ±1 LU of its target; else this program's own gain (report.loudness.gain_lock says which). | |
| production_audio | No | keep (default) mixes the video's own soundtrack — all of it, its music included — under the score; drop replaces it (lay a doseedo_split_soundtrack's dialogue + effects stems to keep the lines). | |
| production_gain_db | No | Trim on the production audio when kept (default: 0, lifted by up to 12 where its voices are too quiet to hold the music under; a value you give is used as given). |