fix(demo): pin autoZoom to non-cropping pass-through, eliminating main-scene content clipping
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
This commit is contained in:
1 parent
5680b1528c
commit
cb2299a69d
1 file changed
+22
-3
@@ -912,12 +912,31 @@ async function addMotionGraphics(videoDir) {
|
||||
.parse()
|
||||
.speedUp({ duringIdle: 3.0, duringUserAction: 1.0, duringNetworkWait: 2.0, duringNavigation: 2.0, minSegmentDuration: 500 })
|
||||
.subtitlesFromTrace()
|
||||
.autoZoom({ inputLevel: 1.4, clickLevel: 1.25, centerBias: 0.3 })
|
||||
// Todo 7 (promo-video-redesign plan): auto-zoom is pinned to level 1.0
|
||||
// on every action type (no click/input zoom-in, idle already 1.0).
|
||||
// `autoZoom()` renders through ffmpeg `zoompan`, whose visible region
|
||||
// is `iw/z x ih/z` of the SOURCE frame panned toward the interaction
|
||||
// point (see render/zoom-expression.js: `x=cx*iw-iw/z/2`), so any z>1
|
||||
// HARD-CROPS the phone UI - at a click/input beat near an edge it cut
|
||||
// the opposite edge of the 414px-wide app (confirmed by frame
|
||||
// extraction: the home-grid's left+right columns and the `Upload a
|
||||
// mini-app` button text were sliced off at ~t=39.8s and the 4th grid
|
||||
// column + `View signature` labels at ~t=50s, both against uncropped
|
||||
// reference screenshots in .omo/evidence/full-feature-demo/ proving
|
||||
// the content was captured whole). The landscape composite below
|
||||
// already fits the full phone into its frame region (scaled, never
|
||||
// cropped - `overlay` centres a 444x960 phone in 1920x1080), so the
|
||||
// ONLY crop source was this zoom; holding every level at 1.0 keeps the
|
||||
// whole UI on screen at every beat. The stage stays (it owns the
|
||||
// `subtitlesFromTrace()` -> zoom-marker contract and the `noZoom()`
|
||||
// cues) but is now a non-cropping pass-through - `z=1.0` makes
|
||||
// `buildZoomFilter()` emit a plain full-frame scale.
|
||||
.autoZoom({ inputLevel: 1.0, clickLevel: 1.0, idleLevel: 1.0, centerBias: 0.3 })
|
||||
// No `.cursorOverlay()` - this is a mobile touch-screen demo, not a
|
||||
// desktop screencast, so there is no pointer to draw. `.clickEffect()`
|
||||
// (tap ripple) is its own independent pipeline stage (confirmed in
|
||||
// `dist/pipeline/pipeline.d.ts`) and survives untouched, as does
|
||||
// `.autoZoom()` above.
|
||||
// `dist/pipeline/pipeline.d.ts`) and survives untouched - the tap
|
||||
// feedback stays even though the zoom-in is gone.
|
||||
.clickEffect()
|
||||
.intro({ path: introPath, fadeDuration: 600 })
|
||||
.outro({ path: outroPath, fadeDuration: 600 })
|
||||
|
||||
Reference in new issue
Block a user