-ss before -i or after it?
Before. Both give the exact frame when the output is an image, because FFmpeg decodes and discards everything before your time either way. The difference is where it starts decoding.
ffmpeg -i in.mp4 -ss 65 -frames:v 1 -q:v 2 out.jpgFrame 1560, the same 161,860 bytes as -ss 65 before -i. After -i, FFmpeg decoded all 1560 frames to get there. Before -i, it jumped to the keyframe at frame 1440 and decoded from there.
On a long video the gap grows with the timestamp. A frame at 1:30:00 after -i means decoding an hour and a half of video first.





