Tutorial
Integrating a Gallery Guide into Existing Footage: A Practical Guide to LTX 2.5 Compositing
On this page
Why this step is compositing, not generation
Many teams use LTX 2.5 Compositing for the first time as if it were just another image-to-video model: they drop in a picture of a guide and expect a person standing in front of the display booth, talking, to appear in the frame automatically. That approach does not work, because the task definition of this model is completely different.
Its input is a direct video link, video_url, to footage that has already been roughly composited. In other words, where the guide stands, when they enter the frame, and how they relate in front of or behind the existing booth in the shot are all decided in the source video before it is sent to the model. What the model does is blending: fixing edges, unifying lighting, adjusting color, and adding contact shadows so that the person who originally looked "pasted on" truly settles back into the frame. It does not generate new video out of thin air from text or a single image, and it is not responsible for arranging your composition.
It is clearer to distinguish it from LTX 2.5 Pro image-to-video: the latter generates motion from an image, deriving dynamics from a still picture; this pipeline handles ready-made video and performs compositing and blending. Once you understand this, all the preparation that follows becomes meaningful — what you can fix is "whether the blend looks natural"; what you cannot fix is "whether the person should be there at all."
video_url and the specification constraint checklist
The API has only one required parameter: video_url, a publicly readable HTTPS direct video link. There is also an optional boolean parameter enable_safety_checker, which is on by default. Beyond that, there is no prompt, no character parameter, and no resolution control that would let you influence the visual content at call time.
What really deserves careful attention is the specification constraints. The material can be at most 20 seconds long and at most 100 MB, with a constant frame rate of 20–60 fps, a long side of 448–3840 pixels and a short side of 256–2176 pixels, plus a frame-count cap that depends on resolution. It is recommended to provide a readable MP4 directly: simple container, short decode path, and one fewer class of failure causes.
Before uploading, check in this order:
- Is the duration within 20 seconds? If it exceeds that, cut it into segments rather than compressing the duration;
- Is the file within 100 MB?
- Is the frame rate constant and within 20–60 fps? Convert variable-frame-rate material to constant frame rate first;
- Do both the long side and the short side fall within their ranges?
- At that resolution, does the frame count hit the cap? If necessary, lower the resolution or reduce the duration;
- Is the direct link truly anonymously readable, rather than requiring login, carrying a signed expiry, or redirecting to a login page?
Order matters: first check hard gates such as duration and size, then handle frame rate and resolution, and finally verify link readability. Checking the conditions most likely to cause rejection first saves a lot of repeated uploads.
Pre-placement: fix position and timing in the source video first
Which side of the booth the guide stands on, how far from the camera, what proportion of the frame they occupy, and at which second they enter the shot — these all belong to the rough compositing stage. The model's role is to blend into existing footage; it has no mechanism for understanding "this person should stand at the presentation position."
In practice, it is best to lock three things down during rough compositing. Shot scale: the ratio between the guide and the exhibits should match the real space of the gallery; whether the person is the subject or a guide should already be readable in the source video. Stance: standing at about a 45-degree angle to the front-side of the booth usually produces more natural occlusion relationships, whereas standing right at the edge facing the camera easily exposes compositing seams. Entry timing: determine the guide's appearance moment and dwell duration during editing, so that they form a rhythm with camera movement and exhibit transitions, rather than standing in the frame from beginning to end.
A practical test: if you cover up the guide and the source video still looks like a reasonable empty shot, the placement has not broken the visual logic; if the frame becomes unbalanced the moment the guide disappears, then composition responsibility has probably been pushed onto the compositing step.
How to leave occlusion and contact shadows
Whether the blend is believable depends largely on whether the source video provides the correct basis for occlusion. Whether the guide's hand rests on the edge of the booth, whether part of the body is hidden by the booth, whether the feet or lower body are occluded by foreground objects — these front-back relationships must be created during rough compositing.
A common failure is to overlay the entire guide on top of the frame, with the person floating in front of the booth like an independent layer. In that case the model sees "a person who is not occluded at all," and the most it can do is compress the edges; it cannot create the effect of being cut into by the booth. The correct approach is to cut out occlusion according to real spatial relationships: the front edge of the booth should cover the guide's calves or the lower edge of the body, and near the exhibits the exhibit should be in front and the person behind.
The same applies to contact shadows. Wherever a person and the booth touch — a hand on the countertop, the body near the booth edge, feet on the floor — reserve the dark areas needed for shadows, even if the shadows are rough at first. The model will unify lighting and correct the shape of contact shadows on that basis, but if this layer is completely absent from the source video, it has nothing to build on. It is better to lay the shadows on a bit heavier and larger during early work and let the compositing stage pull them back, than to leave none at all.
Consistency of light direction and color
Gallery lighting usually has a clear direction: ceiling spotlights, strip lights inside display cases, wall-washing lights from the side. If the guide footage was shot under a different lighting setup, the key light direction and color temperature will not match, and such deviations are the easiest for viewers to spot at a glance.
What you need to do early is not wait for compositing to rescue it, but get the direction right during rough compositing. Determine which side of the frame the key light comes from, and make the highlights on the guide fall on the same side; if the gallery is washed with warm light while the person footage is cool, shift the overall tone warmer during rough compositing to narrow the color-temperature gap to an acceptable range. The model can unify the trend of color and lighting, but it will not decide for you which side the light should come from.
There is another layer: reflections and color spill. When the guide is near a light-colored booth, the lower edge of the body picks up brightness reflected from the booth; near dark exhibits, it becomes darker. During rough compositing, adding a slight amount of ambient color to edges near objects will make the blend sit better. Conversely, if the guide's outline is a hard, clean cut with no environmental transition at all, the model may still leave a noticeable boundary after blending.
Motion consistency: the rhythm of camera and person must align
This pipeline preserves the timing of the source shot, including camera push-in, pull-out, pan and tilt, the rhythm of exhibit transitions, and the beat of the guide's movements. This means motion consistency is not a parameter that can be changed during compositing; it is something that must be aligned during rough compositing.
Specifically, the beat of the guide's gestures should fall within intervals where the camera is relatively stable. If the guide is making a large gesture while the source shot also has a fast lateral movement, the combined frame will be chaotic and harder to handle during compositing. Likewise, the moment the guide turns or walks into the frame should preferably avoid cut points, so that changes in the person and the camera are staggered.
Another easily overlooked point is the smoothness of the guide's own motion. If, during rough compositing, the person's displacement is dragged frame by frame by hand with slight jitter, then preserving the timing means the jitter is preserved completely. Using keyframes with easing curves for displacement early on is much more stable than hand-dragging on the timeline.
The test is simple: watch the rough composite twice in a row with the sound off. If your attention keeps being interrupted by "the person moves unnaturally" or "the person is out of sync with the camera," fix the rough composite first; do not rush it into compositing.
Audio-video review and validating with a short segment before going long
Before sending in the full shot, cut a short 5–10 second segment for validation. Choose a segment that contains the hardest blending points: occlusion, contact, and camera movement. If edges, shadows and light direction hold up in the short segment, then process the full material; if the short segment gives it away, running the full thing will only magnify the problem.
Do not skip the audio-video review step. If audio is present, it is preserved along with the source input; the model does not generate voiceover, so the guide's voice must already be aligned during rough compositing. Watch and listen to the short segment all the way through: do the lip movements match, is the ambient sound continuous, is the camera moving while the guide is speaking? The compositing step will not fix audio-video desync, nor will it fill in missing voice.
Billing is calculated by the short side of the input video and its duration. 720p costs 1 unit per second, 1080p costs 2 units per second, 1440p costs 4 units per second, and 4K costs 8 units per second. Cutting a short segment with the same short side as the final material lets you verify the visual result and estimate the usage for the full shot from its duration. Once the short segment is confirmed correct, export the full shot at the same specifications. For the API entry point and parameter descriptions, see LTX 2.5 Compositing.
Make placement, occlusion, light direction and motion solid during rough compositing, and the blending step will have something to rely on; validate first and then go long, so that every full-length material run is built on an already confirmed result.
Related articles
View all articles →-
Tutorial
Complete a set of short video storyboards with three input types: a practical guide to the MiniMax H3 Lite video endpoint
-
Tutorial
MiniMax H3 Lite Image-to-Video: Chaining Continuous Product Shots with a First Frame and First/Last Frames
From a desk lamp switching off to lighting up: an integration and acceptance guide covering only image-to-video
-
Tutorial
MiniMax H3 Lite Multimodal Reference-to-Video: Reference Images Control Appearance, Reference Videos Control Motion
Using a street-corner tram as an example, break down the division of responsibilities and editing checklist for multi-asset reference requests