Gyro stabilization
Gyro stabilization for Blackmagic BRAW, measured.
The Pocket 6K Pro records 1,136 gyro readings a second into every clip. Here is how we stabilize from them, and how it measured against Resolve.
The camera already knows how it moved.
A Blackmagic Pocket 6K Pro on firmware 8.1 writes its gyro data into every BRAW file: 1,136 readings a second, on three axes, for the whole clip. A picture stabilizer has to guess the camera's movement from the image. Gyro stabilization doesn't guess. It reads what the camera recorded and turns the picture the other way.
How we do it, step by step.
- Read the BRAW directly. The Blackmagic RAW SDK decodes the camera's 16-bit log. A half-size decode (3072×1728) was plenty for a 1080p delivery. No ProRes hand-off file.
- Read the gyro. The three axes map straight onto the camera: x right, y down, z forward.
- Fit the lens. A manual lens leaves no focal length in the file, so it is fitted per shot: picture motion from frame to frame, matched against the gyro with the slow drift removed. Walking drift spoils a fit on the whole motion. Our test shot fitted at about 15 mm. A shot whose fit is poor is rejected, not used.
- Fit the timing. The gyro and the picture are a few milliseconds apart. The same fit finds it: −9 ms on our test shot.
- Correct the rolling shutter. Every row of the sensor is read at a slightly different time. The file says how long a line takes (5.71 µs); across 3,456 lines that's about 19.7 ms, corrected row by row.
- Smooth, then zoom. The camera's orientation is smoothed with a half-second Gaussian, and the picture is zoomed 1.2× to hide the edges. Black edges are refused in code: the tool smooths less or zooms more until there are none.
The numbers.
Measured on five seconds of a handheld walk-through (shot C155), in pixels of the raw frame. Lower is steadier.
| No stabilizing | Resolve's stabilizer | From the gyro | |
|---|---|---|---|
| Shake, sideways / up-down | 1.32 / 1.36 | 0.34 / 0.30 | 0.25 / 0.17 |
| Typical jump, frame to frame | 0.87 | 0.16 | 0.13 |
| Worst 5% of frames | 2.72 | 0.60 | 0.52 |
| Zoom needed | none | 1.30× | 1.20× |
Steadier, with less zoom, so more of the picture survives. On the worst frames it's close to a tie. One lesson from measuring: don't judge shake by the center of a fitted transform. One bad frame swung it and made Resolve look better than it was. Median optical flow is the honest number.
What gyro stabilization can't do.
- It sees rotation, not walking. On a shot that moves close past objects, some movement is left over. Picture tracking on that leftover is the fix, and only if the shot looks wrong.
- It won't hold a mask on a close-up. We tried using the gyro to track a window mask on a close-up. In a test without the lens and rolling-shutter correction, it slipped 7 pixels typically and 15 at worst, against a picture tracker's 5 and 10. Close-up windows are now graded for the view instead, with no mask.
What about Gyroflow?
Gyroflow is the free, open tool most people reach for, and it reads Blackmagic gyro data too. We haven't measured it on these clips yet, so we won't guess how it compares.
Where it sits in the system.
Timing comes first, so only the seconds the film uses get stabilized. Then the stabilized picture is graded, because that's the framing you'll see. How the grade works · the whole system.
Start here
Three ways in. All free.
The Skool community
Directed, Not Operated: one-minute videos, one step each, and a place to ask how. Free on Skool.
Join the free SkoolOne useful video a week.
One step of the system, about a minute long, in your inbox. Nothing else.
A 15-minute call
Tell me what slows your edit down. I'll tell you which step I'd hand to the system first.
Book a free 15-minute call