Logo de Frame Capture

Frame Capture

Comunidade
Moh4696
frame-capture

Records any web page (three.js, WebGL, canvas, GSAP, CSS animation, scroll-driven video) to a perfectly smooth 60 fps MP4 by running the page on a virtual clock, one exact frame at a time, and puts two recordings against each other as a labelled stacked or side-by-side comparison. Use when someone wants a video of a site, a demo clip for X or YouTube, a scroll-through, a showcase reel of a 3D scene, or a "model A vs model B" comparison video. Also use when a screen recording of an animated page stutters or drops frames.

Add to TypingMind

Visão geral

Publicado porMoh4696
Repositórioopen-3d-skills
Nome da habilidadeframe-capture
Estrelas
193
Forks
30
Arquivos incluídos
4
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 4

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por Moh4696 no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Frame Capture no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Moh4696/open-3d-skills/tree/main/skills/frame-capture
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Moh4696/open-3d-skills.git /tmp/open-3d-skills
mkdir -p .claude/skills
cp -r /tmp/open-3d-skills/skills/frame-capture .claude/skills/frame-capture
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Frame Capture em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Frame Capture automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Frame Capture não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Frame capture

Screen recorders capture whatever the GPU managed to draw in real time, so a heavy scene stutters and a scroll-through looks hand-held. This skill records differently. Before the page's own scripts run, its clock is replaced: performance.now, Date.now and requestAnimationFrame read a virtual time, CSS animations and transitions are pinned to it, and every <video> is paused and seeked to it. Each output frame advances the clock by exactly 1/60 s, runs one frame, and takes a screenshot. A frame can take two seconds to render and the video still plays at a perfect 60 fps.

Tools

ScriptWhat it does
scripts/record.pyRecords a URL to MP4 with scroll keys, pointer motion and a ready condition
scripts/compare.pyStacks two clips (or sets them side by side) with labels and rounded panels
scripts/serve.pyStatic server that answers HTTP Range requests, so videos can seek

Needs Python 3.9+, pip install playwright pillow, python3 -m playwright install chromium webkit, and ffmpeg on PATH.

Run

  1. Serve the page with scripts/serve.py, never python3 -m http.server. The built-in server ignores Range requests. The browser then cannot seek any video it serves (video.seekable is empty) and every recorded video holds its first frame. record.py warns when it sees this.

    bash
    python3 scripts/serve.py path/to/site --port 8000
  2. Make a fast timing pass first. Ten frames a second shows the choreography in seconds instead of minutes:

    bash
    python3 scripts/record.py http://127.0.0.1:8000/ /tmp/check.mp4 --seconds 20 --fps 8 \
      --scroll "0:0 2.5:0 9:40% 12:40% 19:100%" --pointer drift

    Watch it, adjust the keys, repeat. Only then render the full clip.

  3. Render the final. --size is the CSS viewport and --dpr multiplies it. --size 1920x1080 --dpr 1 makes 1080p; --size 1280x720 --dpr 1.5 makes the same 1920x1080 with a larger layout. Output is H.264, CRF 16, yuv420p, BT.709 tags, faststart, no audio.

    bash
    python3 scripts/record.py http://127.0.0.1:8000/ out.mp4 --seconds 20 --fps 60 \
      --scroll "0:0 2.5:0 9:40% 12:40% 19:100%" --pointer drift --ready "window.__ready === true"
  4. Look at the result before handing it over. Pull frames at the moments that matter (ffmpeg -ss 9 -i out.mp4 -frames:v 1 f.png) and check them: first frame, every scroll stop, the last frame.

Choreography

  • --scroll keys are seconds:position. Positions are pixels (1200), a share of the scroll range (40%) or viewport heights (2.5vh). Segments ease (half linear, half smootherstep, so a long move never sprints in the middle). Add ~ after the time for a linear segment: 9~:60%.
  • Hold on anything the viewer needs to read: give a pinned section or a counter its own key pair with the same position.
  • --pointer drift circles the real mouse slowly round the centre, so hover states, parallax and cursor-following rigs come alive. --pointer 0.7,0.3 parks it.
  • For choreography the page knows best (camera flights, a tour), let the page drive itself: define window.__recordFrame = (t) => { ... } behind a ?record=1 flag. It is called with the virtual time in seconds before each frame. window.__recording is true while recording.
  • Smooth-scroll libraries fight a recorder that sets the scroll position. --kill-lenis stops Lenis from loading. For others, switch them off under ?record=1.

Make the page recordable

  • Time comes from performance.now() or the rAF timestamp, never from setTimeout or setInterval. Timers keep real time while the clock is virtual, so a setTimeout(next, 3000) fires after three real seconds, which might be frame 20 or frame 400. Schedule on the page clock instead:

    js
    const pending = [];
    const later = (secs, fn) => pending.push({ at: performance.now() / 1000 + secs, fn });
    // in the frame loop:
    const now = performance.now() / 1000;
    for (let i = pending.length - 1; i >= 0; i--) if (now >= pending[i].at) pending.splice(i, 1)[0].fn();
  • Expose a ready flag (window.__ready = true after the first rendered frame, textures decoded, fonts loaded) and pass it as --ready. Recording before assets land bakes a loading flash into frame 0.

  • In record mode, hide UI that would not be in a film: hints, cursors, loaders, cookie bars.

  • If WebGL frames come out black or stale, create the renderer with preserveDrawingBuffer: true when recording.

Browsers

  • Chromium (default) runs WebGL on the real GPU headless. On macOS the script adds --use-angle=metal, which renders at full speed; without it Chromium falls back to SwiftShader, which is correct but many times slower.
  • WebKit (--browser webkit) shows how Safari renders: different font smoothing, colour handling and video decoding. Its screenshots occasionally stall at 1080p (about 1 in 100); the script retries, and because the clock is paused between steps the retry returns the identical frame.
  • If Playwright's own Chromium is missing (a version mismatch after an upgrade), the script finds the newest Chromium in the Playwright cache. CHROME_PATH overrides it.
  • Never record in a visible browser tab you are not looking at, and never in a hidden embedded preview pane. Background tabs throttle or freeze requestAnimationFrame. Headless does not.

Comparisons

bash
python3 scripts/compare.py a.mp4 b.mp4 versus.mp4 --labels "Model A" "Model B"            # stacked, for phones
python3 scripts/compare.py a.mp4 b.mp4 versus.mp4 --labels "Before" "After" --layout side   # side by side

A fair comparison holds everything equal except the thing being compared:

  • Same viewport, same duration, same choreography (--scroll keys reused verbatim).
  • Crop each source to its content first. Strip watermarks, webcam overlays and UI chrome the other clip does not have.
  • Silent output. Two soundtracks fight, and audio steals attention from the picture.
  • The shorter clip holds its last frame, so both finish together.
  • Name each side honestly in its label. Put the one the audience knows on top.

Delivery

  • Social platforms re-encode everything. 1920x1080 or 1080x1920 at 60 fps, H.264, CRF 14 to 18 survives that best. Higher resolutions are often downscaled anyway.
  • Keep the master. Make cut-downs (a 6 s loop, a vertical crop) from it with ffmpeg rather than re-recording.
  • Add sound afterwards, timed to the frame numbers the recording printed. Never record audio through the virtual clock.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Frame Capture faz?

Records any web page (three.js, WebGL, canvas, GSAP, CSS animation, scroll-driven video) to a perfectly smooth 60 fps MP4 by running the page on a virtual clock, one exact frame at a time, and puts two recordings against each other as a labelled stacked or side-by-side comparison. Use when someone wants a video of a site, a demo clip for X or YouTube, a scroll-through, a showcase reel of a 3D scene, or a "model A vs model B" comparison video. Also use when a screen recording of an animated page stutters or drops frames.

Por que usar Frame Capture no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Frame Capture é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Frame Capture no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Moh4696/open-3d-skills/tree/main/skills/frame-capture. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Frame Capture?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Frame Capture?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Frame Capture com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Frame Capture é gratuita?

Sim. A habilidade é publicada no GitHub por Moh4696 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇