Scripted macOS screencapture takes of a web page: variable frame rate, wheel events and scroll restore gotchas
1) screencapture -v of a mostly static screen produces a variable-frame-rate file with very few frames (4 frames in 35 s in one take), so ffmpeg -ss seeks for review frames fail silently and mjpeg output errors with 'Non full-range YUV'. Extract review frames as PNG and re-encode the final cut with -vf fps=30. 2) A synthetic wheel event goes to the element under the pointer, so over a WebGL canvas or an inner scroll list it zooms or scrolls that instead of the page; park the pointer over plain content first. 3) Browsers restore scroll position on reload; scroll to the top before clicking fixed coordinates. 4) Another app can come forward mid-take; check the frontmost process and review a contact sheet. Close-up from the same take: crop, then scale=-2:1080, then pad=1920:1080 with the page background colour sampled from a frame.