Preparing a Batch of Source Images for Consistent Image-to-Video Output

Image-to-video models have no memory between generations. Batch-preparing your source images for colour, exposure, and resolution is the only way to get clips that cut together.

Preparing a Batch of Source Images for Consistent Image-to-Video Output

The most persistent mistake in image-to-video production is assuming that because the same model generates each clip, the clips will look like they belong together. They will not. Image-to-video models have no memory of previous generations. Every source image enters the inference pipeline as an independent starting point with no awareness of the clip that came before it or the one that follows. Colour temperature will shift, brightness will drift, and motion character will vary unless the source set is standardised before any generation begins. That is the problem batch source image preparation solves: a repeatable, tool-based workflow that forces the source images to agree before the model ever sees them.

The fix is not in the generation model. No current image-to-video model applies inter-clip colour correction or remembers the white balance of a previous generation. The fix is a preprocessing pipeline that normalises every source image on three axes: resolution, colour and brightness, and embedded tags. The tool for that pipeline is FFmpeg, which is free, scriptable, and deterministic. Here are the exact commands.

Why Independent Source Images Produce Mismatched Clips

Image-to-video generation works by encoding a single still into a latent space, injecting noise, and denoising across frames using temporal attention layers. The model predicts pixel motion from patterns in its training data. It does not model a persistent world. It does not track a subject across multiple generations. Each run begins from the source image alone, with no context from any previous clip.

The result is that two source images of the same scene, shot minutes apart, will generate clips with different colour casts, different brightness levels, and different motion character. The model's internal preprocessing is not calibrated to match them. The gaps appear as flicker at edit points, seam artefacts on concatenation, and a general sense that the sequence was assembled from different shoots. The only way to close those gaps is to make the source images identical in the dimensions the model sees as inputs.

The FFmpeg Pipeline for Batch Normalisation

The following FFmpeg pipeline handles three tasks: resolution uniformity, colour and brightness matching, and metadata stripping. Run these commands on every source image in your batch before you send any file to a generation model. The filter claims here are drawn from the FFmpeg documentation.

Resolution Uniformity With the Scale Filter

Image-to-video models are trained on specific aspect ratios. Runway Gen-3 Alpha, for example, accepts up to 4096 pixels on the longest side but outputs 1280x768 in landscape as of September 2026. Kling 1.6 recommends 16:9, 9:16, 1:1, 4:3, or 3:4. If your source images mix 3:2 from a DSLR and 4:3 from a phone, the model will either crop, pad, or distort them differently per clip. That produces aspect ratio distortion and subject drift at the edit point.

Use FFmpeg's scale filter with a fixed width and height, and the 'force_original_aspect_ratio' flag set to 'decrease' so that images are resized to fit within your target dimensions without stretching. Append a padding filter with the 'pad' option to fill any resulting letterboxing with a neutral colour, typically black or middle grey.

Example command for a batch: ffmpeg -i input.jpg -vf "scale=1280:768:force_original_aspect_ratio=decrease,pad=1280:768:(ow-iw)/2:(oh-ih)/2:color=#808080" output.jpg. Run this in a shell loop over all JPEG and PNG files in your source directory.

Colour and Brightness Matching With Colourspace and Eq Filters

Brightness mismatches and white balance shifts are the most common cause of flicker between concatenated clips. FFmpeg's 'eq' filter adjusts brightness, contrast, and gamma. The 'colorbalance' filter modifies highlights, midtones, and shadows separately. The 'colours' filter enforces a consistent colourspace standard, such as BT.709 for sRGB content.

The workflow is: pick one reference image from your batch that has the brightness and white balance you want. Measure its histogram with FFmpeg's 'histeq' filter or export its colourspace data. Then apply the same 'eq' and 'colorbalance' parameters to every other source image. Do not let each image correct to its own histogram. Force them all to the reference histogram.

If your source images come from different cameras or lighting conditions, use an intermediate LUT. Extract a colour grading LUT from your reference image using a tool like Lutify or DaVinci Resolve, then apply that LUT to every source image with FFmpeg's 'lut' filter. This is the only reliable way to match colour temperature across a mixed-origin batch.

Metadata Stripping

Embedded ICC profiles, EXIF colour tags, and camera-specific data can confuse the model's preprocessing layer. The model's own resizing and normalisation pipeline may read a colour profile that contradicts the pixel values you intended. Strip all metadata with FFmpeg's '-map_metadata -1' flag. This removes every non-essential tag from the output file.

Combine this with the scale and colour filters in a single command so that the output files are clean on all three axes: ffmpeg -i input.jpg -map_metadata -1 -vf "scale=1280:768:force_original_aspect_ratio=decrease,pad=1280:768:(ow-iw)/2:(oh-ih)/2:color=#808080,eq=brightness=0.05:contrast=1.2:gamma=1.0" output.jpg.

What the Generation Models Provide for Inter-Clip Matching

As of September 2026, only one model-level feature addresses the problem of matching clip endpoints: start-and-end-frame support. Kling 1.6 offers this via its Elements, End Frame feature. You upload a start image and an end image, and the model generates a clip that transitions from one to the other. Pika 2.1 calls this Scene Ingredients. Luma Dream Machine calls it Keyframes. Runway Gen-3 Alpha does not offer it. Sora offers it via Storyboard. Veo 3, Hailuo, and Seedance all support end-frame uploads.

Even with matched endpoints, the colour and brightness of the generated clip will drift from the source images unless those sources are already normalised. The start-and-end-frame feature constrains the motion path and reduces seam artefacts at the join, but it does not correct colour temperature or brightness. That remains the preprocessing job.

Seed locking is another tool. Some models and local-generation interfaces like ComfyUI allow you to fix the random seed used in the latent noise initialisation. If you generate two clips from different source images with the same seed, the noise pattern will be identical, which can reduce flicker at the edit point. Seed locking does not fix colour mismatches, but it is a useful addition to a normalised batch workflow.

Model Start-and-End-Frame Support as of September 2026
ModelStart-and-End-Frame SupportMaximum Clip Length
Runway Gen-3 AlphaNo5 s or 10 s
Kling 1.6Yes (End Frame)5 s or 10 s
Pika 2.1Yes (Scene Ingredients)4 s, 8 s, or 10 s
Luma Dream MachineYes (Keyframes)5 s or 10 s
SoraYes (Storyboard)4 s, 8 s, or 12 s
Veo 3Yes4 s, 6 s, or 8 s
HailuoYes6 s
Seedance 1.0Yes2 s, 4 s, or 6 s
Wan 2.1No5 s
LTX-VideoNo2 s to 6 s
Stable Video DiffusionNo2 s or 4 s

Image-to-Video Batch Colour Matching: A Worked Example

You have six source images of the same product on a turntable, shot under tungsten lights with a phone camera. The white balance varies from frame to frame because the lens auto-adjusted. Directly feeding these images to Kling 1.6 or Runway Gen-3 Alpha will produce six clips where the product's colour temperature shifts every time you cut. The edit will look unprofessional.

Start by picking the middle-brightness image as your reference. Use FFmpeg's 'histeq' filter to analyse its luminance distribution. Then apply the same 'eq' parameters to all six images. Do not let each image adjust to its own histogram. Force them all to match the reference. Strip the EXIF data with '-map_metadata -1' so the model's preprocessing does not read the phone's auto white balance tag. Scale every image to 1280x768 with padding. Now generate six clips from six source images that agree on colour and brightness.

The same workflow works for a batch of location stills for a travel sequence, a set of character portraits for an animation, or a series of architectural shots for a real estate walkthrough. The tool does not change. The reference image does.

Consistent Image-to-Video Source Set Workflow: The Full Sequence

The complete repeatable workflow for a batch of source images that will become a sequence of clips runs in five steps. Do not skip any step.

  1. Collect all source images in a single directory. Rename them with a zero-padded numeric convention so that the order matches the intended sequence: clip_001.jpg, clip_002.jpg, clip_003.jpg. A good file naming convention prevents accidental misordering during batch processing.
  2. Select a reference image. Choose the one with the most neutral brightness and the most representative colour temperature. If you are using a LUT, extract the LUT from this reference image.
  3. Run the FFmpeg batch command: scale all images to your target resolution, pad to maintain aspect ratio, apply the 'eq' and 'colorbalance' filters to match the reference, apply the LUT if you have one, and strip metadata.
  4. Generate each clip individually from the corresponding normalised source image. Use the same seed for every generation if your toolchain supports seed locking. Use the same text prompt for motion description if you want consistent motion character across the sequence.
  5. Concatenate the output clips using FFmpeg's concat demuxer. Because the source images were normalised, the concatenated sequence will not show colour temperature shifts, brightness jumps, or resolution changes at the edit points.

This is the entire workflow. It uses no proprietary software. It costs nothing beyond the hardware you already have. It is repeatable across any batch size and any model.

FFmpeg Batch Image Preprocessing Image-to-Video: The Exact Commands

The following shell script processes every JPEG and PNG file in the current directory. It scales each image to 1280x768 with padding, applies a reference histogram match, strips metadata, and writes the output to a 'prepared' subdirectory. Adjust the resolution to match your target model. For Kling 1.6, use 1920x1080. For Runway Gen-3 Alpha, use 1280x768. For Wan 2.1, use 1280x720.

Script: mkdir -p prepared; for f in *.jpg *.png; do ffmpeg -i "$f" -map_metadata -1 -vf "scale=1280:768:force_original_aspect_ratio=decrease,pad=1280:768:(ow-iw)/2:(oh-ih)/2:color=#808080,eq=histeq=1" "prepared/$f"; done

The 'histeq' parameter in the 'eq' filter normalises the histogram of each image to a flat distribution. This is a rough match. For a tighter match, replace the 'eq' filter with a 'lut' filter that applies a specific LUT file: -vf "lut=reference_lut.cube". The LUT file must be generated from your reference image using a colour grading tool.

If your source images are already the same resolution and aspect ratio, skip the scale and pad filters and run only the metadata stripping and colour matching: ffmpeg -i "$f" -map_metadata -1 -vf "eq=histeq=1" "prepared/$f". The fewer transformations you apply, the less generation quality you lose.

Multi-Clip Image-to-Video Sequence Planning

Sequence planning starts before any image is normalised. Decide the shot order, the motion character of each clip, and the edit points. If clip A ends with a slow pan to the right, clip B should start with a slow pan to the right, not a hard cut to a static shot. The models cannot smooth this transition; you must plan it.

Kling 1.6's start-and-end-frame feature is the strongest tool for this. If your sequence calls for a transition from a close-up of a subject to a wide shot of the same location, generate the close-up clip with the wide shot as the end frame. Then generate the wide-shot clip with the same wide shot as the start frame. The two clips will share a matching frame at the edit point, minimising seam artefacts.

For models without end-frame support, like Wan 2.1 or Stable Video Diffusion, the only option is to normalise the source images and accept that the concatenation will show a small seam. Keep clips shorter than the model's maximum to reduce drift. A 5-second clip is more likely to match its neighbour than a 10-second clip, because drift increases with duration.

What Goes Wrong When You Skip This Step

The most common failure is flicker. A sequence of clips generated from unprepared source images will show visible frame-to-frame changes in brightness or colour at every edit point. The viewer perceives it as a technical error, not a creative choice. The second most common failure is a seam artefact where the concatenation of two clips shows a hard jump in subject position or background colour. The third is aspect ratio distortion, where one clip appears cropped and another appears stretched because the model handled the differing source dimensions differently.

These failures are avoidable with a 10-second FFmpeg command per image. The cost of skipping the step is a set of clips that cannot be used as a sequence, forcing you to regenerate or to abandon the edit entirely. The time spent normalising the source batch is always less than the time spent troubleshooting mismatched clips.

Common Questions

Can I fix colour mismatches in post-production instead of preprocessing the source images?

You can, but it costs time and quality. Post-production colour grading of generated video clips can correct white balance and brightness, but the model has already hallucinated detail based on the wrong colourspace. A source image that was too warm will cause the model to generate warm-toned motion artefacts that are harder to correct after generation than they are to prevent before it. Preprocessing is faster and produces cleaner output.

Do I need to use a LUT, or can I match colour with FFmpeg filters alone?

FFmpeg's 'eq' and 'colorbalance' filters can produce a close match if the source images are from the same camera and lighting conditions. For a mixed-origin batch, a LUT extracted from a reference image is more precise because it applies the exact same transformation to every pixel channel. Use the LUT when the source set contains images from two or more different cameras or lighting environments.

Will seed locking alone fix the inconsistency between clips?

No. Seed locking fixes the noise initialisation pattern, which can reduce flicker at the edit point, but it does nothing for colour temperature, brightness, or motion character mismatches. Seed locking is a supplement to the normalisation pipeline, not a replacement for it.

What resolution should I scale my source images to for a batch?

Match the output resolution of the model you are using. For Runway Gen-3 Alpha, use 1280x768 in landscape or 768x1280 in portrait. For Kling 1.6, use 1920x1080. For Wan 2.1, use 1280x720. For LTX-Video, use 1024x576. Scaling to a common resolution before generation ensures that every clip is generated at the same pixel count, which prevents resolution-induced aspect ratio distortion at concatenation.

How do I handle source images with different aspect ratios?

Use FFmpeg's scale filter with 'force_original_aspect_ratio=decrease' to resize the image to fit within your target dimensions, then pad the remaining space with a neutral colour. Do not stretch or crop the image, because that changes the composition the model sees. Padding preserves the full frame and produces a consistent input size.

Can I use this workflow with models that are not listed in the table?

Yes. The workflow is model-agnostic. Every image-to-video model accepts a still image as input, and every model produces clips that must be concatenated. The colour, resolution, and metadata normalisation steps apply to any model. Only the target resolution changes.

What if my source images are already the same resolution and white balance?

Run the metadata stripping step anyway. Embedded colour profiles and EXIF tags can still confuse the model's preprocessing, even if the pixel values are consistent. Stripping metadata costs under a second per image and eliminates a potential failure point.