remotion-ffmpeg-skill 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -6
- package/package.json +3 -3
- package/scripts/_contract.py +21 -1
- /package/{bin → cli}/remotion-ffmpeg-skill.js +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/kajisho5/remotion-ffmpeg-skill/media/brand/png/icon-512.png" width="128" alt="remotion-ffmpeg-skill icon"></p>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<picture>
|
|
5
|
+
<source media="(prefers-color-scheme: dark)" srcset="brand/logo/wordmark-white.svg">
|
|
6
|
+
<img src="brand/logo/wordmark-black.svg" height="40" alt="remotion-ffmpeg-skill">
|
|
7
|
+
</picture>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<a href="https://github.com/sponsors/kajisho5"><img src="https://img.shields.io/badge/sponsor-%E2%9D%A4-ea4aaa?logo=githubsponsors" alt="Sponsor"></a>
|
|
12
|
+
</p>
|
|
2
13
|
|
|
3
14
|
**ffmpeg-skill measures the footage. Remotion draws from those measurements. ffmpeg-skill checks and delivers the result.**
|
|
4
15
|
|
|
@@ -6,14 +17,14 @@ An [Agent Skill](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/o
|
|
|
6
17
|
|
|
7
18
|
Built on [**ffmpeg-skill**](https://github.com/kajisho5/ffmpeg-skill). Unofficial — not affiliated with Remotion.
|
|
8
19
|
|
|
9
|
-

|
|
20
|
+

|
|
10
21
|
|
|
11
22
|
<sub>Fictional demo footage. ffmpeg-skill measured two silences and a scene cut; Remotion played only the speech ranges with punch-in zooms and re-timed captions; render.py verified 201 of 201 frames.</sub>
|
|
12
23
|
|
|
13
24
|
<table>
|
|
14
25
|
<tr>
|
|
15
|
-
<td width="62%"><img src="assets/demo-karaoke.gif" alt="Karaoke: each word lights up at the time a speech engine measured"><br><sub><b>Karaoke</b> — words light up at their measured times (250 / 250 frames verified)</sub></td>
|
|
16
|
-
<td width="38%"><img src="assets/demo-portrait-ja.gif" alt="9:16 jump cut with Japanese captions on a blurred fill"><br><sub><b>9:16 + Japanese</b> — silences cut, CJK font staged automatically, phrase-based line breaks</sub></td>
|
|
26
|
+
<td width="62%"><img src="https://raw.githubusercontent.com/kajisho5/remotion-ffmpeg-skill/media/assets/demo-karaoke.gif" alt="Karaoke: each word lights up at the time a speech engine measured"><br><sub><b>Karaoke</b> — words light up at their measured times (250 / 250 frames verified)</sub></td>
|
|
27
|
+
<td width="38%"><img src="https://raw.githubusercontent.com/kajisho5/remotion-ffmpeg-skill/media/assets/demo-portrait-ja.gif" alt="9:16 jump cut with Japanese captions on a blurred fill"><br><sub><b>9:16 + Japanese</b> — silences cut, CJK font staged automatically, phrase-based line breaks</sub></td>
|
|
17
28
|
</tr>
|
|
18
29
|
</table>
|
|
19
30
|
|
|
@@ -89,7 +100,7 @@ Tool names and input schemas come from the machine-readable contract (`npx remot
|
|
|
89
100
|
|
|
90
101
|
**Any shape:** `--aspect 9:16 | 1:1 | 4:5 | 16:9` with `--fit blur | contain | cover`; `pipeline.py --platform reels` picks 9:16 from ffmpeg-skill's own template so nothing gets cropped on delivery.
|
|
91
102
|
|
|
92
|
-
<img src="assets/portrait-ja-still.png" width="270" alt="9:16 still with a Japanese caption, blurred fill behind the 16:9 source">
|
|
103
|
+
<img src="https://raw.githubusercontent.com/kajisho5/remotion-ffmpeg-skill/media/assets/portrait-ja-still.png" width="270" alt="9:16 still with a Japanese caption, blurred fill behind the 16:9 source">
|
|
93
104
|
|
|
94
105
|
**Fonts:** Japanese / Chinese / Korean captions get the CJK font ffmpeg-skill finds on the machine, loaded before the first frame — no tofu. `--font-file` for your own.
|
|
95
106
|
|
|
@@ -120,7 +131,16 @@ This skill is MIT. **Remotion itself has its own licence**: free for individuals
|
|
|
120
131
|
|
|
121
132
|
Remotion renders in a headless browser. Measured on a 2-core Linux machine: a 30 s 1080p30 render takes about 80 s (≈ 2.6× the clip length) with render.py's default of all CPU cores — Remotion's own default (half the cores) took 170 s. More cores scale it further. Check with `still.py` and `--fast` before a full render of long footage.
|
|
122
133
|
|
|
123
|
-
**`--sparse`** (Captioned, Karaoke, Titled): only the frames that show a caption, lower third or scene title are drawn; ffmpeg-skill places each stretch back at its time over the untouched source. Same picture frame for frame (checked by an integration test)
|
|
134
|
+
**`--sparse`** (Captioned, Karaoke, Titled): only the frames that show a caption, lower third or scene title are drawn; ffmpeg-skill places each stretch back at its time over the untouched source. Same picture frame for frame (checked by an integration test). How much it saves depends on how much of the footage shows graphics — measured on the same 2-core Linux machine, 1280×720, 30 fps:
|
|
135
|
+
|
|
136
|
+
| Footage | Frames drawn | Full layer | `--sparse` |
|
|
137
|
+
|---|---|---|---|
|
|
138
|
+
| 60 s, captions on 7 s | 211 / 1800 (12 %) | 152 s | 46 s |
|
|
139
|
+
| 40 s, two scene titles + one lower third | 272 / 1200 (23 %) | 104 s | 39 s |
|
|
140
|
+
| 60 s, captions on half of it | 909 / 1800 (50 %) | 155 s | 100 s |
|
|
141
|
+
| captions on all of it | — | — | nothing to skip: draws the full layer and says so |
|
|
142
|
+
|
|
143
|
+
Browser start-up and the final composite cost the same either way, so the gain is smaller than the share of frames skipped. Needs an ffmpeg-skill whose `overlay.py` has `--place`; otherwise it draws the full layer and says why.
|
|
124
144
|
|
|
125
145
|
## Agent evals
|
|
126
146
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion-ffmpeg-skill",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Agent Skill: ffmpeg-skill measures the footage, Remotion draws the motion graphics from those measurements, ffmpeg-skill checks and delivers the result. Timeline-driven captions, silence jump cuts and audio-peak motion with probe-first / verify-last rendering. Local, no API keys.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"remotion",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"url": "https://github.com/kajisho5/remotion-ffmpeg-skill/issues"
|
|
29
29
|
},
|
|
30
30
|
"bin": {
|
|
31
|
-
"remotion-ffmpeg-skill": "
|
|
31
|
+
"remotion-ffmpeg-skill": "cli/remotion-ffmpeg-skill.js"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
|
-
"
|
|
34
|
+
"cli",
|
|
35
35
|
"SKILL.md",
|
|
36
36
|
"scripts",
|
|
37
37
|
"templates",
|
package/scripts/_contract.py
CHANGED
|
@@ -236,11 +236,31 @@ def tool_spec(name: str) -> Dict[str, Any]:
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
|
|
239
|
+
# The AI Video Production OS registry's keys (skill_id, provides[], dependencies[]): one capability
|
|
240
|
+
# per public tool except doctor, all EXPERIMENTAL; ffmpeg-skill is the only Skill this one calls.
|
|
241
|
+
PROVIDES_EXCLUDE = {"doctor"}
|
|
242
|
+
FFMPEG_SKILL_RANGE = ">=2.0.0 <3.0.0"
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def provides() -> List[Dict[str, str]]:
|
|
246
|
+
return [{"id": f"remotion.{n}", "lifecycle": "EXPERIMENTAL", "tool_id": f"{SKILL_ID}/{n}"}
|
|
247
|
+
for n in TOOL_META if n not in PROVIDES_EXCLUDE]
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def dependencies() -> List[Dict[str, Any]]:
|
|
251
|
+
used = sorted({s.split()[0] for m in TOOL_META.values() for s in m["ffmpeg_skill"]})
|
|
252
|
+
return [{"skill_id": "ffmpeg-skill", "version_range": FFMPEG_SKILL_RANGE, "required": True,
|
|
253
|
+
"url": "https://github.com/kajisho5/ffmpeg-skill", "scripts": used}]
|
|
254
|
+
|
|
255
|
+
|
|
239
256
|
def build() -> Dict[str, Any]:
|
|
240
257
|
return {
|
|
241
|
-
"
|
|
258
|
+
"skill_id": SKILL_ID,
|
|
259
|
+
"skill": {"id": SKILL_ID, "version": version()},
|
|
242
260
|
"version": version(),
|
|
243
261
|
"contract_version": CONTRACT_VERSION,
|
|
262
|
+
"provides": provides(),
|
|
263
|
+
"dependencies": dependencies(),
|
|
244
264
|
"timeline_schema": TIMELINE_SCHEMA,
|
|
245
265
|
"depends_on": {"ffmpeg-skill": "https://github.com/kajisho5/ffmpeg-skill", "node": ">=18",
|
|
246
266
|
"python": ">=3.10"},
|
|
File without changes
|