Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOPRO Highlight Tags #21

Closed
OrbisTerrae opened this issue Jan 22, 2018 · 2 comments
Closed

GOPRO Highlight Tags #21

OrbisTerrae opened this issue Jan 22, 2018 · 2 comments

Comments

@OrbisTerrae
Copy link

Thanks for sharing the parser, super useful !

What would be the best way to extract the "highlight" tags from the GPMF file ?

Many Thanks !

@dnewman-gpsw
Copy link
Collaborator

Hightlight tag are stored within the 'udta' atom within the header of the mp4. It comes in two forms: the depecrated 'HMMT' atom (only stores manual highlights), or the embedded 'GPMF' atom within 'udta' that contains all the global clip data. HERO6 uses the second type for all highlights detected. The function OpenGPMFSourceUDTA() in the demo code shows how to access this. There is DEVC with data like:

"DEVC": {
"DVID": "HLMT",
"DVNM": "Highlights",
"STRM": {
"TSMP": 3,
"RMRK": "struct: Time (ms), in (ms), out (ms), Location XYZ (deg,deg,m), Type, Confidence (%) Score",
"TYPE": "LLLllfFff",
"SCAL": [1, 1, 1, 10000000, 10000000, 1, 1, 1, 1],
"complex structure (HLMT)": "36-bytes 3 samples",
"HLMT": [9225,9225,9225,0,0,0.00,MANL,100.00,100.00, 3865,3641,4254,0,0,0.00,FUSE,81.79,31.37, 11848,11666,11936,0,0,0.00,AIMU,57.52,28.76]
}
},

The TYPE is a FOURCC, some examples:
MANL - Manual - you pressed the highlight button during a capture.
AIMU - IMU based highlights -- like zero G moments.
AACD - Abrupt Audio Change Detector -- detects screams, engine starts and crash sounds.
FUSE - Some fused best estimate of highlights

@JuanIrache
Copy link

JuanIrache commented Dec 5, 2019

Hi, I'm experimenting with this and I can find the manual highlight tags in the GPMF atom, but I have never found any other TYPE (AIMU, AACD, etc.) Is this being used?

Edit: I did find a couple of AACD tags in samples of hero6, but nothing in newer cameras

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants