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 (845 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,250 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for embedded-video-pip-smooth-playback

Your own site · 80×15
<a href="https://agentmods.dev/skills/inclusionai/aworld/embedded_video"><img src="https://agentmods.dev/badge/skills/inclusionai/aworld/embedded_video.svg" alt="Reviewed on agentmods" width="80" 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 845 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.00845
Opus 5.5 $0.00045 $0.00338
Sonnet 5.5 $0.00023 $0.00169
Haiku 4.5 $0.00011 $0.00085

Measured 2mo ago against content hash 319fbe9c2826, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo ago Changed 319fbe9c2826
  2. 3mo 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,250 stars, last pushed 6d ago), licensed MIT. It adds 113 tokens to every session and 845 once invoked, about $0.0005 per session on Opus 5.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

embedded-video-pip-smooth-playback compared with skills from other repositories

embedded-video-pip-smooth-playback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
embedded-video-pip-smooth-playbackinclusionAI/AWorldSkill1.3k6d agoMITA113Claude Code, Codex
flowcraft-deployGizClaw/flowcraftSkill4104d agoMITA142Codex
muse-governanceucsandman/DashClawSkill3182d agoMITA88Claude Code
expenseCaprista/KarvyLoopSkill1813d agoMITA0Claude Code
draft-digital-nomad-debunkCaprista/KarvyLoopSkill1813d agoMITA51Claude Code
project-summarywxhcore/bumblehiveSkill93d agoApache-2.0A13Claude Code, Codex
shift-notesagentdecksdk/agentdeckSkill4yesterdayMITA24Claude Code, Codex