IICSM Linux AI Movie Starter - 2026-11-01
Guide: https://iicsm.org/aidevel/

Use Python 3.11+ in a virtual environment. movie_agent.py uses only Python's
standard library. No LLM/video model weights or ComfyUI workflow are included.
This is a small example orchestration program, not a complete film studio.

1. Install Ollama and pull qwen3:4b. Review/edit story-bible.txt.
2. python movie_agent.py plan --idea "Rook discovers a flower in the greenhouse"
   Review scenes/scene01.json. It contains six five-second shots, a 30-second pilot.
3. Install ComfyUI and the official Wan2.2 5B workflow and its model weights.
   Render one shot manually; set frame count/resolution/fps in the workflow.
4. Export the working workflow in API format as workflow-api.json here.
5. python movie_agent.py inspect workflow-api.json
   Copy bindings.example.json to bindings.json. Replace placeholders with the
   actual positive text input and seed input IDs shown by inspect. Bind literal
   values, not node connection arrays. Some templates use noise_seed instead of
   seed. This example supports simple node IDs, not nested subgraph exports.
6. python movie_agent.py render --plan scenes/scene01.json --shot scene01-001 --seed 42 --submit
   Existing job.json is reused on rerun; it is not submitted twice after polling
   timeout. A connection failure during the initial POST can have an ambiguous
   outcome: inspect the ComfyUI queue/history before trying again. Keep ComfyUI's
   history; if lost, inspect the server output folder and recover the take manually.
   Each workflow must expose exactly one saved MP4. The script holds the manually
   tested frame count/resolution/fps and reference image fixed. Change and review
   these yourself for a new shot type. It never approves its own rendered clips.
7. Review motion, consistency, framing and duration. Select accepted clips manually.
   To make a new take, choose a new seed. Preserve rejected attempts separately.
8. Follow the guide's FFmpeg normalization/concat commands, audio workflow,
   timeline verification and export checklist. Start with the 30-second pilot.

Verification: Python syntax, mock Ollama/ComfyUI API flow, timeouts, malformed
plans, workflow binding, and shell-command syntax checked in the authoring environment.
Actual Linux installation, GPU inference, fine-tuning, voices, FFmpeg encoding and full movie
production were not executed for this documentation release.

Use loopback-only services. Do not expose these unauthenticated endpoints to
the Internet. No arbitrary shell commands, billing APIs, cron jobs, browser
automation, uploads or publication are performed by movie_agent.py.

Before a long run, record the model names/hashes, ComfyUI Git commit, exported
workflow, seeds, package versions, prompts, source licences and accepted takes.
