Skip to content
emptyinkpotPublic

About

基于 Remotion 的 AI 文本生成视频工具:输入文案,自动配音、分镜、匹配素材并渲染成片;platform/ 为仿花生的在线产品形态

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

FuckVideo

Code-driven Remotion animation templates for previewing and rendering in Remotion Studio.

Run

Double-click start.bat in the project root to check the installed Remotion packages, update them when a newer version is available, and start Remotion Studio. If the update fails, the script reports the failure and starts with the packages already installed. The console shows startup logs and stays open while Studio is running. Press Ctrl+C in that console to stop Studio.

The update check covers the Remotion packages used by the project. Other dependencies stay at the versions recorded in package.json and package-lock.json.

To start Studio from a terminal instead:

npm install
npm run dev

Render a bundle with npm run build. Run npm run verify:upstream for lint, type checking, and a still render of each registered composition.

Commit and push

Double-click push.bat in the project root to commit every change in the working tree and push it. The script (push.ps1) asks three questions:

  1. Branch: it lists the remote branches. Enter a number, or type a new branch name. Press Enter to use the remote's default branch.
  2. Description: the commit message. Press Enter to commit without a message.
  3. Tag: an annotated tag name. Press Enter to skip tagging.

If the chosen branch is not the current one, the script carries the uncommitted changes over to it and commits only the files that had changes before the switch, so files ignored on the current branch (such as src/earth3d/assets/) are not picked up by a different .gitignore. It refuses to commit any single file over 50 MB. Pushes go over HTTPS first and fall back to SSH. When the Git LFS pre-push check cannot reach GitHub, the script skips that check only if the outgoing commits add no LFS files. It never force-pushes: if the remote branch has commits that are not local, it stops and keeps the local commit.

Project Layout

  • src/Root.tsx registers the compositions shown in Studio.
  • src/templates/ contains reusable 2D, 3D, map, and historical animation components.
  • engine/ centralizes offline data building, validation, resource scanning, dependency updates, and CLI rendering (sync.bat, scan.bat, update.bat, render.bat, build_all.py, scan_earth3d.py, manifest.py, assets.sha256, and all fetch_*.py / build_*.py / railways*_source.py scripts).
  • src/earth3d/ contains the runtime 3D Earth engine, layers, historical database, raw GeoJSON boundaries (data/), built assets (assets/), and local download/venv cache (src/earth3d/.cache/, gitignored). start.bat calls engine/sync.bat --if-needed and engine/update.bat on every launch; engine/sync.bat runs a full check against engine/assets.sha256 and refreshes engine/earth3d-catalog.log. See src/earth3d/README.md and CLAUDE.md.
  • public/fonts/ holds the fonts every animation uses (Inter, Noto Sans SC, Noto Serif SC, all SIL OFL, licenses alongside). src/fonts.ts loads them before any frame is captured, so renders do not depend on the fonts installed on the machine.
  • public/images/vinyl-cover.jpg is the default VinylPlayer cover (an Unsplash photo), stored locally so the render does not need the network.
  • asset-source/remotionlab/ keeps local .tsx animation references. These examples are not loaded by the Remotion bundle.
  • asset-source/programmatic-visual-assets/ contains code-animation references and attribution.

Remotion is installed as an npm dependency. This repository uses its public APIs and keeps animation implementation under src/.

About

基于 Remotion 的 AI 文本生成视频工具:输入文案,自动配音、分镜、匹配素材并渲染成片;platform/ 为仿花生的在线产品形态

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages