Closed realchrisolin closed 4 years ago
Hi I have the same problem with my gopro 8 black, firmware 1.6. Do you have an update to the code? Really appreciate your great work on this
I am a dummy at these libraries. However, just to ignore these errors, and get some output, one can replace:
klv = KLVData(data,offset)
in gpmf.py with
import struct
try:
klv = KLVData(data,offset)
except KeyError:
print('Could not parse with offset %s', offset)
except struct.error:
print('Could not parse with offset %s', offset)
except UnicodeDecodeError:
print('Could not parse with offset %s', offset)
Hello!
tia
Added a fix to handle unknown Labels
The video used is from the new GoPro MAX, which added a couple new keys to the GPMF spec. VPTS is one, then there's IORI, CORI, and one more I can't remember. I'm pressed for time and can't give much detail. I'll try troubleshooting this and putting in a PR soon if you don't get to it first. GoPro's GPMF repo has details on the new keys.