clipwright/tests
juancarlos.cavero f0ecb0d078 fix(reframe): stop the switch cooldown from failing open
The cooldown that keeps the camera from swinging between subjects only applied
when the active speaker happened to be detected in the current frame. If they
were missing — a blink, a head turn, one motion-blurred frame — the guard fell
through and switched immediately, so it only ever held when it wasn't needed.
Measured on a 12s clip: 3 of 7 target switches jumped the cooldown this way.

Now the cooldown holds regardless: it returns the active speaker's box when
visible and None otherwise, and the caller only calls update_target() on a
truthy box, so the camera keeps its target and finishes whatever move it was
making. The hold stays bounded by the cooldown, so a subject who really did
leave the shot is still released once the window expires.

Measured on the same clip: cooldown bypasses 3 -> 0, target switches 7 -> 5.

This does NOT by itself calm the camera down — reversals stayed at 13 over 12s.
The dominant driver is target jitter (p90 of 496px per update, 15 of 67 updates
alone exceeding the 101px safe zone) plus faces losing their identity on
re-detection, both of which need tuning against representative footage rather
than a screen recording.
2026-07-26 11:44:27 +02:00
..
conftest.py feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1) 2026-07-17 21:26:04 +02:00
test_alert_classify.py fix(gemini): distinguir bloqueo de contenido de fallo transitorio 2026-07-24 00:37:14 +02:00
test_billing_states.py fix(billing): stop stranding customers whose payment failed 2026-07-25 15:14:15 +02:00
test_clip_selection.py feat: 2-pass Gemini clip pipeline (score windows -> detail shortlist) 2026-07-17 22:32:04 +02:00
test_edit_builder.py feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1) 2026-07-17 21:26:04 +02:00
test_email_policy.py feat(abuse): abrir free a email normal + bloquear dominios desechables 2026-07-21 00:45:54 +02:00
test_ffmpeg_utils.py feat(clips): borrar la metadata heredada del source en los clips finales 2026-07-23 01:34:59 +02:00
test_gemini_retry.py fix(gemini): distinguir bloqueo de contenido de fallo transitorio 2026-07-24 00:37:14 +02:00
test_hooks.py feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1) 2026-07-17 21:26:04 +02:00
test_job_error_text.py test(ci): saltar los tests que importan main/app en el CI mínimo 2026-07-23 11:40:05 +02:00
test_log_view.py feat(cloud): user-friendly job logs + transcription progress; hide auto profile id in header 2026-07-18 02:20:31 +02:00
test_metering_free_plan.py feat(abuse): abrir free a email normal + bloquear dominios desechables 2026-07-21 00:45:54 +02:00
test_reframe_v2.py fix(clips): deliver 1080x1920 instead of inheriting the source height 2026-07-25 17:09:03 +02:00
test_speaker_tracker.py fix(reframe): stop the switch cooldown from failing open 2026-07-26 11:44:27 +02:00
test_subtitle_metering.py fix(subtitles): stop charging quota for burning captions 2026-07-25 17:16:59 +02:00
test_subtitles.py feat(clips): ship every clip captioned by default 2026-07-25 17:42:08 +02:00
test_transcribe_backends.py fix(transcribe): manejar vídeos sin audio + alerta de fallos honesta 2026-07-21 21:13:59 +02:00
test_translate.py feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1) 2026-07-17 21:26:04 +02:00