Author Topic: Gyroscope/accelerometer video stabilization for DSLR  (Read 2486 times)

dream951

  • New to the forum
  • *
  • Posts: 31
  • let's get maximum from our cameras
Gyroscope/accelerometer video stabilization for DSLR
« on: May 18, 2022, 11:03:51 PM »
Hi guys!
Recently, I found a very interesting thing on the vastness of Youtube! Video stabilization for DSLR cameras based on data from the gyroscope and accelerometer.
There was already a commercial version called Stead XP, but it is too expensive, and another method is much cheaper (around 20$) with the same results.
The point is to install the FPV flight controller on the camera body so that during video shooting it records data about camera movements, and then based on them it stabilizes the frame with reference to camera position data, and not the image, which will remove stabilization artifacts as in Warp Stabilizer in PP.
Following the instructions, I ordered everything I needed, made all the buttons and the case, and used the Gyroflow program. The result impressed me, with proper skill, the stabilization is excellent. Shaking from hands when shooting standing removes even by 50 mm, the result is generally excellent at 24. Without thinking twice, I did a shooting test while running and it also turned out to be quite good. And also this method perfectly removes the jelly effect from the rolling shutter, and the strength of the adjustment depends on the strength of the movement - this is magic. This all takes shooting to a new level!
The videos will be below the link, if anyone is interested, then write and I'll tell you everything.
Enjoy!

P.S. I use 5D3 1.2.3 RAW 1920x1080 14-bit lossless + dual iso

https://dropmefiles.com/XudMF
5DIII crop_rec_4k_mlv_snd_isogain_1x3_presets_2022May15.5D3123
Sigma Art 24/1.4 50/1.4 135/1.8 + Canon 24-105/4 70-200/4 + Samyang 8/3.5 + Helios 58-2

dualmp

  • New to the forum
  • *
  • Posts: 5
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #1 on: June 06, 2022, 03:50:12 AM »
Interesting! I suppose this method will work with all cameras? I am using a Samsung NX1 as well as a 5D3.

Ant123

  • Contributor
  • Member
  • *****
  • Posts: 182
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #2 on: June 09, 2022, 02:16:36 PM »
EOS M3 has builtin event procedure "EnableAcceleLogWrite" which creates the "Accelelog0.csv" file (Accelelog1.csv, Accelelog2.csv, Accelelog3.csv, etc) containing the following data:

Code: [Select]
time, x_axis, y_axis, z_axis
 0, 2066, 1029, 2036
 20, 2065, 1031, 2038
 40, 2067, 1036, 2038
 60, 2067, 1029, 2042
 80, 2067, 1027, 2042
 .
 .
 .
 537380, 3074, 2003, 1986
 537400, 3074, 2004, 1986
 537420, 3074, 2004, 1985
 537440, 3074, 2004, 1984
 537460, 3074, 2004, 1984
 537480, 3076, 2003, 1988

Probably it can be used on modern cameras with Canon Basic if this data is sufficient for Gyroflow.

kitor

  • Developer
  • Senior
  • *****
  • Posts: 446
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #3 on: June 09, 2022, 02:51:15 PM »
M3 is PS base, don't assume cbasic interpreter means evprocs will exist on EOS firmware base.
Too many Canon cameras.
If you have a dead R/RP mainboard (e.g. after camera repair) and want to donate for experiments, I'll cover shipping costs.

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 8670
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #4 on: June 09, 2022, 03:51:26 PM »
;-)
I'm pretty sure Ant123 is aware of this ...

Ant123

  • Contributor
  • Member
  • *****
  • Posts: 182
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #5 on: June 09, 2022, 04:39:40 PM »
kitor
I wrote "probably". I don't have access to the firmware of EOS cameras(Digic8, DigicX) with Canon Basic.
But you can look for similar names in your firmware.

kitor

  • Developer
  • Senior
  • *****
  • Posts: 446
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #6 on: June 09, 2022, 05:51:29 PM »
No offence, there were already assumptions from other people from CHDK world  :)

RP evprocs are listed in first post: https://www.magiclantern.fm/forum/index.php?topic=25662.0 R is very similar to that.

Maybe StartGyroRec? This is the closest "name" I can find - but requires checking in ROM.
Too many Canon cameras.
If you have a dead R/RP mainboard (e.g. after camera repair) and want to donate for experiments, I'll cover shipping costs.

Ant123

  • Contributor
  • Member
  • *****
  • Posts: 182
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #7 on: June 09, 2022, 06:32:55 PM »
Maybe StartGyroRec?

Maybe. On EOS M3 "EnableAcceleLogWrite" just sets the flag which is checked in "Accelerometer" task.
I did not find this task in RP's task list. Maybe "EIS" task?

P.S.
M3 uses MMA8452Q chip. The same accelerometer found on PCBs of EOS R, RP, M50

dream951

  • New to the forum
  • *
  • Posts: 31
  • let's get maximum from our cameras
Re: Gyroscope/accelerometer video stabilization for DSLR
« Reply #8 on: June 11, 2022, 08:33:14 PM »
Interesting! I suppose this method will work with all cameras? I am using a Samsung NX1 as well as a 5D3.
Yes, of coarse. You can use it with all devices with built-in camera :)
5DIII crop_rec_4k_mlv_snd_isogain_1x3_presets_2022May15.5D3123
Sigma Art 24/1.4 50/1.4 135/1.8 + Canon 24-105/4 70-200/4 + Samyang 8/3.5 + Helios 58-2