gyroflow / gyroflow

Video stabilization using gyroscope data
https://gyroflow.xyz
GNU General Public License v3.0
6.22k stars 264 forks source link

Parse accelerometer metadata from mp4 files recorded on Android #793

Closed UnlimitedIllusionsSoftware closed 3 months ago

UnlimitedIllusionsSoftware commented 3 months ago

Is there an existing feature request for this?

Description

If I understand correctly accelerometer metadata is needed to make "Horizon Lock" feature work. Is that possible to add support for such kind of metadata similar with https://github.com/gyroflow/gyroflow/issues/753? (big-endian, "mett" box, application/gyro and application/accel mime type)

AdrianEddy commented 3 months ago

Can you share a sample file?

UnlimitedIllusionsSoftware commented 3 months ago

Sure, here it is (Pixel 6 Pro, NO OIS, 3840x2160, 30 FPS) https://drive.google.com/file/d/1smWmTq_zUF5AE8Ut_keDiUKNhOGgFiZq/view?usp=sharing

AdrianEddy commented 3 months ago

That file seems corrupted, the stbl for the accel track is empty: image

UnlimitedIllusionsSoftware commented 3 months ago

Could you please try this one: https://drive.google.com/file/d/1L7GJsNqf8JX6wsYDCNfsx8qMNLYoUhSh/view?usp=sharing

AdrianEddy commented 3 months ago

this one is good. What's the unit of the accelerometer? m/s² or g?

UnlimitedIllusionsSoftware commented 3 months ago

this one is good. What's the unit of the accelerometer? m/s² or g?

m/s²

AdrianEddy commented 3 months ago

Done in https://github.com/AdrianEddy/telemetry-parser/commit/3097e1b6c2750256f4c021e725cc822d58e5d1ea Latest dev build: https://gyroflow.xyz/devbuild/