Davidebyzero / EXIFfromMP4

Extracts EXIF data from video files (currently just 4K/6K Photo videos recorded by the Panasonic GH5)
GNU General Public License v3.0
5 stars 3 forks source link

Any updates on per-frame pitch and roll? #1

Open nickfujita opened 4 years ago

nickfujita commented 4 years ago

Hey, just found your reddit post and this code while looking for a solution that would allow me to get the per-frame pitch and roll data. However, seems like back in 2017, this was not possible. Was wondering if there were possibly any new developments since then, possibly that were included in one of the firmware updates from Panasonic, or possibly on files from the GH5S.

Davidebyzero commented 4 years ago

Hi Nick, thanks for asking this question :)

I took another look at the per-frame metadata, and sadly there is nothing new in Firmware v2.6 (as compared to v1.1).

However, I don't know how I missed it, there actually is per-frame pitch and yaw accelerometer data! (Looking into my old video files, it is in even the earliest ones, so this does not appear to be something added in a firmware update.) I've put this into a commit.

There is no absolute pitch or roll. I haven't tried summing the accelerometer data; it's possible that the dead-reckoning from that might not be too bad. But there would still be no roll.

nickfujita commented 4 years ago

Thanks for taking a look into this! That's awesome that you were able to find the pitch and yaw data in the per frame metadata! It just sucks that the roll data is still not in there, as that's the one attribute that I'm really after.

Was looking through the code a bit, and was wondering if it's possible to integrate this directly into exiftool? Seems like there is an option on that tool which allows for per frame processing.

Also was wondering if you by chance had a change to sync with the creator of exiftool? Wondering if a mixture of both your knowledge on how to process these files could lead to the discovery of per frame roll data?