Logo Motion From Reference

Motion From Reference

Tổ chức
sub-level
motion-from-reference

Build a film's motion grammar by measuring a reference film frame by frame instead of eyeballing it. Use when someone says "make it like THIS video", when type animation looks like a slideshow instead of motion design, or when a cut feels slow/cheap next to the reference. Covers frame extraction, measuring type and timing, the continuous-geometry rule, casting your own story into a borrowed grammar, and the verification loop.

Tổng quan

Nhà phát hànhsub-level
Kho mãmarketing-videos
Tên kỹ năngmotion-from-reference
Sao
72
Bản fork
9
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được sub-level công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Motion From Reference trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/sub-level/marketing-videos/tree/main/.claude/skills/motion-from-reference
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sub-level/marketing-videos.git /tmp/marketing-videos
mkdir -p .claude/skills
cp -r /tmp/marketing-videos/.claude/skills/motion-from-reference .claude/skills/motion-from-reference
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Motion From Reference trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Motion From Reference ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Motion From Reference với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Motion From Reference

Someone hands you a video and says "like this". The failure mode is to watch it four times, form an impression, and build the impression. The impression is always wrong in the specific ways that matter: the type is smaller than you think, the holds are shorter than you think, and the thing that made it feel expensive was one continuous move you did not consciously see.

So do not build the impression. Extract every frame and measure it. A 26 second reference is under 800 frames, and the four moments you actually need to understand are maybe 200 of them. An afternoon of measuring produces numbers you can type into tokens.ts, and numbers survive the "can you make it feel more like the reference" note that eyeballing never does.

What you copy and what you do not

You copy grammar: pacing, how type arrives and leaves, how geometry moves, what the camera does, where silence sits. Grammar is not ownable and every title sequence in the world is built from borrowed grammar.

You do not copy content, assets, music, or a shot-for-shot recreation that passes for the original. Your story, your words, your footage, your brand, your track.

Write the grammar down in prose before you write any code. If you cannot describe the move in a sentence that contains numbers, you have not finished measuring.

Step 1: extract and measure

bash
# every frame, named by index
ffmpeg -i reference.mp4 -vsync 0 frames/%04d.png
ffprobe -v error -select_streams v -show_entries stream=r_frame_rate,width,height,nb_frames \
  -of default=nw=1 reference.mp4

Then measure the four things that carry a film. references/measure-reference.md has the copy-paste Python for each.

  1. Type size, as a ratio. Measure the CAP HEIGHT in pixels and divide by the frame height. Never trust the studio preview: a line that looks right on a 27 inch monitor is small on a phone. One real measurement: a 62px cap on a 1080-high frame, which is an 84 to 88px font at that weight, and the big words ~96px. If your film reads "smaller than the reference", this is almost always why.
  2. The type-on. Diff consecutive frames to find the frame each letter appears. Expect roughly one letter per frame, with a two-frame breath after each space and the odd one-frame hitch mid-word. Perfectly even letters read mechanical.
  3. The type-off. This is where references are won and lost. Measure the visible ink's left and right edges per frame through the exit. One measured exit: over 13 frames the left edge runs RIGHT until ~70% of the line is gone, through a soft edge about eight letters wide, while the whole line drifts DOWN about half a cap height on an ease-in and the standing part dims slightly; then it SNAPS out rather than fading to zero. Implemented in src/lib/TypedLine.tsx.
  4. Hold lengths. Count frames from "fully arrived" to "starts leaving" for every card. Holds are shorter than they feel. If your cut runs 58 seconds against a 26 second reference, the holds are the problem, not the content.

Step 2: the continuous-geometry rule

The single most valuable thing measurement reveals: in good motion design the geometry never restarts.

The naive build of "three words with line art" fades each word in at its final size inside its own fresh circle, and cuts to the next. It reads as SLIDES, every time, no matter how good the easing is. What the reference actually does is keep ONE piece of geometry alive across every word:

word 1   a GIANT hairline outline of the word, wider than the frame, inside a dashed
         circle bigger than the frame. Word and circle SHRINK together on one ease-out
         (44 frames, measured) down to the small word. At the end of the collapse the word
         HARD-FILLS solid - a cut, not a fade - and dashed rails run out of the circle
         to both frame edges.
word 2   hard word cut, but THE SAME CIRCLE: its dashes close up into a solid line, it
         grows, and two more circles slide out of it to the sides into a Venn that keeps
         drifting apart.
word 3+  the side circles slide off the edges while the words crossfade MIRRORED: old
         letters fade left-to-right while new ones arrive right-to-left dim, then
         brighten left-to-right. Two opposite waves in one beat.
last     the line leaves as a whole-line fade with a scale-up and a blur, written as an
         exit so the next element can start UNDERNEATH it.

Working implementation: src/lib/GeometryWords.tsx, demonstrated in src/grammar/.

The general principle generalizes past circles: a new element should be born out of the element it replaces. When you catch yourself writing a scene that mounts fresh shapes at their final size, you are writing a slideshow.

Step 3: cast your story into the grammar

Write a casting table that maps every reference beat to your own content, in order, with the same FUNCTION. Do not reorder; the order is part of the grammar.

Reference beatIts jobYour content
Opening typed linethe announcementyour launch sentence
Macro device corner, app updatingthe product arrivingyour product, same framing
Three value words in geometrythe promiseyour beats, one per word
Device rises, camera pushes inthe proofyour real recordings
Closing typed linethe identityyour brand line
Logo lockupthe signatureyour lockup
Two-word closethe callyour two words

Note the symmetry worth keeping: the opener is the ANNOUNCEMENT ("Rebuilt for X") and the close is the IDENTITY ("Built for Y"). Swapping them makes the film feel like it starts in the middle.

If a reference beat has no equivalent in your product, cut it rather than invent filler. A 33 second film in a 26 second grammar is fine; a 58 second one is a different film.

Step 4: build it as data

Everything measured goes into tokens.ts as named constants with the measurement in the comment, not as magic numbers inside a scene:

ts
// Frames per word, measured: word 1 carries the 44-frame collapse of its giant
// outline and circle, then holds; the rest are short holds; the last holds a few
// frames longer while the device rises under it.
export const WORD_FRAMES = [70, 36, 36, 36, 40] as const;

A future note of "slow it down and match exactly" is then a diff of numbers, not a rewrite. That note WILL come.

Step 5: verify against the reference, not against taste

  • Render your frames and put them side by side with the reference frames at the same beat. ffmpeg -i mine.mp4 -vf "crop=..." -frames:v 1 plus the extracted reference frame, stacked with hstack.
  • Frame-step every morph. A move that "snaps" instead of animating is invisible at 1x and obvious at 4 frames per second.
  • Check the type ratio on a phone-sized render, not in the studio.
  • Watch both cuts back to back at 1x with sound. If yours feels longer, it is.

Honest limits

  • The reference's own spend is invisible. A 3D phone that took three days of material setup reads as one shot. Budget for the thing you cannot see.
  • Some moves are keyframed by hand over hours in After Effects and are genuinely cheaper to approximate than to reproduce. Approximate deliberately and say so.
  • A grammar borrowed whole from a famous film will be recognized. That is usually fine (grammar is shared) but it is a positioning choice, so make it on purpose.

Pair with: remotion-marketing-video (how to build it), device-3d-stage (when the grammar wants a real device on screen), video-audio-stack (the reference's silence is also measurable, and is usually more silent than you think).

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Motion From Reference làm được gì?

Build a film's motion grammar by measuring a reference film frame by frame instead of eyeballing it. Use when someone says "make it like THIS video", when type animation looks like a slideshow instead of motion design, or when a cut feels slow/cheap next to the reference. Covers frame extraction, measuring type and timing, the continuous-geometry rule, casting your own story into a borrowed grammar, and the verification loop.

Vì sao nên dùng Motion From Reference trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Motion From Reference là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Motion From Reference trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/sub-level/marketing-videos/tree/main/.claude/skills/motion-from-reference. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Motion From Reference?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Motion From Reference với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Motion From Reference với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Motion From Reference có miễn phí không?

Có. Kỹ năng này được sub-level phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇