map-shorts
/map-shorts
Turn a narration (voiceover text or audio, any topic with a geographic angle: history, voyages, wars, empires, borders, country comparisons, migrations, "true size" facts...) into a fluid, professional vertical map video (YouTube Shorts / Reels / TikTok, 1080x1920 60fps) with satellite imagery, cinematic camera flights, a 3D globe, animated borders, routes, ships, flags, counters, minimal titles and sound design - then render it with ffmpeg. Use when the user gives a script/voiceover and wants a map animation video.
- Author
- ozguryrr-design ↗
- Repository
- map-shorts ↗
- Licence
- MIT
- Last repository change
- 10.11.2026
Assessment and security
- Files in this package
- 48
- Scripts
- 26
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 26 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: examples/macellan/route.py, examples/macellan/scene.py, examples/turkiye_gercek_boyut/scene.py, make.py, mapengine/__init__.py, mapengine/audio.py, mapengine/camera.py, mapengine/draw.py
What it does and when to use it
Turn a narration (voiceover text or audio, any topic with a geographic angle: history, voyages, wars, empires, borders, country comparisons, migrations, "true size" facts...) into a fluid, professional vertical map video (YouTube Shorts / Reels / TikTok, 1080x1920 60fps) with satellite imagery, cinematic camera flights, a 3D globe, animated borders, routes, ships, flags, counters, minimal titles and sound design - then render it with ffmpeg. Use when the user gives a script/voiceover and wants a map animation video.
Triggers from the description
Original author description
Turn a narration (voiceover text or audio, any topic with a geographic angle: history, voyages, wars, empires, borders, country comparisons, migrations, "true size" facts...) into a fluid, professional vertical map video (YouTube Shorts / Reels / TikTok, 1080x1920 60fps) with satellite imagery, cinematic camera flights, a 3D globe, animated borders, routes, ships, flags, counters, minimal titles and sound design - then render it with ffmpeg. Use when the user gives a script/voiceover and wants a map animation video.
How it works
- 0. One-time setup
- 1. Create the project and get word timings
- 2. Plan the storyboard (write it down before coding)
- 3. Write projects/<name>/scene.py
- 4. Check frames - always, before the full render
- 5. Render
- 6. Deliver
SKILL.md preview
---
name: map-shorts
description: >-
Turn a narration (voiceover text or audio, any topic with a geographic angle:
history, voyages, wars, empires, borders, country comparisons, migrations,
"true size" facts...) into a fluid, professional vertical map video
(YouTube Shorts / Reels / TikTok, 1080x1920 60fps) with satellite imagery,
cinematic camera flights, a 3D globe, animated borders, routes, ships, flags,
counters, minimal titles and sound design - then render it with ffmpeg.
Use when the user gives a script/voiceover and wants a map animation video.
---
# map-shorts - narrated map animation videos
You (the agent) are the director **and** the animator. The user gives a narration
(text, and later or immediately an audio voiceover). You plan the visuals beat by
beat, write a `scene.py` with the `mapengine` Python library in this folder,
check preview frames, and render the final MP4. The look to match is
`examples/macellan` and `examples/turkiye_gercek_boyut`: dark satellite map,
glowing white borders, tinted textured countries, gold routes, smooth camera
flights, very little text.
All commands run from this skill's folder with its virtualenv:
`.venv/bin/python make.py ...`.
**Windows (native, no WSL needed):** the venv python is `.venv\Scripts\python.exe` -
in PowerShell `.venv\Scripts\python make.py ...`, in Git Bash `.venv/Scripts/python make.py ...`.
Substitute it in every command below.
## 0. One-time setup
```bash
bash scripts/setup.sh # venv, python deps, Natural Earth data, fonts (Linux/macOS/WSL/Git Bash)
```
```powershell
powershell -ExecutionPolicy Bypass -File scripts\setup.ps1 -InstallFfmpeg # Windows PowerShell
```
Requires: Python 3.10+, ffmpeg, cairo (system library; on Windows pycairo's pip wheel
bundles it). The script tells you what is missing. Network access is needed (tiles,
data, placeholder TTS). On Windows, if ffmpeg was just installed, a new terminal may
be needed before `ffmpeg` is on PATH.
## 1. Create the project and get word timings
```bash
.venv/bin/python make.py new <name> --text-str "<full narration>" # or --text file.txt
```
Then timings - every animation is bound to words of the voiceover:
* **User already has the voiceover** -> copy it to `projects/<name>/vo/voice.mp3`, then
`.venv/bin/python make.py align <name>` (faster-whisper; snaps to the script words).
* **No voiceover yet** -> `.venv/bin/python make.py tts <name>` creates a placeholder
voice (edge-tts, `--voice tr-TR-AhmetNeural`, `en-US-GuyNeural`, ...) and timings.
When the real voice arrives later: put `vo/voice.mp3`, run `align`, re-render.
Nothing else changes, because cues are words, not seconds.
`.venv/bin/python make.py words <name>` prints sentence and word times.
## 2. Plan the storyboard (write it down before coding)
Read the narration and make a beat table: one row per sentence/phrase.
| anchor word | what the viewer must understand | map action | on-screen text (<=3 words) |
Pick, for every beat, a visual from `references/RECIPES.md` (fly-to + reveal,
true-size drag, voyage with ships, arrow arc, counter, date title, death/battle
marker, globe intro/outro, calendar...). Rules from `references/STYLE.md`:
* the image tells the story; text only for names, dates, numbers
* something always moves (drift between flights), a new visual event every 2-4 s
* every change starts **on** its word: `w("Pasifik")`, `w("Pasifik") - 0.15` for camera
* open with a hook in the first second (globe spin + zoom, or immediate flight)
* keep titles in y 220-520; keep the bottom 25% and right 10% clear (Shorts UI)
Research geography you are unsure of (coordinates of ports, battle sites, routes,
historical borders). Use `.venv/bin/python make.py find <name>` to get country /
state codes (accepts Turkish/English/other names).
## 3. Write `projects/<name>/scene.py`
Start from the generated template (already runnable). The API is in
`references/API.md`; copy patterns from the two examples. Key pieces:
* `VW = Words(...)`, `w("word")`, `w("word", 2)` (2nd occurrence), `S(i)` sentence times
* shapes: `country("Almanya")`, `admin1("Texas","USA")`, `union(...)`, `Shape.moved_to(lon,lat)` (true size)
* camera: `CameraPath(start).fly(t0,t1,view).drift(...).move(...).custom(t0,t1,fn)`
* views: `View.fit(shape.bbox_merc(), W, H)`, `View.at(lon,lat,width_deg)`
* sea routes: `sea_route(waypoints)` (auto avoids land) + `Route` + `Timeline` + `draw_ship`
* effects: `fx.highlight`, `fx.flag_fill`, `fx.arc`, `fx.route_progress`, `fx.title`,
`fx.date_title`, `fx.counter`, `fx.map_label`, `fx.cross_marker`, `fx.burst_marker`, `fx.calendar`
* globe: `Globe`, `zoom_state`, `matched_view`, `state_for_view` (seamless globe <-> map)
* `SFX = [(t, "whoosh"|"swish"|"pop"|"thump"|"shimmer", {...}), ...]` for each flight/reveal
## 4. Check frames - always, before the full render
```bash
.venv/bin/python make.py sheet <name> --every 1.0 # projects/<name>/contact_sheet.png
.venv/bin/python make.py stills <name> 12.4 30.1 # exact moments, half res
```
Look at the images (if you can view images) and fix: empty/ocean-only frames during
moves (use `fly` instead of `move` for long distances), text overlapping the
highlighted area, things off-screen, ships hidden by markers, titles not matching
the spoken word, too much text. Iterate until every beat reads clearly.
For sea routes also run `tools/debug_route.py` (renders route over the land mask).
## 5. Render
```bash
.venv/bin/python make.py final <name> # -> out/<name>.mp4 and out/<name>_sfx_only.mp4
```
Rendering is chunked and resumable (re-run after an interruption; delete chunks in
`out/<name>_video.mp4.parts/` to re-render only a time range). ~4-8 min per minute
of video on 4-8 cores. Use `--workers 2` on machines with < 8 GB RAM.
`--mix-only` re-mixes audio without re-rendering.
## 6. Deliver
Tell the user where the files are, the storyboard you used, what is placeholder
(TTS voice - must be replaced by their own recording before publishing), and anything
they should verify (historical accuracy). Point them to `out/<name>_credits.txt` to paste
into the video description.
**Imagery licence (keep the defaults):** `TILE_PROVIDER = "s2"` (EOxCloudless Sentinel-2
2016, CC BY 4.0 - commercial use allowed) with `ATTRIBUTION = True` (credit drawn on every
frame; CC BY requires it to be visible in videos - never turn it off for "s2"). `"nasa"`
(Blue Marble, public domain, max zoom 8) is fine for globe/continent-only videos. Use
`"esri"` only if the user explicitly asks and the video is non-commercial; tell them so.
Never change the EOX layer to a newer year (2017+ is non-commercial / paid).
Files in this package (48)
- .gitattributes 1 KB
- .gitignore 1 KB
- AGENTS.md 1 KB
- LICENSE 1 KB
- README.md 7 KB
- SKILL.md 7 KB
- make.py 8 KB
- requirements-optional.txt 1 KB
- requirements.txt 1 KB
- examples/macellan/metin.txt 1 KB
- examples/macellan/route.py 3 KB
- examples/macellan/scene.py 19 KB
- examples/macellan/vo/placeholder.mp3 307 KB
- examples/macellan/vo/placeholder_words.json 4 KB
- examples/macellan/vo/words.json 4 KB
- examples/turkiye_gercek_boyut/scene.py 11 KB
- examples/turkiye_gercek_boyut/vo/l1.mp3 21 KB
- examples/turkiye_gercek_boyut/vo/l2.mp3 33 KB
- examples/turkiye_gercek_boyut/vo/l3.mp3 38 KB
- examples/turkiye_gercek_boyut/vo/l4.mp3 40 KB
- examples/turkiye_gercek_boyut/vo/l5.mp3 22 KB
- examples/turkiye_gercek_boyut/vo/words.json 1 KB
- mapengine/__init__.py 1 KB
- mapengine/audio.py 5 KB
- mapengine/camera.py 5 KB
- mapengine/draw.py 10 KB
- mapengine/ease.py 1 KB
- mapengine/fx.py 13 KB
- mapengine/geo.py 8 KB
- mapengine/globe.py 8 KB
- mapengine/render.py 8 KB
- mapengine/route.py 7 KB
- mapengine/seapath.py 7 KB
- mapengine/text.py 5 KB
- mapengine/tiles.py 8 KB
- mapengine/timing.py 3 KB
- projects/.gitkeep 1 KB
- references/API.md 7 KB
- references/RECIPES.md 4 KB
- references/STYLE.md 2 KB
- scripts/fetch_data.py 1 KB
- scripts/setup.ps1 3 KB
- scripts/setup.sh 2 KB
- templates/scene_template.py 6 KB
- tools/align_vo.py 2 KB
- tools/build_route.py 1 KB
- tools/check_route.py 1 KB
- tools/debug_route.py 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · ozguryrr-design/map-shorts | 98 | MIT |
| Heenzaa1998/map-shorts | 100 | MIT |
Database snapshot: 13.11.2026 · package version 102fee3255a3 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100clipforge-video
Create short vertical videos (TikTok / Reels / Shorts / 抖音 / 快手 / 小红书) from a topic, a product link/image, or a script you already wrote. ClipForge runs the full pipeline — script → footage → voiceover → subtitles → BGM → compose — with a free, no-API-key path (free stock + Edge… - 100vertical-shorts
Turn video into 9:16 vertical clips for YouTube Shorts, Instagram Reels and TikTok - smart reframing, blurred-background fill, safe zones, hook structure, clipping long videos into shorts, and caption placement. Use when the user wants shorts, reels, vertical versions or repurposed clips. - 100video-to-shorts-skill
Video to shorts skill: turn a long video (podcast, interview, talk, webinar, stream, YouTube video) into vertical short clips for TikTok, Instagram Reels and YouTube Shorts, then post them to one or many accounts with WoopSocial. Transcribes with word timestamps (free local… - 90longform-to-shorts
Cut standalone vertical Shorts/Reels (1080x1920) out of ONE finished long-form talking-head + screen-share video (a "N tools" walkthrough, tutorial, review, demo), one Short per topic/tool, then write per-Short YouTube + Instagram metadata. Use this whenever the user hands over… - 100shorts
Make vertical shorts (1080x1920) for YouTube Shorts, TikTok and Instagram Reels — from a standalone shorts recording (one camera + mic file holding several shorts, with retakes) or as clips cut from a finished long video using its transcript. Captions, face and visual panels,… - 100remotion-shorts-skill
Make finished vertical short videos with Remotion and post them to TikTok, Instagram Reels and YouTube Shorts. Turns a topic, article, URL, dataset, changelog or list into a 1080x1920 kinetic-text short (big animated words, stat count-ups, top-N lists, launch and changelog…