-
Notifications
You must be signed in to change notification settings - Fork 473
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
Timezone parsing fix and mov rotation extraction #466
Timezone parsing fix and mov rotation extraction #466
Conversation
Thanks for the great contribution. Nice and clean. |
I just ran this over the test image library and found it regressed |
Also, can you provide a (small) sample file that contains GPS data for regression testing? We don't have a lot of MP4/QuickTime test data. |
I just checked it quickly, for me it runs without issues on |
The files I used for testing location extraction are
Are these considered small? :) |
Yes, video files are often huge 😉 |
I see:
The code currently assumes |
They're small, but if you're able to make them smaller somehow it'd be great. Git doesn't like large files, and the metadata is usually very small. The image library repo is already enormous. Perhaps there's some software that trims them to just a few frames of video without removing any metadata. |
I've successfully used FFmpeg to truncate video files while retaining metadata before, using |
The "©xyz" marker can appear anywhere within the udta chunk. There appears to be a structure to the entries in this data, though I couldn't find documentation on it. This commit introduces a loop that walks through items until one with location data is found. Builds on work in #466.
I played around with location extraction and filed #468 which catches a few more cases. |
https://drive.google.com/open?id=15WnvT9u6-B5CyghNvicFWTGaSRUShgPG Sorry for the late reply, i had a very busy week. I could not manage to truncate MOV files retaining metadata, it only worked for MP4. |
Is there anything else I can help you with? |
Hi Drew,
I did some improvements in the library:
I found that timezone information gets lost when extracting metadata from some images, because the library expects it to be in
HH:mm
format, but actually it is inHHmm
.We needed to extract rotation angle from MOV files, so I implemented very basic handling of track headers.
Best regards,
Ferenc