Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

SHIP-BLOCKER: pin ltx-2-mlx to dcd639e — 0.2.0 regressed audio amplitude by 22 dB

mrbizarro2a70f89d6526
diff --git a/install.js b/install.js
index 7eabdc7..c61b230 100644
--- a/install.js
+++ b/install.js
@@ -48,6 +48,30 @@ module.exports = {
}
},
+ // ---- Pin ltx-2-mlx to dcd639e (SHIP-BLOCKER fix) ----------------------
+ // SHIP-BLOCKER history: dgrauet/ltx-2-mlx upstream made 100+ commits
+ // between the 0.1.0 baseline and the 0.2.0 release HEAD. Several
+ // touched the audio path (570cce8, ca784dd, 22adef1) and empirically
+ // produced -22 dB output amplitude — peaks at -37 dB vs the working
+ // baseline's -15 dB peaks. The "fixes" claim to align MLX numerics with
+ // PyTorch reference, but the LTX 2.3 weights were trained against the
+ // pre-fix MLX behavior, so post-fix output is quieter / hissy.
+ //
+ // dcd639e is the original "complete MLX port" commit at version 0.1.0,
+ // which the user verified produces the expected audio levels. We pin
+ // the working tree there explicitly. Bisecting the 100-commit range
+ // for the actual regression is post-launch work.
+ //
+ // Idempotency: `git checkout` is safe to re-run on every install /
+ // resume install — already-on-dcd639e is a no-op.
+ {
+ method: "shell.run",
+ params: {
+ path: "ltx-2-mlx",
+ message: ["git fetch origin", "git checkout dcd639e"]
+ }
+ },
+
// ---- Force Python 3.11 venv (SHIP-BLOCKER fix) ------------------------
// Pinokio's `venv: "env"` shortcut creates a venv using whatever python
// is on `conda activate base` — on machines where conda's base env is
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index 678887c..aeaf97d 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -2863,7 +2863,12 @@ HTML = r"""<!doctype html>
</div>
<h2>Prompt</h2>
- <textarea name="prompt" id="prompt" placeholder="What should happen in the video..."></textarea>
+ <!-- Audio-guidance hint in the placeholder. LTX 2.3 generates audio
+ jointly but is CONDITIONED on prompt cues — visual-only prompts
+ produce near-silent room tone (peaks at -37 dB on test runs).
+ Most users assume "no sound" = bug. Hint nudges them to describe
+ the soundscape too. Documented in the LTX 2.3 paper but unobvious. -->
+ <textarea name="prompt" id="prompt" placeholder="Describe the scene AND the sound: e.g. 'wizard in a forest clearing, fireflies spiraling up — low whispered chant, ember crackle, distant owl'. Audio is generated jointly with video; without sound cues the model outputs near-silent ambient."></textarea>
<!-- Gemma-driven prompt enhancement (upstream's `ltx-2-mlx enhance`).
Rewrites your prompt with the structure/keywords LTX 2.3 trained
on. ~12-15s on cold start (Gemma needs to load), ~5s warm. -->
diff --git a/patch_ltx_codec.py b/patch_ltx_codec.py
index f932026..133722d 100644
--- a/patch_ltx_codec.py
+++ b/patch_ltx_codec.py
@@ -48,10 +48,15 @@ PATCH_CODEC_OLD = 'cmd.extend(["-c:v", "libx264", "-pix_fmt", "yuv420p", "-crf",
PATCH_CODEC_NEW = (
'# PATCHED (LTX23MLX): default to lossless yuv444p crf 0 (no chroma\n'
' # subsampling, no JPEG-style block artifacts on faces). Override via env.\n'
+ ' # `+faststart` moves the moov atom to the front of the file so the\n'
+ ' # gallery thumbnails (preload="metadata") can decode the first\n'
+ ' # frame without downloading the full clip — without it the thumbs\n'
+ ' # render black until clicked.\n'
' import os as _os\n'
' _pix = _os.environ.get("LTX_OUTPUT_PIX_FMT", "yuv444p")\n'
' _crf = _os.environ.get("LTX_OUTPUT_CRF", "0")\n'
- ' cmd.extend(["-c:v", "libx264", "-pix_fmt", _pix, "-crf", _crf, output_path])'
+ ' cmd.extend(["-c:v", "libx264", "-pix_fmt", _pix, "-crf", _crf,\n'
+ ' "-movflags", "+faststart", output_path])'
)
# ---- Patch 2: I2V free-DiT-before-VAE-decode (OOM fix) -----------------------
@@ -176,12 +181,29 @@ def main() -> int:
)))
# Patch 2: I2V OOM cleanup before decode
+ # SHIP-BLOCKER history: install.js pins ltx-2-mlx to commit dcd639e
+ # (the 0.1.0 audio baseline) because newer 0.2.0 commits regressed
+ # audio amplitude by 22 dB. At dcd639e the I2V function inlines the
+ # decode steps instead of calling _decode_and_save_video, so this
+ # patch's old/new strings don't match. Mark it OPTIONAL — DRIFT is
+ # treated as a warning (the patch only helps Q8 / 64 GB I2V runs;
+ # T2V works fine without it). The codec patch above is REQUIRED.
i2v_target = _find("ltx_pipelines_mlx/ti2vid_one_stage.py")
- outcomes.append(("I2V OOM (free DiT before decode)", apply_patch(
+ i2v_outcome = apply_patch(
i2v_target, PATCH_I2V_OOM_OLD, PATCH_I2V_OOM_NEW,
marker="PATCHED (LTX23MLX): mirror the parent T2V cleanup",
label="I2V OOM (free DiT before decode)",
- )))
+ )
+ if i2v_outcome == OUTCOME_DRIFT:
+ print(
+ " [I2V OOM] note: this patch only matches the 0.2.0+ I2V "
+ "structure. On the pinned 0.1.0 baseline (dcd639e) it's a no-op. "
+ "T2V output is unaffected; HQ I2V on Q8 may OOM without it.",
+ file=sys.stderr,
+ )
+ # Treat as ALREADY for the rollup so install doesn't fail.
+ i2v_outcome = OUTCOME_ALREADY
+ outcomes.append(("I2V OOM (free DiT before decode)", i2v_outcome))
# (Keyframe OOM patch was removed — see NOTE in the patches block above.
# The fix is currently a panel-side resolution clamp, not a pipeline edit.)