Back to blog

Plan an AI Video Transition with First and Last Frames

AI Media Generator

Plan a first and last frame video with aligned endpoints, a motion prompt and frame checks. See the site input setup and a three-second motion study.

Plan an AI Video Transition with First and Last Frames

A first and last frame video gives you two places for a shot to land. In our example, a clay ball starts on the left mark of a table and comes to rest on the right mark. The window gives you a fixed point to judge the camera. The marks give you a way to tell whether the ball got there by rolling, sliding or jumping.

To plan an AI video transition between two images, read the two stills as moments in one shot. Decide what the viewer should see happen between them. This guide uses two original endpoint images, the actual video generator setup and a short animation drawn from the same scene and encoded in FFmpeg. The animation gives you a known sequence for practicing the review.

Check the first and last frame input before writing the prompt

Open the AI Video Generator and select a model that supports both endpoints. The shared Add media menu offers local files and previous content. I checked Veo 3.1 Fast Official in the live composer with the opening file added first and the ending file added second. The attachment area showed both filenames in order under Reference. The settings beside the model showed a 16:9, eight-second, 720p example. Those were the selected settings during the check.

In the site's Veo Official integration, the first image in the endpoint list is sent as the opening frame and the second as the ending frame. We called the files start.webp and end.webp so the order was easy to verify before starting. If you remove a file to make a crop adjustment, check the sequence again when you attach the replacement. A prompt that says “start on the left” can conflict with a reversed attachment order. Google's documentation for Veo gives another example of supplying an opening and ending image as distinct inputs. Veo first and last frame documentation

Recheck the controls if you change models. An image reference can be a guide to a subject or look, while an endpoint has a time position. The site's Seedance 2.0 integration requires a choice between the endpoint pair and the separate reference media workflow. For this example, load the two endpoint images by themselves. Check which durations and resolutions your selected model allows together, then read the displayed credit estimate before submitting. For a shot that can begin from a single picture and finish anywhere, the guide to video input modes helps you make that choice.

Make the endpoint pair easy for one shot to explain

Start by putting the two files beside one another at the same scale. Ours are both 960 × 540. The window's vertical and horizontal bars line up, the table edge is level, and the two dark marks are visible in both views. The ball has a 104-pixel diameter in the source drawing. Its center shifts 420 pixels to the right, with its center at the same height. Those dimensions give you a simple expectation for the path through the shot.

Opening image with one clay ball on the left tabletop mark and the window behind it

Ending image with the ball on the right tabletop mark and the same window and camera position

Look at the right mark in the opening picture. It is already on the table, so the viewer sees where the ball is going as soon as it moves. The mark on the left comes into view when the ball leaves it. If the other endpoint had a tighter crop or a later time of day, moving the ball would explain only part of the change. Align the crop and lighting first when the shot needs to feel continuous. A change in view can work if you can explain how the camera will reveal it.

Landmark What the two images establish Check before attaching
Window Four panes in the upper left Match the outer frame and the crossbars
Back of the table A straight horizontal boundary Compare its height in both images
Ball Same diameter and height, different horizontal position Check the outline and the point of contact
Destination Right mark already visible at the beginning Verify the ball can reach it in the time available
Shadow Small dark oval close to the base Give it a path that follows the moving ball

If you are preparing a pair from two independent images, lay one over the other in an editor and lower the opacity of the top layer. Start by aligning a hard background edge. Then see how far the subject moves relative to it. A slight mismatch in window position could read as unintended camera drift. A much larger ball in the final image suggests either a move toward the camera or a change of scale. Decide what you want the shot to show before you ask the model to connect the files.

Check the delivery crop against both positions. A centered 9:16 crop at the original 540-pixel height would preserve only about 304 pixels across the middle of this 960-pixel frame. The ball is centered at x = 270 at the start and x = 690 at the end. Both centers fall outside that crop, even though the ball passes through it in the middle. A portrait frame sampled from the midpoint alone would look fine. For a portrait version of this shot, bring both marks closer to the center in the artwork, or plan the camera to follow the ball and supply endpoints that show the changing view.

Give the movement a direction, a pace and a point of contact

The images tell you where the ball starts and stops. The prompt needs to say what it does to get there. “Transition from A to B” leaves open a fade, a camera move or a change of objects. Describe a single visible action with a route, then add a sentence about the camera. If the viewer can follow a straight horizontal move in this small scene, you already have the basis for a legible clip.

Use the left-mark image as the opening frame and the right-mark image as the ending frame. In one fixed-camera shot, move the single clay ball smoothly along the tabletop from left to right. Start gently, cross the space between the marks and slow as the ball reaches the right mark. Keep the ball in contact with the table and retain its apparent diameter. Keep the window, table edge and lighting steady. Hold briefly on the ball at the right mark.

If you need viewers to see rolling, a subtle surface mark can help them track rotation. Our ball has a shaded gradient and the example animates its position along the table. Treat the clip as a reference for timing and contact. When the action also needs a camera move, decide which part of the image can tell you how far the camera moved. In this setup, watch the window and table edge together. The AI video camera movement guide gives examples of describing the camera separately.

It helps to design the arrival as well as the journey. If the last picture is a product close-up that must be readable under a caption, you may want the motion to settle before the clip cuts. Allow time for the hold in the prompt and check whether the produced tail gives you enough of it. Our end image is simply the ball at rest on the mark. The next shot could cut straight to a still of that arrangement.

Try drawing the middle position as a thumbnail when the endpoints leave too much open. In the tabletop study, that thumbnail shows the ball between the marks, with both marks uncovered and the shadow under the ball. It makes the intended action more precise even if the model accepts only the two endpoint files. If you sketch the middle and discover that you need the ball to stop, reverse and then roll forward again, write the timing explicitly. If those beats need individual control, plan two clips and give them a common still to connect at the pause.

If both endpoints are ready and the deliverable also has a fixed duration, resolution or sound requirement, use the AI video model checklist to verify that combination before submitting.

Review the opening, the middle and the last few frames

Play the three-second endpoint study. It has 72 frames at 24 frames per second. The motion was made by drawing the same scene with the ball at different horizontal positions, then encoding the frames with FFmpeg. We measured the approximate ball center from decoded frames. In the first half second it covered about 32 pixels. In the half second from one to one and a half seconds it covered about 103. As it approached the destination, the distance between successive samples shortened. That is the timing you see in the clip.

Time in the study Approximate ball center from the left Check at that point
Opening 270 pixels One ball over the left mark
0.5 seconds 302 pixels Movement starts gently
1.5 seconds 484 pixels Ball passes between the marks at the original height
2.5 seconds 663 pixels Ball slows on the approach
Last frame, about 2.96 seconds 690 pixels Ball arrives over the right mark

Middle frame decoded from the study, with one ball between the two marks and a visible contact shadow

For a generated clip, watch the action through once, then pause around the middle. Compare the gap under the ball and the shape of its shadow in neighboring frames. You can see whether the ball is floating, whether a duplicate appears, or whether the background briefly changes. In the study the shadow travels just to the right of the ball. Look back at the starting image if the shadow suddenly falls the other way. Comparing the first and last frames alone would miss a frame where a second ball appears and then vanishes.

At the end, inspect the last few frames in order. A ball that reaches the intended position smoothly is easier to cut than one that jumps onto the mark in the final frame. If the landing is almost right but the end shot needs a precise graphic or product position, put the approved still in your editor after a compatible frame. Preview that join at normal speed. Even a short hold can expose a mismatch in scale or shadow when the still cuts in.

For a stricter match, freeze the last generated frame and put it beside the original ending file at the same size. Check the mark, the outside curve of the ball and the window before judging fine texture. If the window and mark align but the edge of the ball has shifted, compare it with an earlier frame where the ball has already slowed. You may find a cleaner edit point a few frames before the end. If none of the last frames line up, use the two images as direction for a new take or build the exact move in an editor from independent layers.

Use the first visible problem to choose the next change

Keep the same input pair and settings when you want to find out what one prompt change does. If the ball jumps near the right mark, check the frames immediately before the jump and see how much distance is left. Ask for it to reach the mark earlier or shorten the path. If it changes size midway through a fixed shot, first compare input diameters, then check whether the background scales with it. Each observation gives you a different place to intervene.

What you see Where to look next A small change to try
Ball moves right to left Attachment order and named endpoints Reattach the opening image first
Ball grows and window bars spread apart Framing across the whole clip Use matching crops and request a fixed camera
Ball changes shape while the window holds Outline and base in adjacent frames Simplify the action to one straight move
Ball lands in a noticeable jump Last three to five frames Give the shot more time to settle at the destination
Background pulses Window panes and the tabletop edge Review those patches across neighboring frames

For a take that keeps morphing or pulsing, use the AI video morphing and flickering review to locate the first visibly affected frame. Save the clean input pair, attachment order, model, settings and motion prompt with that frame. On the next review, a note such as “left mark disappears for two frames before the ball reaches center” is specific enough to check without watching every version from the beginning.