Planar Transform .settings file format

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

krzysztof.kuczek

  • Posts: 3
  • Joined: Mon Aug 19, 2019 8:29 am
  • Real Name: Krzysztof Kuczek

Planar Transform .settings file format

PostThu Nov 12, 2020 11:42 am

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 :)
Offline

Hendrik Proosa

  • Posts: 1256
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Planar Transform .settings file format

PostThu Nov 12, 2020 2:32 pm

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.
I do stuff.
Offline
User avatar

Chad Capeland

  • Posts: 2534
  • Joined: Mon Nov 10, 2014 9:40 pm

Re: Planar Transform .settings file format

PostTue Nov 17, 2020 6:23 pm

Those are Lua tables, not XML, BTW.
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline

krzysztof.kuczek

  • Posts: 3
  • Joined: Mon Aug 19, 2019 8:29 am
  • Real Name: Krzysztof Kuczek

Re: Planar Transform .settings file format

PostFri Nov 20, 2020 8:31 am

Thank you both.
Have a nice day
Kris

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 5 guests