embedded-video-pip-smooth-playback

embedded-video-pip-smooth-playback is a skill for Claude Code, Codex from inclusionAI/AWorld. It costs 113 tokens per session (840 once invoked), scanned A, original, MIT.

A workflow for preventing stuttering and frozen frames when placing one video inside another during programmatic video rendering. It explains how video keyframes affect frame-by-frame seeking and recommends suitable re-encoding settings.

In plain words
What is it for?
Use it when building picture-in-picture videos with tools such as Remotion, After Effects scripts, or FFmpeg filter graphs.
Why use it?
Sparse keyframes can make a renderer decode a long section of video for every requested frame, causing slow seeks and repeated or frozen frames.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building picture-in-picture videos with tools such as Remotion, After Effects scripts, or FFmpeg filter graphs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/inclusionai/aworld/embedded_video
About the project

AWorld is an agent harness, meaning a framework that coordinates an AI agent’s tools, memory, context, and execution so expert knowledge can be turned into reusable skills and autonomous agents. It is for building domain-specific agent applications and workflows, with the catalogue entries representing skills, agents, and commands that operate within the AWorld ecosystem.

inclusionAI/AWorld · 1,229 stars · on GitHub · aworldagents.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add inclusionAI/AWorld --skill embedded_video
Clone the repo
git clone --depth 1 https://github.com/inclusionAI/AWorld

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for embedded-video-pip-smooth-playback

README.md
[![agentmods](https://agentmods.dev/badge/skills/inclusionai/aworld/embedded_video.svg)](https://agentmods.dev/skills/inclusionai/aworld/embedded_video)
Your own site
<a href="https://agentmods.dev/skills/inclusionai/aworld/embedded_video"><img src="https://agentmods.dev/badge/skills/inclusionai/aworld/embedded_video.svg" alt="Measured on agentmods" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 840 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.00840
Opus 5 $0.00056 $0.00420
Sonnet 5 $0.00023 $0.00168
Haiku 4.5 $0.00011 $0.00084

Measured 9d ago against content hash 6b0d947d45d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

embedded-video-pip-smooth-playback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

aworld-skills/embedded_video/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

1. Problem scenario

When you build videos with code-driven renderers (e.g. Remotion, AE scripts, complex FFmpeg filter graphs), you often need picture-in-picture: one main composition with another video embedded inside it.

Typical symptom: In the exported file, motion on the main layer (translation, scale, etc.) looks smooth, but the embedded clip stutters badly, drops frames, or even freezes for long stretches.

2. Root cause: sparse keyframes

Modern codecs (H.264/H.265) save space by storing full pictures only at scene cuts or every few seconds (keyframes / I-frames). Frames in between (P-frames / B-frames) only store differences from neighbors.

Engines like Remotion export frame by frame. To render frame N, the embedded clip must seek to the matching timestamp.

If the embedded file has almost no keyframes (e.g. one I-frame at the start of a 10 s clip), the decoder often has to decode from frame 0 forward to reach frame N. That leads to:

  1. Very slow seeks: Decoding takes so long that the renderer times out and grabs a frame before the decode finishes.
  2. Repeated frames: The decoder cannot keep up, so several consecutive captures show the same old image—stutter in the final output.

3. Fix: all-intra encoding (every frame a keyframe)

Idea: Re-encode the embedded asset so every frame is a keyframe. Then any seek returns a full picture immediately, with no long chains of dependent frames.

Steps

Step 1: Re-encode with FFmpeg

Run:

ffmpeg -i input.mp4 -c:v libx264 -g 1 -pix_fmt yuv420p output_keyframes.mp4

Parameters:

Flag Meaning
-i input.mp4 Source clip you embed.
-c:v libx264 H.264 for broad compatibility with web and renderers.
-g 1 Critical: GOP size 1 → one keyframe per frame.
-pix_fmt yuv420p Common 8-bit 4:2:0 layout for players and pipelines.
output_keyframes.mp4 Output used as the fixed asset.

Read the full file on GitHub · 70 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 70 lines · 113 tokens per session scan A 6b0d947d45d6

Subscribe to this mod's changes

embedded-video-pip-smooth-playback is a skill published in the GitHub repository inclusionAI/AWorld (1,229 stars, last pushed yesterday), licensed MIT. It adds 113 tokens to every session and 840 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hive.image-generation

Required before calling imagegenerate. Create and edit images from a prompt — generate an image, make a picture / logo / illustration / icon / banner / poster / thumbnail / hero image / mockup / product shot / social graphic, or edit / restyle / combine existing images from reference images. Uses OpenAI gpt-image-2…

aden-hive/hive · 149 tokens

scientific-slides

Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and…

foryourhealth111-pixel/Vibe-Skills · 65 tokens

infographics

Create professional infographics using Nano Banana Pro AI with smart iterative refinement. Uses Gemini 3 Pro for quality review. Integrates research-lookup and web search for accurate data. Supports 10 infographic types, 8 industry styles, and colorblind-safe palettes.

foryourhealth111-pixel/Vibe-Skills · 55 tokens

paper-2-web

Use when converting academic papers into dissemination assets such as Paper2Web websites, Paper2Video video abstracts, or Paper2Poster conference posters from LaTeX or PDF sources.

foryourhealth111-pixel/Vibe-Skills · 40 tokens

pptx-posters

Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…

foryourhealth111-pixel/Vibe-Skills · 66 tokens

data-artist

Create beautiful data visualizations with mathematical elegance, color theory, and narrative design - the "Data is Beautiful" aesthetic.

foryourhealth111-pixel/Vibe-Skills · 28 tokens