Communitygithub.com

film-pilgrimage

Make a social-media-style vertical (1080×1920) film-pilgrimage video in Remotion — "film still vs. my photo" comparisons at each filming location, an animated walking-route map, scenery montage, route card, music aligned to cuts, and a 3:4 feed cover. Use when someone wants to turn trip photos of movie filming locations (电影取景地巡礼 / 打卡 / 对比图) into a video, or continue / add a film to an existing pilgrimage project.

film-pilgrimage 是什么?

film-pilgrimage is a Claude Code agent skill that make a social-media-style vertical (1080×1920) film-pilgrimage video in Remotion — "film still vs. my photo" comparisons at each filming location, an animated walking-route map, scenery montage, route card, music aligned to cuts, and a 3:4 feed cover. Use when someone wants to turn trip photos of movie filming locations (电影取景地巡礼 / 打卡 / 对比图) into a video, or continue / add a film to an existing pilgrimage project.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/fanwy16/film-pilgrimage/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Film Pilgrimage Video

Turn "film still vs. my photo" comparisons into a social-media-style vertical video. The engine is an existing Remotion project (template/). For each new film you only need: one JSON file + one theme + assets. Covers and openings are designed separately per film.

Example films already registered in template/: Before Sunrise (Vienna, two days, dark film-look, vinyl opening) with photos included, ready to render (no music); The Sound of Music (Salzburg, paper scroll style, two music tracks aligned) – JSON only, in template/examples/.

Before You Start

  1. If the user speaks Chinese, reply in Chinese. Use local language place names, with Chinese in parentheses or nearby.
  2. Always ask, never guess:
    • Which movie, which city, how many days, the actual walking order each day.
    • Where the comparison images (upper half original film still, lower half your photo, merged into one image) are stored.
    • Whether there is an itinerary note (md). If yes, rely on it for place names, opening hours, and waypoints.
    • Scenic photos (for montage) and any music they want to use.
  3. Check the environment: node -v (needs 20+).

Creating a New Project

cp -R "<this skill directory>/template" "<user-chosen location>/pilgrimage"
cd "<…>/pilgrimage" && npm i

If the user already has a project (they made a pilgrimage video before), add the new film directly to that existing project—do not copy the template again.

Adding a New Film

  1. Assets: Rename comparison images and scenic photos to short English names, copy them to public/raw/<film-id>/; put music in public/music/. Use npm run check-images or sharp to read each image's width and height.
  2. Data src/data/<film-id>.json: Follow the structure of examples/before-sunrise.json; field meanings are documented in comments in src/types.ts. Then register it in src/data/index.ts. Key points:
    • locations must be in actual walking order (day + order), not movie plot order.
    • splitRatio = height ratio of the film still in the merged comparison image.
    • camera: if the photo has no GPS, estimate from landmark coordinates and mark source: "estimated".
    • If you went elsewhere in between: detour: true, walkNoteZh only lists places actually passed along the way.
    • Practical info like opening hours goes in tipZh. Always verify facts before confirming with the user.
  3. Style src/theme.ts: Add an entry to THEMES, copy the closest existing theme and modify:
    • skin: filmstrip (film strip, crossfade) or scroll (scroll unroll).
    • opening: vinyl (vinyl record opening) or none.
    • sceneMark: quote → "dialogue", note → ♪ song name.
    • scriptFont, colors, color grade grade, timing timing (if music has a fixed BPM, set bpm to align cuts to beats).
  4. Cover: Films without a custom cover automatically use GenericCover (full image + left-aligned title). For a polished version, write a component in src/components/Cover.tsx and add it to COVERS.
  5. Compositions are auto-generated: <FilmId in CamelCase> (e.g., BeforeSunrise), individual days as …Day1, and Cover-<film-id>.

Video Structure (already implemented in the engine)

Cover opening → full route map → each stop (walking card + small map → film still → reveal real scene → split into two parts → stay) → scenery after last stop → [ending] → route card → montage → [easter egg] → fade to black.

Optional sections are all controlled by JSON: start.photo (accommodation, placed at start or end), montage (at: afterLocations / bonus, can be split into chapters, can vertically pan a long image), finale, easterEgg, music (align a specific second of a song to the beginning of a section, lower volume during a certain segment).

Checking and Exporting

npx tsc --noEmit
npx remotion render <Id> out/preview.mp4 --gl=angle --scale=0.4 --bundle-cache=false     # low-res preview
npx remotion render <Id> out/<film>-final.mp4 --gl=angle --bundle-cache=false --crf=18 --audio-bitrate=320k
npx remotion still Cover-<film-id> out/covers/<film>-cover.png --bundle-cache=false         # 3:4 cover
  • Extract a frame roughly every 1 second into a contact sheet and review. Confirm audio start, volume dip points, and fade-out timing using the energy curve.
  • Review the video yourself before showing it to the user; always trust the CLI rendering result (Studio can get sluggish after long hot-reload sessions).

Default Design Rules (can be changed per user preference, but start with these)

  • At the end of each comparison group, both the film still and the real photo must remain on screen; no image should rise from the bottom.
  • Cover: left-aligned, layered, with a single main title (Chinese primary, English italic about 0.6× size). No centered large text, no cropping of the user's selected photo.
  • Montage: use only new photos, full-screen, no blurred backgrounds, each shot short.
  • "Passing through" only write actual places passed; do not invent place names or opening hours.
  • Platform safe area: top ~110px and bottom ~104px are covered by the interface; do not place text there.

For more pitfalls (maps, curves, render cache, ffmpeg limitations, etc.) see lessons.md. Read it before modifying maps, timelines, or comparison sections.

What Is Not Included in the Template

The template does not include music (copyright). After creating a new project, if the user does not need the Before Sunrise example, remove it from src/data/index.ts, and delete public/raw/before-sunrise, public/raw/vienna, and public/raw/sisi. The cover, opening, ending, and easter egg for each film should be redesigned according to that film's tone; the two examples in the template are just references.

相关技能