正在自动登录…
← 返回项目列表mrsarac/
mrsarac/ ff-tracking
这是一个用代码生成视频的示例项目,展示如何通过fframes和Skia Metal渲染一个AI代理在终端打字的动画,包含虚拟摄像机、跟踪框和合成音效。适合对程序化视频生成和fframes库感兴趣的开发者参考。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/17 09:36:19 · 查看原文
- 累计 Stars
- 506
- 当前热度
- 未达当前门槛
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/17 09:36:19
- 使用方式
通过命令行运行render.sh脚本生成视频,也可使用fframes CLI工具进行预览、提取帧等操作。
查看 README 依据
render pipeline, see [Windows setup](docs/WINDOWS.md). The macOS instructions follow. Requirements: macOS with Apple silicon (Skia on Metal), Rust, ffmpeg, Python 3 with `numpy` and `scipy`. The README images also need Pillow and `img2webp`. ```bash git clone https://github.com/mrsarac/ff-tracking && cd ff-tracking tools/render.sh # → out/tracking.mp4 ``` `render.sh` builds the workspace, exports the tracks, renders pass 1, synthesizes the sound and renders pass 2. It takes about 40 s on an M3 Pro, plus the first build.
Every pass is an fframes CLI, so the usual tools work on each of them: ```bash target/release/lens strip all -n 12 # contact sheet of the final video target/release/lens frame 81 -o frames # one full-size frame target/release/lens preview # real-time window with sound target/release/lens audio analyze # loudness, true peak LENS_STAGE=1 target/release/lens frame 81 # stop the shader after a step (0-3), as in the image above python3 -I tools/readme_media.py # rebuild the images in this README ``` ## Slab score
- 部署要求
需要macOS(Apple silicon,Skia on Metal)、Rust、ffmpeg、Python 3(含numpy和scipy)。Windows支持Vulkan,但需参考Windows setup文档。
查看 README 依据
[Slab](https://github.com/nooga/slab): a darker, heavier piece at 120 BPM, so every cut lands on a beat. It reads the same `out/tracks.json`, plus `out/camera.json` from the `camera` binary, so the mix follows the lens. The tracked box pans the lock blips and keystrokes, the screen's slide pans the pad, riser and glitches, each zoom push opens the bass filter, and the red lock frames tear the bass. See [Slab score](#slab-score). ## Quick start macOS uses Metal; Windows uses Vulkan. For Windows requirements and the PowerShell
render pipeline, see [Windows setup](docs/WINDOWS.md). The macOS instructions follow. Requirements: macOS with Apple silicon (Skia on Metal), Rust, ffmpeg, Python 3 with `numpy` and `scipy`. The README images also need Pillow and `img2webp`. ```bash git clone https://github.com/mrsarac/ff-tracking && cd ff-tracking tools/render.sh # → out/tracking.mp4 ``` `render.sh` builds the workspace, exports the tracks, renders pass 1, synthesizes the sound and renders pass 2. It takes about 40 s on an M3 Pro, plus the first build.
- 已知限制
README提到shader无法采样同一帧的SVG子树,因此需要两遍渲染;另外,Slab score需要外部Slab工具才能重新渲染。
查看 README 依据
`.image("iChannel0", &frame.get_synced_video_frame(..)?.into_image())`. That is what makes the two-pass camera possible. - `flat` is a reserved word in SkSL (a GLSL ES interpolation qualifier), so name helpers something else. - At the `Video` level, never return `Svgr::empty()`; return a root `<svg>`. An empty root is an error, and late in a Skia render it surfaces only after the encoders drain ([fframes#209](https://github.com/dmtrKovalenko/fframes/issues/209)). - The two passes exist because a shader can't yet sample an SVG subtree of the same frame.
`tools/score.sh` is `render.sh` with the Slab score in place of `sfx.py`: ```bash tools/score.sh # uses the committed render, score/score.wav SLAB=/path/to/slab tools/score.sh # renders the score again from Rust SLAB=/path/to/slab SCORE_IMPL=python tools/score.sh # original Python reference ``` Rendering needs a [Slab](https://github.com/nooga/slab) checkout built with `zig build -Doptimize=ReleaseFast`. The Rust `score` crate uses the MIT-licensed [slabkit-rs](https://github.com/nooga/slabkit-rs) library to write the project
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/9 19:12:47
- 首次达标收录
- 2026/10/10 09:27:18
- 统计更新时间
- 2026/10/22 19:05:54
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
普通加权总分 3.8 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/17 09:36:20 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/15 06:48:00
- 许可证标识
- MIT
- Fork 数
- 31
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目