Repository navigation
Zoom automático cinematográfico: acercar, seguir y volver al 100 % - #16
Merged
Merged
Conversation
Root cause: AutoZoom merged any zoom starting <1 s after the previous one, so normal clicking chained into one near-permanent zoom centered on the average of all clicks; overlapping zooms also added up. Now a state machine (idle, zooming in, focused, tracking, zooming out) zooms in to arrive at each click, holds while clicks stay in view, pans to clicks elsewhere by crossfading segments whose weights sum to 1, and eases back out after the idle time. Separate in/out ramps; overlaps are weight-averaged identically in preview and ffmpeg. Settings live in the project and the editor; regenerating keeps manual zooms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Causa raíz de que el zoom se quedara puesto
AutoZoom.Proposeagrupaba clics y, si el siguiente zoom empezaba menos de 1 s después del anterior, los fusionaba (End = Max(...)). Cada zoom duraba del clic −0,8 s al último clic +1,6 s, así que haciendo clic cada 2–4 s (uso normal) todo se encadenaba en un único zoom casi permanente, centrado en el promedio de todos los clics. Además, los zooms solapados se sumaban (1,8× + 0,8 extra…).Qué cambia
Idle → ZoomingIn → Focused → Tracking → ZoomingOut → Idle:RampOut, compatible con proyectos anteriores).Evaluate) y en FFmpeg (FfmpegViewExpr, CPU y GPU).Cómo se probó
ZoomEngineTestspara los escenarios pedidos: un clic y vuelta al 100 %; varios clics en la misma región; clic en otra región (sin bajar de 1,5×, sin saltos); movimiento sin clic; clic durante el alejamiento; pausa; proyecto de 1 h (escala acotada, vuelve a 100 % en cada pausa larga, sin saltos de fotograma a fotograma)🤖 Generated with Claude Code