That’s one way, but tricky to keep ‘up’ up and ‘down’ down doing it that way.
Another option is to let the image spin, and use post-production software ot reorient the image based on frame-by-frame scene analysis, just like the anti-shake post-processing tool Warp Stabilizer by Adobe After Effects.
The first frames are considered ‘right side up,’ and each subsequent frame is rotated in order to match the majority of the scene to the previous frame.
Exactly. All that’s left is one detail: surviving the initial acceleration.