[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116206":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":40,"updatedAt":41,"readmeContent":42,"aiSummary":43,"trendingCount":15,"starSnapshotCount":15,"syncStatus":44,"lastSyncTime":45,"discoverSource":46},116206,"ai-filmmaking-camera-control-seedance-2-5","sirioberati\u002Fai-filmmaking-camera-control-seedance-2-5","sirioberati","AI filmmaking camera control with Seedance 2.5 and three.js: direct the camera with a reference video. 137 cinematic camera moves and templates, prompts, Tein MCP and API setup. Get a Seedance 2.5 key: https:\u002F\u002Ftein.ai","https:\u002F\u002Ftein.ai",null,"TypeScript",157,35,69,0,3,59,12,76.57,"MIT License",false,"main",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"ai-filmmaking","ai-video","camera-control","camera-movement","cinematography","filmmaking","mcp","previs","prompt-engineering","reference-video","remotion","seedance","seedance-2-5","tein","threejs","video-generation","2026-11-07 21:49:11","2026-11-23 18:16:02","# AI filmmaking camera control with Seedance 2.5 and three.js: the pill pipeline\n\n**Direct the camera of an AI film made with Seedance 2.5, with a 3D camera you wrote in code.** 137 filmmaking camera moves: dolly, crane, orbit, whip pan, FPV, one-takes, action and famous shots. The move, speed, framing and cuts come from your code, not from the model's guess. The model still makes the people and the place.\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fhero-three-stages.gif\" alt=\"Left: the 3D pill clip we send. Middle: the same move drawn as a sketch. Right: the real video Seedance 2.5 made\" width=\"100%\">\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Csub>Left: the pill clip we send. Middle: the sketch route, the same move drawn. Right: the real video Seedance 2.5 made from it.\u003C\u002Fsub>\u003C\u002Fp>\n\nThe trick is one sentence: **a reference video carries two things, where the camera goes and how the bodies move, and the model copies both. So give it a camera to follow and nobody to copy.** Every person and product in the 3D clip is a striped pill. The pill gives the model the place, the size, the facing and the timing, and has no body to copy. The prompt says what everything really is.\n\n**Run it on Tein:** Seedance 2.5 is generated through [Tein](https:\u002F\u002Ftein.ai). [Sign up at tein.ai](https:\u002F\u002Ftein.ai), create an API key, and use the Tein MCP or API (setup in [docs\u002Ftein-endpoint.md](docs\u002Ftein-endpoint.md), the full reference in [docs\u002Ftein\u002F](docs\u002Ftein\u002F)). This repo never stores a key.\n\nThis repo is the whole pipeline: the three.js engine, **137 templates** with their code, pill clips, prompts and Seedance results, the 24 places, what we learned, and the Tein setup for generating the videos.\n\n**Words used here.**\n\n| Word | Meaning |\n|---|---|\n| Pill | A striped capsule or pin, as tall as the person it stands for. It replaces a person in the 3D clip. It has no limbs. |\n| Pill clip | The grey 3D clip you render: set, pills and the camera move. This is the reference video. |\n| Template | One camera move or shot as a small code file, with its pill clip, prompts and results. |\n| Draft | A 480p preview made with `draft: true`. It costs less, and can be finalized later. |\n| Sketch route | Sending a contact sheet of drawn frames instead of the video. |\n\nTein (tein.ai) hosts Seedance 2.5 and runs the gallery this repo grew from. You need your own Tein account and key; this repo never stores one. Made by Sirio Berati, TEIN AI.\n\n## How it works\n\n| 1. Build the move in code | 2. People become pills | 3. The model makes the shot |\n|---|---|---|\n| A grey 3D set and a camera path, written in three.js (no Blender). One small file per template. | Each person is a striped pill, as tall as they are, with a white dot where their eyes face. No body to copy. | The pill clip goes to the model with your photo and a prompt. It returns the real shot, keeping the same camera move. |\n\n## See it\n\nEvery card: the 3D pill clip on top, what Seedance 2.5 made from it below (draft quality, 480p). Click one for its code, its prompt and how it was sent.\n\n\u003Ctable>\n\u003Ctr>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FCAM06-Orbit\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FCAM06-Orbit.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>CAM06-Orbit: Orbit\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FCAM05-DollyZoom\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FCAM05-DollyZoom.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>CAM05-DollyZoom: Dolly zoom\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FCAM16-FPV\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FCAM16-FPV.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>CAM16-FPV: FPV drone\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FCAM28-BarrelRoll\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FCAM28-BarrelRoll.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>CAM28-BarrelRoll: Barrel roll\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FCAM21-PanReveal\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FCAM21-PanReveal.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>CAM21-PanReveal: Pan reveal\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FCAM25-ArcAndRise\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FCAM25-ArcAndRise.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>CAM25-ArcAndRise: Arc and rise\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FOBJ16-ProductSpin\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FOBJ16-ProductSpin.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>OBJ16-ProductSpin: Product spin\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FACT01-BulletTimeOrbit\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FACT01-BulletTimeOrbit.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>ACT01-BulletTimeOrbit: Bullet-time orbit\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FSC04-CarInterior\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FSC04-CarInterior.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>SC04-CarInterior: Car interior\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FFAM01-Booth360\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FFAM01-Booth360.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>FAM01-Booth360: 360 booth spin\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FPRD06-Glambot\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FPRD06-Glambot.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>PRD06-Glambot: Glambot\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003Ctd width=\"50%\">\u003Ca href=\"templates\u002FSC07-AlleyFight\u002F\">\u003Cimg src=\"docs\u002Fassets\u002Fshowcase\u002FSC07-AlleyFight.gif\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Csub>\u003Cb>SC07-AlleyFight: Alley fight\u003C\u002Fb>\u003C\u002Fsub>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftable>\n\nAll 137 templates, with a preview each: [templates\u002FINDEX.md](templates\u002FINDEX.md).\n\n## The same move, six inputs\n\nOne move (an orbit round a walking man) sent six ways. The pill is the one that keeps the camera exact and the people natural.\n\n| What we sent | What the model made |\n|---|---|\n| \u003Cimg src=\"docs\u002Fassets\u002Flooks-CAM06-Orbit-inputs.gif\" width=\"100%\"> | \u003Cimg src=\"docs\u002Fassets\u002Flooks-CAM06-Orbit-outputs.gif\" width=\"100%\"> |\n\nWhy each one was kept or dropped: [docs\u002Fvariants.md](docs\u002Fvariants.md) and [docs\u002Ffailure-ladder.md](docs\u002Ffailure-ladder.md).\n\n## Two routes: the video, and the sketch\n\nThe pill **video** is the exact route: every cut lands on the frame. The **sketch** route draws the same scene as a contact sheet of frames: cheaper and more natural, but a sheet has no clock, so cuts drift by about half a second.\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Froutes-CAM06-Orbit.gif\" alt=\"The pill clip, what it made, and what the sketch sheet made\" width=\"60%\">\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cimg src=\"templates\u002FCAM06-Orbit\u002Fsketch-sheet.jpg\" alt=\"The contact sheet that was sent\" width=\"60%\">\u003Cbr>\u003Csub>The contact sheet that was sent for the sketch route.\u003C\u002Fsub>\u003C\u002Fp>\n\nThe numbers, and when to use which: [docs\u002Fwhy\u002Fwhy-video-first-sheet-second.md](docs\u002Fwhy\u002Fwhy-video-first-sheet-second.md).\n\n## Try it in ten minutes\n\nYou need Node 22.12 or newer, ffmpeg, and network access once (Remotion downloads a headless Chrome on the first render). The first install and render take a few minutes.\n\n```bash\ncd engine\u002Fcinematic && npm install\ntools\u002Frender-pill.sh CAM06-Orbit        # a 7 s, 24 fps, 21:9 pill clip, written to .work\u002Fout\u002Fpill\u002F\n```\n\nThe `pill.mp4` files in this repo are smaller gallery copies (mostly 960 wide); the render script above makes the full 1280x534 clip, and `sent.json` records the size that was sent.\n\nOpen `templates\u002FCAM06-Orbit\u002F`: `template.ts` is the shot as code, `prompts\u002F` holds the prompts (`sent.json` says which are the text that was sent and which are recovered or rebuilt copies), and `sent.json` holds the references in order and the settings. Send it as a draft through Tein's Seedance 2.5 (see [docs\u002Ftein-endpoint.md](docs\u002Ftein-endpoint.md)): the pill clip is `reference_video`, your photo is `reference_image`. Judge the draft against the pill clip before you finalize anything.\n\n**Build your own template** in about 12 lines: [docs\u002Fbuild-your-own-template.md](docs\u002Fbuild-your-own-template.md).\n\n## Use it with Tein's MCP or API\n\nGenerating a video goes through Tein's Seedance 2.5, either as the Tein MCP or as the API. Both need a Tein key from tein.ai; this repo never stores one. The setup is in [docs\u002Ftein-endpoint.md](docs\u002Ftein-endpoint.md): getting a key, the two MCP servers, the request for a template, drafts and finalizing, limits and costs. A separate helper project (an MCP and a skill that guide a beginner through all of this) is not part of this repo.\n\n## What is in the repo\n\n| Folder | What it holds |\n|---|---|\n| `engine\u002Fcinematic\u002F` | The renderer: three.js inside Remotion, the stand-ins, the rigs, the checks. The CC0 rig is in `public\u002Fkit\u002F`. |\n| `templates\u002F\u003CID>\u002F` | One folder per template: `template.ts`, `pill.mp4`, `preview.gif`, `prompts\u002F`, `sent.json`, `README.md`, `reproduce.md`, and the sketch sheet where that route was used. 75 pill clips use the single capsule and 62 the pin (a head on a slim body); each README says which. |\n| `docs\u002F` | The method, the why pages, every rule, the failures and fixes, the prompt anatomy, the Seedance and Tein notes, costs, QA. Start with [docs\u002Fidea.md](docs\u002Fidea.md). |\n| `tools\u002Fseedance\u002F` | The sketch-sheet maker, the prompt builders and gates, and the video checks (camera, cuts, framing, speech, mouth). |\n| `answers\u002F` | 137 questions about the method, each answered with its evidence and a status; 4 are marked UNPROVEN. |\n| `environments\u002F` | The 24 place references and their moods. |\n| `skills\u002Fcinematic-previs\u002F` | The skill behind the engine's checks: the camera and cut rulebook and the stills-first QA loop. |\n| `gallery\u002F` | The one-page gallery: open `gallery\u002Findex.html`, nothing to install. |\n\nLarge result videos are release downloads, not files in git: download `camera-control-results.zip` from the [v0.1.0 release](https:\u002F\u002Fgithub.com\u002Fsirioberati\u002Fai-filmmaking-camera-control-seedance-2-5\u002Freleases\u002Ftag\u002Fv0.1.0) and unzip it at the repo root to get `release-media\u002F`. The whole clone is about 440 MB. What does not work yet, and what was never tested: [docs\u002Fknown-limits.md](docs\u002Fknown-limits.md).\n\n## Things that matter most\n\n- Name every stand-in in the prompt and say no pill ever appears in the result.\n- Rebuild the set in words. Without it the model copies the grey cones, boxes and spheres.\n- Move the camera in every clip you send, and hold every shot and every camera effect for 2 seconds or more. The locked-off templates (CAM01, CAM26, CAM29, CAM30, CAM46, FAM03, the ANG family) are kept as camera studies, not as templates to send. A few older templates have shots under 2 s; they were built before the rule.\n- A conversation needs exact spoken lines in their own block near the top of the prompt.\n- Never finalize a draft until the draft is right.\n\n## Licence and credits\n\nCode, prompts, notes and the pill clips are MIT ([LICENSE](LICENSE)). The rig is CC0 by Quaternius. Remotion has its own licence: free for individuals and small companies, a company licence for larger for-profit teams. Read [NOTICE.md](NOTICE.md) before you use this at work: it also covers the camera presets, the faces in the examples and the brand marks in the product shots.\n\nMade by Sirio Berati. Rendered with three.js and Remotion. Examples made with Seedance 2.5.\n","这是一个面向AI影视制作的相机运镜控制工具，通过Three.js生成无角色干扰的3D参考视频（含137种预设电影级运镜模板），驱动Seedance 2.5模型精准复现指定镜头运动。核心特点是采用‘药丸’（pill）抽象体替代人物，仅传递空间位置、朝向、时序与构图信息，避免模型对肢体动作的误学习；支持Tein MCP\u002FAPI集成，实现代码化运镜定义与端到端视频生成。适用于AI视频预演（previs）、自动化分镜生成、影视教学演示及创意导演辅助等需要高精度相机控制的场景。",2,"2026-11-24 04:53:09","CREATED_QUERY"]