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.

2.5 KB
Raw Blame
#!/usr/bin/env bash
# Install the mflux image-engine pack (Ideogram 4 + Qwen-Edit).
#
# Lifted out of install.js (529-char dispatch). See scripts/pinokio/README.md.
# update.js keeps its own slightly different copy inline — that one is 498 and
# under the ceiling; do not "tidy" it into this file without re-reading both.
#
#   cwd : the app root
#
# SEMANTICS: was a "\n"-joined string carrying its own `\` continuations, i.e.
# ONE compound command with a trailing `|| echo WARN`. BEST-EFFORT by design —
# a pip hiccup must not fail the core video install; the panel surfaces a
# one-click "Reinstall image engines" path if this didn't land. Preserved
# exactly: same subshell, same `||`, no `set -e`.
#
# uv, NOT plain pip: mlx-vlm is installed --no-deps (to dodge its PIL>=10 / av
# pins), which leaves its declared extras permanently unsatisfied. Plain
# `pip install` then dumps a scary "ERROR: pip's dependency resolver…" block
# about mlx-vlm on EVERY later install — verified, and it made cocktailpeanut's
# update look broken. Worse, on v3.8.1 that block ENDED the Pinokio run early
# and silently skipped every remaining step (the v3.8.2 truncation bug).
#
# Two-step (with-deps, then --reinstall --no-deps) mirrors install_qwen.js so
# transitive deps resolve first and the version is then locked, after which the
# FBCache patch is applied.

# OPTIONAL means its output must never say "error:". Pinokio 8.2 ends an install
# when a step's output matches /error:/i or /errno /i (pinokiod kernel/shells.js)
# and uv prints "error: ..." for any failed resolve or download - which would end
# the whole video install over an image pack the panel can reinstall in one click.
# The same defence post_update.sh and a2v_stems_deps.sh already carry. The exit
# status is the subshell's, read from PIPESTATUS.
echo 'Installing the mflux image-engine pack (Ideogram 4 + Qwen-Edit)…'
( uv pip install --python ./ltx-2-mlx/env/bin/python -c scripts/pinokio/engine_constraints.txt 'mflux==0.18.0' && \
  uv pip install --python ./ltx-2-mlx/env/bin/python -c scripts/pinokio/engine_constraints.txt --reinstall --no-deps 'mflux==0.18.0' && \
  uv pip install --python ./ltx-2-mlx/env/bin/python -c scripts/pinokio/engine_constraints.txt 'mlx-teacache==0.4.1' && \
  ./ltx-2-mlx/env/bin/python3.11 patch_mflux_fbcache.py ) 2>&1 \
  | sed -u -e 's/[Ee][Rr][Rr][Oo][Rr]:/problem -/g' -e 's/[Ee]rrno /errno-/g'
[ "${PIPESTATUS[0]}" -eq 0 ] \
  || echo 'WARN: mflux image-engine install hit a problem — video still works; use the Reinstall image engines action to retry image generation.'