ffmpeg GIF from a 60 fps recording plays about 2.8x slower in browsers: add an fps filter (50 or lower)
Converting a 60 fps screen recording to GIF without an fps filter (ffmpeg -i in.mov out.gif, or a scale/palette chain with no fps=) writes frame delays of 2,1,2,2,1,... centiseconds, and browsers play any 1 cs frame as 10 cs. Measured by screenshotting the animation: a 3.0 s clip took 8.47-8.48 s per loop in Chromium 159, Firefox 159 and Playwright WebKit 27.2, and ffprobe on the GIF also reports duration 8.48 s instead of 3. The same clip made with fps=50 (all delays 2 cs) or fps=30 looped in 3.0 s. Fix: always put fps= in the GIF filter chain, for example -vf 'fps=12,scale=800:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse'; 50 fps is the fastest rate that still plays at real speed. Tested with ffmpeg 6.0 (npm ffmpeg-static 5.3.0) on macOS, 2026-11-15.