gyroflow / gyroflow-ofx

GNU General Public License v3.0
105 stars 7 forks source link

Bad performance when used with DJI Avata 2 videos #61

Open Shadetail opened 1 month ago

Shadetail commented 1 month ago

I've been using gyrfolow ofx plugin with GoPro 11 mini for like a year now. Recently I started using it with my new Avata 2 drone, but whenever I do, I get severe lag, something that I never experienced with GoPro footage, despite GoPro footage being significantly higher resolution at 5.3k vs 4k for Avata 2.

How this manifests, is that when clicking on clip, davinci freezes for a few seconds while it loads the clip, then it works normally unless I try to change a value of parameters in realtime with the mouse, for example if I try to move the horizon roll slider i get 1-2 second lags as the gyroflow is trying to rotate the video accordingly, while with GoPro footage all this has always been smooth and realtime. With GoPro I could have hundreds of gyroflow ofx enabled clips in the timeline, and it would all work smoothly, but with Avata 2 clips, if I click on a clip that I haven't been seeking through in the past few minutes, I get a freeze of up to 7 seconds as I wait for it to load.

I first expected this might be a davinci issue, but it really only happens with gyroflow enabled, and my guess is that it is somehow connected to the lens profile, if not gyro data itself, rather than with the video. As I understand it, this profile has been provided by DJI. Maybe they messed it up somehow?

This issue bad enough that it's making me consider just sticking a GoPro on Avata 2 despite Avata 2 having a larger senzor size, just because it makes editing and previewing the videos so much more difficult.

Here is a link to unedited video file of one of my flights that includes gyro data that can be used for repro: https://drive.google.com/file/d/1Cs7lhTqp2cEgoSkHwKH9l2WLCj8QyySE/view?usp=sharing

AdrianEddy commented 1 month ago

Have you tried the dev build of the plugin? https://gyroflow.xyz/devbuild/

AdrianEddy commented 1 month ago

It was indeed a bug, just updated the nightly build with the fix

Shadetail commented 1 month ago

Hi! Wow that was fast! I downloaded nightly just now of both ofx plugin and standalone gyroflow to test the fix, but found the issue is still happening.

Is it possible that the nightly still didn't finish building the version that contains the fix and I need to wait 24h? I looked around, but couldn't find any way to confirm which version I'm on.

Just in case, here's the video of the bug in action, as I noticed CPU usage graphs behaving very differently with Avata 2 footage vs GoPro footage so I recorded it: https://drive.google.com/file/d/1T2yj8MAZUbVlCAp5xSTPt_VajSjvS9ey/view?usp=sharing

AdrianEddy commented 1 month ago

Hmm, yes that was exactly the bug I fixed. Can you send me gyroflow.log file which is created in C:\Program Files\Common Files\OFX after you close davinci?

Shadetail commented 1 month ago

Here you go: Gyroflow.ofx.log

AdrianEddy commented 1 month ago

Weird, everything looks good in the log. What hardware do you have, is it pc or laptop? Do you have latest GPU drivers?

Shadetail commented 1 month ago

I just updated the nvidia driver from 552.44 to 555.85, but that didn't help. I'm running on a PC in 4k: