﻿# LTX-Video padding and cropping: requested dimensions can hide extra work

Understand the original LTX-Video spatial and temporal alignment contract, and record internal padding separately from the visible cropped video artifact.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-ltx-video-padding-crop-generated-workload/
Language: en

## Name the model generation

The original LTX-Video family has its own VAE geometry and inference workflows. The [official repository](https://github.com/Lightricks/LTX-Video) also discusses later LTX releases, which must not be treated as identical checkpoints or interchangeable pipelines. Keep the selected weight version and workflow explicit. In particular, an audio-video capability associated with a different generation does not follow automatically from loading an original LTX-Video artifact that produces a sequence of images.

## Read the alignment rule correctly

The [LTX-Video model card](https://huggingface.co/Lightricks/LTX-Video) describes spatial dimensions divisible by 32 and temporal lengths formed as a multiple of 8 plus 1. It explains that unsupported input dimensions can be padded and subsequently cropped. That rule means 8k + 1 for an integer k; it does not mean a frame count divisible by 9. The VAE's spatial and temporal representation is the reason an apparently arbitrary application request can require an internal adjustment.

## Separate visible size from processed size

Imagine a user requesting a narrowly cropped preview with a frame count between aligned lengths. The visible file may satisfy that request after cropping, while denoising and decoding processed a larger internal tensor. A resource estimate based only on exported pixels can undercount the work. Capture requested dimensions, prepared dimensions, latent shape, and returned dimensions independently. This also helps explain why nearby requests can have similar memory use instead of scaling smoothly with the visible file size.

## Keep multi-stage workflows explicit

The [Diffusers LTX-Video documentation](https://huggingface.co/docs/diffusers/api/pipelines/ltx_video) includes latent generation, upsampling, refinement, and final resizing workflows. Those stages have different shapes and costs. Do not collapse them into a single resolution label that describes only the final frame. If a wrapper changes the low-resolution stage or upsampler, it has changed the computational path even when exported width and height remain constant. Retain each stage's configuration in the generation record.

## Validate boundaries rather than one demonstration

Exercise requests near the alignment boundary and inspect final frame count as well as dimensions. Confirm where padding and cropping occur in the chosen implementation instead of assuming the model card and every integration perform identical preprocessing. Existing guides on [tensor axes](/journal/tensor-axes-batch-sequence-hidden/) and [benchmark design](/journal/inference-benchmark-method/) supply background. The useful LTX-Video contract connects requested output geometry to the internal aligned workload, giving a defensible explanation for both the resulting artifact and its resource measurements.
