Page 1 of 1

Planar Transform .settings file format

PostPosted: Thu Nov 12, 2020 11:42 am
by krzysztof.kuczek
Hi,
I'm looking for xml specification of the settings file for planar transform fusion block.
It looks like it have some info about every single frame transformation incuded
Code: Select all
KeyFrames = {
            [799] = { 0, RH = { 799.333333333333, 0.333333333333333 }, Flags = { Linear = true, LockedY = true }, Value = Matrix { RefTime = 799, ToRef = { [0] = 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } },
            [800] = { 1, LH = { 799.666666666667, 0.666666666666667 }, RH = { 800.333333333333, 1.33333333333333 }, Flags = { Linear = true, LockedY = true }, Value = Matrix { RefTime = 799, ToRef = { [0] = 1.01720168005569, 0.00263411448052445, 0, 0.0167633870315224, 0.00285460445392109, 1.00995069265524, 0, 0.00159388257877208, 0, 0, 1, 0, -0.00780060232002443, -0.00277141833334184, 0, 1 } } },
            [801] = { 2, LH = { 800.666666666667, 1.66666666666667 }, RH = { 801.333333333333, 2.33333333333333 }, Flags = { Linear = true, LockedY = true }, Value = Matrix { RefTime = 799, ToRef = { [0] = 1.05960208634185, 0.0192063500651968, 0, 0.0596743133951917, 0.00179001085997314, 1.0285350192995, 0, -0.00203739240288236, 0, 0, 1, 0, -0.0218351856751792, -0.011505930337684, 0, 1 } } },
            [802] = { 3, LH = { 801.666666666667, 2.66666666666667 }, RH = { 802.333333333333, 3.33333333333333 }, Flags = { Linear = true, LockedY = true }, Value = Matrix { RefTime = 799, ToRef = { [0] = 1.03477894413145, 0.005399344445719, 0, 0.0339745637422046, 0.00487102627783276, 1.02053609842898, 0, 0.00296832301121994, 0, 0, 1, 0, -0.0194205233027508, -0.00759601692118741, 0, 1 } } },


The reason behind is trying to stabilize video based on external gyro data. I need somehow pass info from external file to merge/crop block which will rotate/move/scale every single frame based on provided data.
Maybe something like this already exists, just the block, which could read text/xml file ?

I want to build racing drones onboard stabilization workflow, which will utilize gyro/accelerometer data to stabilize footage. Similar to the tools for gopro camera which use gyro meta data stored in movie files...

Thank you in advance
Kris

PS
I would like to avoid developing OpenFX plugin :)

Re: Planar Transform .settings file format

PostPosted: Thu Nov 12, 2020 2:32 pm
by Hendrik Proosa
It looks like 4x4 matrices strored in relation to transform in reference frame. The LH and RH data looks like some kind of time frame, maybe related to motion blur sampling etc. 4x4 at reference time (here frame 799) is identity matrix, as expected.

Re: Planar Transform .settings file format

PostPosted: Tue Nov 17, 2020 6:23 pm
by Chad Capeland
Those are Lua tables, not XML, BTW.

Re: Planar Transform .settings file format

PostPosted: Fri Nov 20, 2020 8:31 am
by krzysztof.kuczek
Thank you both.
Have a nice day
Kris