Skip to content
FramesField
FIX 35 · COMFYUI & LOCAL GPU
raw .md ↗ Verified Dec 1, 2026

Fix Lightricks LTX-2 Audio Crackle and 24fps Frame Strides

Direct Fix: Sync LTXVConditioning frame_rate and CreateVideo fps identically to 24.0 on exact 8n+1 frames (97 or 121), keep the LTX-2 Audio VAE/vocoder in FP16/BF16 with CFG 2.8–3.5, and finish the muxed MP4 with FFmpeg highpass + -14 LUFS / -1.5 dBTP loudness limiting.
Exact Error / Visual Signature
Audio symptom: metallic vocoder crackle, 0 dBFS transient pops, or progressive 4–20% A/V lip/foley drift | ffprobe shows video 4.84s @ 25fps vs audio 5.04s
OBSERVED SYMPTOM

Your local Lightricks LTX-2 audio-video render looks crisp visually, yet the companion native audio track exhibits harsh metallic hiss, crackling pops on loud foley transients, or drifts noticeably ahead of or behind on-screen movement by second 4.

TECHNICAL ROOT CAUSE

Three LTX-2 joint audio-visual pipeline mismatches: (1) mismatched frame_rate across LTXVConditioning (often defaulting to 25.0) and CreateVideo/SaveVideo (24 or 30 fps) breaks the tight coupling between 8n+1 video temporal latents and audio Mel-spectrogram length; (2) quantizing the audio VAE/vocoder or pushing CFGGuider above 3.5 introduces vocoder ringing; (3) raw unnormalized vocoder waveforms clip past 0 dBFS when muxed into AAC.

Copy-Paste Verified Fix

LTX-2 24fps Stride Validator + FFmpeg Anti-Crackle & True-Peak Audio Conform fix-ltx2-audio-and-stride.sh
# 1. Validate LTX-2 API graph JSON before rendering (enforces 8n+1, /32 dims, synced 24fps, and sane CFG)
python3 - "$1" <<'PY'
import json, sys
g = json.load(open(sys.argv[1]))
cond_fps = next((n["inputs"].get("frame_rate") for n in g.values() if n.get("class_type") == "LTXVConditioning"), None)
out_fps = next((n["inputs"].get("fps") for n in g.values() if n.get("class_type") == "CreateVideo"), None)
i2v = next((n["inputs"] for n in g.values() if n.get("class_type") == "LTXVImgToVideo"), {})
w, h, length = i2v.get("width", 0), i2v.get("height", 0), i2v.get("length", 0)
assert w % 32 == 0 and h % 32 == 0, f"Width/Height ({w}x{h}) must divide cleanly by 32"
assert (length - 1) % 8 == 0, f"Frame length {length} violates LTX-2 8n+1 rule (use 97, 121, 169, 241)"
assert cond_fps is None or out_fps is None or abs(float(cond_fps) - float(out_fps)) < 0.01, f"FPS mismatch: cond={cond_fps} vs CreateVideo={out_fps}"
print(f"PASS: {w}x{h} | {length} frames (8n+1) | synced {out_fps} fps ({length/float(out_fps):.2f}s)")
PY

# 2. Clean LTX-2 audio crackle, remove sub-45Hz DC rumble, tame high-freq vocoder hiss, and lock -14 LUFS / -1.5 dBTP
INPUT_MP4="${2:-ComfyUI/output/video/ltx2_raw.mp4}"
OUTPUT_MP4="${3:-ltx2_clean_24fps.mp4}"

ffmpeg -y -i "$INPUT_MP4" \
  -c:v copy \
  -af "highpass=f=45,lowpass=f=16500,afftdn=nf=-28:tn=1,loudnorm=I=-14:TP=-1.5:LRA=11,aresample=48000" \
  -c:a aac -b:a 192k -ac 2 -ar 48000 \
  -movflags +faststart \
  "$OUTPUT_MP4"

Before vs. After (Broken Pattern vs. Verified Fix)

Broken · Broken LTX-2 Graph (25fps Conditioning vs 24fps Output + CFG 6.0 + Raw Clip)
"5":  { "class_type": "LTXVConditioning", "inputs": { "frame_rate": 25.0 } }
"7":  { "class_type": "LTXVImgToVideo",   "inputs": { "length": 120 } }   // Invalid 8n+1!
"9":  { "class_type": "CFGGuider",        "inputs": { "cfg": 6.0 } }      // Over-drives vocoder!
"14": { "class_type": "CreateVideo",      "inputs": { "fps": 24 } }       // 200ms A/V drift!
Verified · Verified LTX-2 Graph (Locked 24.0fps Everywhere + 121 Frames + CFG 3.0)
"5":  { "class_type": "LTXVConditioning", "inputs": { "frame_rate": 24.0 } }
"7":  { "class_type": "LTXVImgToVideo",   "inputs": { "length": 121 } }   // Exact 8*15+1 = 5.04s
"9":  { "class_type": "CFGGuider",        "inputs": { "cfg": 3.0 } }      // Clean unclipped audio
"14": { "class_type": "CreateVideo",      "inputs": { "fps": 24 } }       // Zero drift

Why this works: Matching 24.0 fps across both LTXVConditioning and CreateVideo on 121 frames aligns audio and video duration to the exact millisecond, while keeping CFG near 3.0 prevents vocoder clipping.

Under the Hood

Why This Failure Happens in Real Pipelines

Lightricks LTX-2 generates synchronized video and audio inside one unified Diffusion Transformer (DiT), pairing a 3D spatiotemporal video VAE (8n + 1 frames, spatial dimensions divisible by 32) with a Mel-spectrogram audio VAE and neural vocoder. Internally, the model computes exact physical audio duration from the frame count divided by the frame_rate metadata passed into LTXVConditioning. Many starter graphs leave LTXVConditioning at 25.0 fps while setting CreateVideo or VHS_VideoCombine to 24 fps (or 30 fps). A 121-frame clip conditioned at 25 fps produces 4.84 seconds of audio, whereas playing 121 frames at 24 fps lasts 5.04 seconds—creating an immediate 200-millisecond sync drift and an ugly cut or click at the tail of the clip.

Metallic ringing, static buzz, and transient crackle come from two distinct sources inside the denoising and decode chain. First, while the 19B–22B LTX-2 diffusion backbone runs cleanly in FP8 or NVFP4 on 16GB–24GB GPUs, applying aggressive low-bit quantization to the tiny Audio VAE / vocoder degrades spectrogram phase reconstruction—always keep audio VAE and vocoder weights in FP16 or BF16. Second, pushing CFGGuider above 3.5–4.0 on dev checkpoints (or using non-distilled CFG > 1.0 on distilled fast weights) over-drives spectrogram energy, driving raw floating-point audio samples past 0.0 dBFS so the AAC encoder clips transients into audible pops.

Locking every timing parameter to an identical 24.0 fps (with exact 8n + 1 counts such as 97, 121, or 169 frames), capping CFG at 2.8–3.5 with explicit dry-room acoustic prompting, and running a fast deterministic FFmpeg finishing pass (45 Hz high-pass DC-offset removal, gentle spectral floor tame, true-peak -1.5 dBTP limiter, and 48 kHz AAC conform) removes crackle and locks frame-accurate A/V sync across every player.

Step-by-Step Resolution & Verification

  1. 01

    Lock LTXVConditioning frame_rate and CreateVideo fps to 24.0 on 8n+1 frames

    Audit your ComfyUI graph so LTXVConditioning uses 24.0, CreateVideo uses 24, and LTXVImgToVideo length is strictly 97 (4.04s), 121 (5.04s), or 169 (7.04s). Never mix 25 fps conditioning with 24 fps or 30 fps muxing.

  2. 02

    Keep Audio VAE in FP16/BF16, cap CFG at 2.8–3.5, and prompt dry room acoustics

    Run the main 19B–22B DiT in FP8/NVFP4 to fit 16GB–24GB VRAM, but leave the lightweight Audio VAE and vocoder unquantized. Add explicit acoustic cues ("dry close-mic foley, quiet room tone, zero background music") so the vocoder does not synthesize muddled background instruments.

  3. 03

    Run the lossless-video FFmpeg audio conform pass before delivery

    Pass -c:v copy with highpass=f=45, lowpass=f=16500, gentle afftdn, and loudnorm=I=-14:TP=-1.5 to strip sub-bass DC clicks, attenuate metallic top-end vocoder buzz, and guarantee clip-free 48 kHz stereo AAC.

Verification Check · Confirm Identical Video/Audio Duration and Clip-Free Audio Peak Ceiling
ffprobe -v error -show_entries stream=codec_type,r_frame_rate,sample_rate,duration -of compact=p=0 ltx2_clean_24fps.mp4 && ffmpeg -i ltx2_clean_24fps.mp4 -af volumedetect -f null - 2>&1 | grep -E "mean_volume|max_volume"
Expected healthy output:
codec_type=video|r_frame_rate=24/1|duration=5.041667
codec_type=audio|sample_rate=48000|duration=5.045333
max_volume: -1.5 dB   # Clean headroom under 0.0 dBFS with zero clipping

How to Prevent This Error From Recurring

GUARDRAIL 01

Standardize all LTX-2 studio presets on 121 frames at 24 fps

121 frames satisfies both LTX-2 (8n+1) and Wan 2.2 (4n+1) simultaneously and produces a clean 5.04-second editorial clip without rounding drift.

GUARDRAIL 02

Never prompt overlapping loud music plus dialogue inside a single LTX-2 pass

Generating dry foley or single-speaker voice in LTX-2 and mixing licensed music separately in FFmpeg prevents metallic vocoder intermodulation distortion.

GUARDRAIL 03

Keep LTXVScheduler defaults (base_shift 0.95, max_shift 2.05, terminal 0.1) intact

Replacing LTXVScheduler with generic Karras or Normal sigma schedules degrades both temporal video coherence and spectrogram clarity.

Troubleshooting FAQs

Why does LTX-2 audio hiss get noticeably worse above 16 kHz?
Neural Mel-spectrogram vocoders often leave slight high-frequency checkerboard artifacts between 16 kHz and 22 kHz, especially on FP8/distilled generations. A clean lowpass=f=16500 filter removes the metallic shimmer while keeping speech and foley crisp.
Can I replace cracked LTX-2 dialogue completely while keeping the LTX-2 video?
Yes. Strip the native track with -an or mute it in your NLE, generate clean studio speech or foley via ElevenLabs or OpenAI TTS, and mix cleanly at -14 LUFS using Skill 03 (FFmpeg Studio Conform & Loudness).
Why did my LTX-2 clip have a loud pop right on frame 1 or the very last frame?
Vocoder waveforms occasionally start or end on a non-zero DC sample offset. Adding afade=t=in:st=0:d=0.03 and a 30ms fade-out at the end of the FFmpeg filter chain eliminates boundary pops cleanly.
Does running LTX-2 distilled checkpoints at 8 steps require different CFG than 24-step dev checkpoints?
Yes. Full dev checkpoints expect 20–30 steps with CFG around 2.8–3.5, whereas distilled fast checkpoints are trained for roughly 6–8 steps at CFG 1.0—using CFG 3.5 on distilled weights causes severe audio distortion and visual over-contrast.
Use this page in AI tools or notes
raw .md