What You Will Build & Master
- Set up a clean Apple Silicon environment running Meta SAM 3, headless MatAnyone 2, native Apple MLX LivePortrait fp32, MediaPipe 478-pt FaceLandmarker, ClearerVoice MossFormer2_SE_48K, and Metal whisper-cli in one script.
- Fuse zero-click Meta SAM 3 text prompts (+person, +microphone arm, -office chair) with MatAnyone 2 soft hair alpha, 5-frame anti-flicker, fingertip hole-fill, and Rembrandt LAB face relighting.
- Correct gaze drift locally in Apple MLX fp32 (~2.6 min per 50s take) with empirical VOR head-turn regression and feathered dual eye-socket compositing, paired with zero-flicker Cinema FX3 frequency-separation skin/under-eye/teeth polish.
- Master voice audio with ClearerVoice MossFormer2_SE_48K dereverb + -14.0 LUFS broadcast chain, extract Metal Whisper word timestamps, and render both native 4K60 BT.709 16:9 + 9:16 cuts from one enhanced 30 fps A-roll pass.
Table of Contents (8 Chapters)All UnlockedCh. 1 Free
setup.sh, the bezel-locked teleprompter.html, matte_video.py, the full native Apple MLX studio_enhance.py (eye contact + Cinema FX3 face polish + chroma denoise + MossFormer2 audio), transcribe_video.py, and the native 4K60 dual-format composer — is embedded directly inside Chapters 2–8 with one-click Copy buttons.1. Introduction & 8-Stage Local Architecture
Every creator hits the same wall: you record a 45-second talking-head take on a webcam in an ordinary room, and suddenly you are paying monthly subscriptions for cloud video editors, fighting ugly virtual green-screen halos, erasing an office chair headrest frame-by-frame, fixing off-lens eye contact, color-correcting sickly webcam skin casts and under-eye shadows, cleaning room reverb, syncing captions, and rebuilding the entire timeline twice for widescreen (16:9) and vertical (9:16) feeds.
Instead of paying for cloud video editors or fighting brittle SaaS pipelines, I used Gemini 4 Neon inside Antigravity to build a 100% local, zero-click AI video studio running directly on Apple Silicon. You feed it one raw bedroom clip, and it outputs native 4K60 (3840x2160 widescreen + 2160x3840 vertical) masters with zero-click chair removal, soft temporal hair matting, Rembrandt studio relighting, native Apple MLX neural eye contact, zero-flicker Cinema FX3 frequency-separation face polish, 48 kHz neural speech dereverb (-14.0 LUFS), and 2x Retina active word captions — with zero cloud GPU bills and zero footage uploaded to third-party servers.
Everything is self-contained inside this handbook. We are not pointing you to an external template repo — every production script (
setup.sh, the bezel-lockedteleprompter.html,matte_video.py, the full Apple MLX LivePortrait Eye Contact + Cinema FX3 Face Polishstudio_enhance.pyengine,MossFormer2_SE_48Kneural audio mastering,transcribe_video.py, and the native4K60dual-format composer) is included verbatim in Chapters 2 through 8 with one-click Copy buttons.
End-to-End 8-Stage Local Pipeline
Critical Architecture Rule: Enhance 30 fps Studio A-Roll Before 4K60 Compositing
Never run neural eye contact or face polish on the final composited 4K60 timelines. Always run them once on your clean 1920x1080 @ 30 fps studio A-roll immediately after matting and relighting — before dual-format 4K60 assembly:
- 4× Faster With Zero Redundant Compute: A
4K60master has twice as many frames (60 fps) and two separate timelines (16:9+9:16). Runningstudio_enhance.pyonce on the single1920x1080 @ 30 fpsstudio take feeds both the832x832corner Studio PiP (16:94K60,1.17xsupersampled!) and the2160x1804bottom split (9:164K60) from one single pass. - Maximum Neural Detail With Zero Tracking Collisions: LivePortrait internally synthesizes a
512x512aligned face crop and composites strictly inside the two eye sockets, so1080pstudio A-roll already saturates its full neural resolution—while keeping single-face tracking completely isolated from B-roll clips, captions, or secondary speakers on the main stage.
Why Local Apple Silicon Beats Monthly Cloud Editors
| Capability | Typical Cloud Video SaaS | This Local Apple Silicon Pipeline |
|---|---|---|
| Recurring cost | $24–$65 / month + export credits | $0 / month after one-time local model downloads |
| Chair & prop removal | Manual rotoscoping or ugly blur halos | Zero-click text prompts (+person, +microphone arm, -office chair) via Meta SAM 3 |
| Hair & beard edges | Hard plastic cutouts or green-spill edges | Soft temporal alpha via MatAnyone 2 + 5-frame motion-adaptive stabilization + fingertip hole-fill |
| Eye contact correction | Cloud credit burn, watermarks, or uncanny 2D eye warps | Native Apple MLX fp32 LivePortrait 3D eyeball + eyelid synthesis with empirical head-turn VOR & blink gating |
| Face & skin cleanup | Waxy beauty filters or flickering GAN face swappers | Zero-flicker Cinema FX3 frequency separation — under-eye soft lift, seamless de-green skin tone (face/ears/neck), 100% real pores & beard intact |
| Studio lighting & audio | Flat cutout + basic noise gate | Grade B Rembrandt LAB sculpting, atadenoise shadow cleanup, ClearerVoice MossFormer2_SE_48K dereverb + -14.0 LUFS mix |
| Multi-platform outputs | Re-edit separate 1080p timelines for X & IG |
Single-pass native 4K60 (3840x2160 + 2160x3840) BT.709 masters + Metal Whisper word JSON & .srt |
Hardware, Storage & Speed Benchmarks
Tested on Apple Silicon (M2 Pro / M3 Max / M4 Max / M5 Max with Unified Memory, macOS 14+):
| Component | Local Footprint | Runtime for a 50s 1080p Take |
Hardware Engine |
|---|---|---|---|
facebook/sam3 (bfloat16, --sam3-stride 15) |
~3.44 GB (~/.cache/huggingface) |
~35–45 s (fast keyframe SAM 3) | PyTorch MPS |
PeiqingYang/MatAnyone2 |
~140 MB (model.safetensors) |
~22–35 s (8-frame warmup + temporal pass) | PyTorch MPS |
ffmpeg atadenoise (temporal chroma denoise) |
Built-in ffmpeg |
~6 s (U/V shadow chroma only) | Multi-core CPU |
FasterLivePortrait-MLX (fp32, 5 neural nets) |
~500 MB (.npz weights) |
~2.6 min (0.15 s load, ~106 ms/f on M5 Max) |
Native Apple MLX |
| MediaPipe 478-pt VOR + Cinema FX3 Face Polish | ~3.6 MB (face_landmarker.task) |
~1.5 min combined with MLX pass (~4.4 min total 1–4) | CPU + NumPy/OpenCV |
ClearerVoice (MossFormer2_SE_48K) + -14 LUFS |
~222 MB (open weights) | ~10 s for 50 s of 48 kHz studio voice | PyTorch MPS / CPU |
whisper-cpp (ggml-base.en.bin) |
~142 MB (~/.cache/whisper) |
~1.6 s for word-level timestamps + .srt |
Apple Metal |
Dual Native 4K60 Compositor (x264 High L5.2) |
Pure Python + OpenCV + ffmpeg |
~60–90 s for both 16:9 + 9:16 4K60 |
Multi-core CPU |
Speed Multiplier Trick: Because
studio_enhance.pyruns in pure Apple MLXfp32on a single30 fpsmatted take (~4.4 min total for all 4 enhancement stages on M5 Max), you run it once and feed both the widescreen16:94K60and vertical9:164K60masters automatically.
What You Will Unlock in Chapters 2–8
- Chapter 2: Complete one-command Apple Silicon
setup.shinstalling PyTorch MPS, Meta SAM 3, headless MatAnyone 2, Apple MLX +FasterLivePortrait-MLX, MediaPipe 478-pt FaceLandmarker, ClearerVoiceMossFormer2_SE_48K,ffmpeg, and Metalwhisper-cli. - Chapter 3: Complete self-contained bezel-locked webcam teleprompter (
teleprompter.html+ launcher script) calibrated right beneath your camera lens at Speed 24. - Chapter 4: The complete 440-line
matte_video.pyengine — SAM 3 text-prompt masks, MatAnyone 2 soft hair propagation, motion-adaptive anti-flicker, fingertip hole-fill, Rembrandt relighting, and anti-banding 35mm grain. - Chapter 5: The complete
studio_enhance.pyCinema Polish & Eye Contact engine — temporal chroma denoise, Native Apple MLXfp32LivePortrait neural eye-socket retargeting with empirical VOR head-turn calibration & blink gating, plus Cinema FX3 frequency-separation face/skin/under-eye/teeth polish (zero GAN flicker, 100% real pores & beard intact). - Chapter 6: ClearerVoice
MossFormer2_SE_48K48 kHz neural dereverb/denoise +-14.0 LUFSbroadcast mixing chain + fulltranscribe_video.pyMetal Whisper word-level transcriber. - Chapter 7: Complete native
4K60dual-format composer (3840x2160with blurred rounded-corner Studio PiP shadow +2160x384053/47Editorial Split inside Instagram safe zones) and2Kthumbnail spec. - Chapter 8: Copy-paste prompt blueprints for directing the full 8-stage studio with Gemini 4 Neon inside Antigravity + a 14-row forensic troubleshooting matrix.
Inside Chapters 2–8 (Included Free With Email Unlock)
Click any chapter to unlockLoading your unlocked Chapters 2–8…
Unlock Chapters 2–8 + All Future Engineering Guides
We’ll email you a 1-click link to unlock all remaining chapters right here in your browser for 90 days, plus activate Ashutosh’s free AI Compass daily AI news emails (1-click unsubscribe anytime).