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.
Python ai-filmmakingai-videoai-video-generatorapple-siliconhailuoimage-to-videolip-synclocal-ailora-trainingltx-2ltx-2-5ltx-videomacosminimax-h3mlxmusic-generationoffline-aipinokiotext-to-videovideo-generation
Pre-Discover hardening: Q8 completeness + Pinokio paths + README known issues
mrbizarroaad9146af210
diff --git a/README.md b/README.mdindex 52fb9ba..de6878f 100644--- a/README.md+++ b/README.md@@ -161,6 +161,16 @@ cmd.extend(["-c:v", "libx264", "-pix_fmt", _pix, "-crf", _crf, output_path])M-Max tier divides by ~3–4×. M-Ultra by ~6×.+## Known issues++Worth surfacing before you hit Install:++- **High quality (Q8) and FFLF keyframing are opt-in**. The default install only pulls Q4 (~25 GB) + Gemma (~6 GB). Q8 is a separate menu action (~25 GB extra). On 64 GB Macs, Q8 two-stage HQ can OOM the helper subprocess mid-render — workaround is to render at lower resolution (e.g., Quality=Draft with the High pill) until we land the upstream cleanup PR.+- **The panel binds to localhost (127.0.0.1) only.** Don't tunnel it onto a LAN or expose it through ngrok / similar — there's no auth, no CSRF, and `/image?path=` will serve any image file the user account can read. It's designed for single-user local use.+- **Reset is intentionally non-destructive** for your work. It removes the `ltx-2-mlx/` clone (the venv) so a fresh Install rebuilds cleanly. It does NOT delete `mlx_models/`, `mlx_outputs/`, `panel_uploads/`, `panel_queue.json`, or `panel_hidden.json` — those are your generations and config. Delete them manually via the Models/Outputs/Uploads file-browser entries in the Pinokio sidebar if you want a true factory reset.+- **The `Image → video + clean audio mux` mode currently re-encodes the final video as `yuv420p crf 18`** (subsampled chroma — same as the upstream default). Normal Image → Video and Text → Video modes use the patched lossless `yuv444p crf 0` output. If you need lossless on the audio-mux path, swap the mux step's codec args manually until we wire the env-var pass-through there too.+- **A few performance levers exist that aren't in the UI yet**. Check `mlx_ltx_panel.py` for environment variables: `LTX_OUTPUT_PIX_FMT`, `LTX_OUTPUT_CRF`, `LTX_HELPER_LOW_MEMORY`, `LTX_HELPER_IDLE_TIMEOUT`. Override via shell env when starting the panel (or via the Pinokio `start.js` env block).+## Roadmap- [ ] Submit the lossless-output patch as a PR upstream to `dgrauet/ltx-2-mlx`diff --git a/install.js b/install.jsindex 2e264b2..2449cde 100644--- a/install.js+++ b/install.js@@ -25,6 +25,8 @@ module.exports = {// Non-editable install (no -e): packages get copied into env/lib/.../site-packages/// which is where the codec patch script looks for video_vae.py. With -e the// patch can't find its target file because the runtime imports from packages/.+ // Pin huggingface-hub>=1.0 explicitly so older Pinokio bundles still get+ // the v1+ `hf` CLI used by the download steps below.{method: "shell.run",params: {@@ -32,7 +34,7 @@ module.exports = {path: "ltx-2-mlx",message: ["uv pip install ./packages/ltx-core-mlx ./packages/ltx-pipelines-mlx",- "uv pip install pillow numpy"+ "uv pip install pillow numpy 'huggingface-hub>=1.0'"]}},@@ -41,10 +43,12 @@ module.exports = {// Switches output codec from yuv420p crf 18 (visible chroma blocks on faces)// to yuv444p crf 0 (lossless, no chroma subsampling). Adds env-var override// so users can flip back via LTX_OUTPUT_PIX_FMT / LTX_OUTPUT_CRF.+ // Use the venv's explicit Python so we don't depend on Pinokio's bundle+ // shipping a `python3` symlink — what we know exists is env/bin/python3.11.{method: "shell.run",params: {- message: ["python3 patch_ltx_codec.py"]+ message: ["./ltx-2-mlx/env/bin/python3.11 patch_ltx_codec.py"]}},diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex 263258e..e72023c 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -848,18 +848,20 @@ class Handler(BaseHTTPRequestHandler):"idle_timeout_sec": HELPER_IDLE_TIMEOUT,}# Q8 is "available" only when ALL critical safetensors are on disk.- # The HQ pipeline needs the dev transformer + connector + distilled- # LoRA + VAE + audio. A partially-downloaded model passes basic- # exists() checks but fails at load_safetensors mid-run, which is- # worse than reporting False. List the files actually consumed by- # ti2vid_two_stages_hq's loader.+ # HQ + Keyframe pipelines need dev transformer + connector ++ # distilled LoRA (used for stage-2 refine) + VAE + audio. A+ # partially-downloaded model passes basic exists() checks but+ # fails at load_safetensors mid-run, which is worse than+ # reporting False._Q8_REQUIRED = ("connector.safetensors","transformer-dev.safetensors",+ "ltx-2.3-22b-distilled-lora-384.safetensors", # stage-2 refine"vae_decoder.safetensors","vae_encoder.safetensors","audio_vae.safetensors","vocoder.safetensors",+ "spatial_upscaler_x2_v1_1.safetensors", # used by two-stage upscale)_q8_missing = []if Q8_LOCAL_PATH.exists() and Q8_LOCAL_PATH.is_dir():diff --git a/pinokio.js b/pinokio.jsindex 78a74c5..9d4a00b 100644--- a/pinokio.js+++ b/pinokio.js@@ -5,7 +5,22 @@ module.exports = {icon: "icon.png",menu: async (kernel, info) => {const installed = info.exists("ltx-2-mlx/env") || info.exists("ltx-2-mlx/.venv")- const q8_installed = info.exists("mlx_models/ltx-2.3-mlx-q8/transformer-dev.safetensors")+ // Treat Q8 as installed only when the heavy + downstream-required files+ // are all present. transformer-dev alone is not enough: HQ stage-2 needs+ // the distilled LoRA, two-stage upscale needs the spatial upscaler.+ // A partial Q8 download otherwise hides the "Download Q8" menu item.+ const q8_installed = (+ info.exists("mlx_models/ltx-2.3-mlx-q8/transformer-dev.safetensors") &&+ info.exists("mlx_models/ltx-2.3-mlx-q8/ltx-2.3-22b-distilled-lora-384.safetensors") &&+ info.exists("mlx_models/ltx-2.3-mlx-q8/spatial_upscaler_x2_v1_1.safetensors") &&+ info.exists("mlx_models/ltx-2.3-mlx-q8/connector.safetensors")+ )+ // User-content folders persist across Reset (which only removes the+ // venv). Keep their shortcuts visible whenever they exist on disk+ // so users can still recover their renders / models / uploads.+ const has_outputs = info.exists("mlx_outputs")+ const has_models = info.exists("mlx_models")+ const has_uploads = info.exists("panel_uploads")const running = {install: info.running("install.js"),start: info.running("start.js"),@@ -27,7 +42,13 @@ module.exports = {return [{ default: true, icon: "fa-solid fa-download", text: "Downloading Q8 (~25 GB)", href: "download_q8.js" }]}if (!installed) {- return [{ default: true, icon: "fa-solid fa-plug", text: "Install", href: "install.js" }]+ // Even when uninstalled, expose user-content folders if they survived+ // a previous Reset so users can recover their work.+ const m = [{ default: true, icon: "fa-solid fa-plug", text: "Install", href: "install.js" }]+ if (has_outputs) m.push({ icon: "fa-solid fa-film", text: "Outputs", href: "mlx_outputs?fs=true" })+ if (has_models) m.push({ icon: "fa-solid fa-cube", text: "Models", href: "mlx_models?fs=true" })+ if (has_uploads) m.push({ icon: "fa-solid fa-image", text: "Uploads", href: "panel_uploads?fs=true" })+ return m}if (running.start) {const local = info.local("start.js")