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

improvement: Add support for parsing keys and creation date from under ilst atom. #25

Merged
merged 7 commits into from
Mar 10, 2024

Conversation

dtrejod
Copy link
Owner

@dtrejod dtrejod commented Dec 29, 2023

Before this PR

I thought we needed to path the list atom in order to find the most accurate date time for moov files. However after some testing, I found most iPhone moov files correctly set the mvhd atom with the relevant creation time date.

After this PR

No changes. Just bump to latest go-mp4 pkg.

Requires: abema/go-mp4#159

internal/moovdata/moov.go Outdated Show resolved Hide resolved
Comment on lines 78 to 84
// prefer ilst timestamp
if ilstTs != nil {
return (*ilstTs).UTC(), nil
}
if mvhdTs != nil {
return (*mvhdTs).UTC(), nil
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From inspecting a few exported iOS Photos.app media files, I have found that the ilst and mvhd CreationTimestamp are equal.. I'm not sure when these may differ after probing a few examples..

@dtrejod dtrejod marked this pull request as ready for review March 10, 2024 18:20
@dtrejod dtrejod merged commit ac265ec into main Mar 10, 2024
2 checks passed
@dtrejod dtrejod deleted the dt/keys-parsing branch March 10, 2024 18:21
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

Successfully merging this pull request may close these issues.

1 participant