Przejdź do treści
Biblioteka skilli
Marketing i treści · Budowanie i kod

map-shorts

/map-shorts

Zamienia narrację z wątkiem geograficznym w pionowe wideo z mapami, lotami kamery, animowanymi granicami i trasami, renderowane w ffmpeg.

Repozytorium
map-shorts ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

98/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena13 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
48
Skrypty
26
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 26 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: 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

Co robi i kiedy

Zamienia narrację z wątkiem geograficznym w pionowe wideo z mapami, lotami kamery, animowanymi granicami i trasami, renderowane w ffmpeg.

Wyzwalacze z opisu

true size
Oryginalny opis (EN)

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.

Jak działa

  1. 0. One-time setup
  2. 1. Create the project and get word timings
  3. 2. Plan the storyboard (write it down before coding)
  4. 3. Write projects/<name>/scene.py
  5. 4. Check frames - always, before the full render
  6. 5. Render
  7. 6. Deliver
Sekcje z nagłówków SKILL.md, w oryginale · 106 linii, 850 słów
Podgląd SKILL.md
---
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).
Pliki w paczce (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

Wersje

RepozytoriumWynikLicencja
Ta strona · ozguryrr-design/map-shorts98MIT
Heenzaa1998/map-shorts100MIT

Migawka bazy z 13.11.2026 · wersja paczki 102fee3255a3 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100clipforge-video
    Tworzy krótkie pionowe wideo na TikTok, Reels i Shorts z tematu, linku produktu lub gotowego scenariusza: skrypt, materiał, lektor, napisy, muzyka i montaż przez FFmpeg bez kluczy API.
  • 100vertical-shorts
    Zamienia wideo w pionowe klipy 9:16 na YouTube Shorts, Reels i TikTok, z reframingiem, strefami bezpieczeństwa i napisami.
  • 100video-to-shorts-skill
    Zamienia długie wideo w pionowe klipy do TikToka, Reels i Shorts, ocenia każdy moment i publikuje je na wielu kontach.
  • 90longform-to-shorts
    Wycina pionowe Shorts i Reels (1080x1920) z jednego gotowego długiego filmu z mówiącą głową i ekranem, po jednym na temat lub narzędzie, i pisze metadane YouTube i Instagram.
  • 100shorts
    Tworzy pionowe shorty 1080x1920 z nagrań lub z długiego filmu na podstawie transkrypcji, z napisami, muzyką i wersją dla każdej platformy.
  • 100remotion-shorts-skill
    Tworzy pionowe krótkie filmy z tekstem w Remotion i publikuje je na TikTok, Reels i Shorts, dopasowując tempo do czytania.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.