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
- If the user speaks Chinese, reply in Chinese. Use local language place names, with Chinese in parentheses or nearby.
- 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.
- 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
- Assets: Rename comparison images and scenic photos to short English names, copy them to
public/raw/<film-id>/; put music inpublic/music/. Usenpm run check-imagesor sharp to read each image's width and height. - Data
src/data/<film-id>.json: Follow the structure ofexamples/before-sunrise.json; field meanings are documented in comments insrc/types.ts. Then register it insrc/data/index.ts. Key points:locationsmust 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 marksource: "estimated".- If you went elsewhere in between:
detour: true,walkNoteZhonly lists places actually passed along the way. - Practical info like opening hours goes in
tipZh. Always verify facts before confirming with the user.
- Style
src/theme.ts: Add an entry toTHEMES, copy the closest existing theme and modify:skin:filmstrip(film strip, crossfade) orscroll(scroll unroll).opening:vinyl(vinyl record opening) ornone.sceneMark:quote→ "dialogue",note→ ♪ song name.scriptFont, colors, color gradegrade, timingtiming(if music has a fixed BPM, setbpmto align cuts to beats).
- Cover: Films without a custom cover automatically use
GenericCover(full image + left-aligned title). For a polished version, write a component insrc/components/Cover.tsxand add it toCOVERS. - Compositions are auto-generated:
<FilmId in CamelCase>(e.g.,BeforeSunrise), individual days as…Day1, andCover-<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.