-
Notifications
You must be signed in to change notification settings - Fork 100
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
Live Photo path is wrong for referenced libraries #1459
Comments
This is almost certainly due to referenced live photos having a different naming scheme than those in a managed library. In the managed library, the photo is stored thusly:
and the live component is in:
So the code is looking for the the same path with |
I have this working using a heuristic but it appears the database stores a bookmark to the actual live video for referenced files. I'm working on figuring out how to read this so I can do a direct lookup instead of the "guess" based on heuristic. |
This query will retrieve the path to the live video for referenced images by UUID: SELECT
ZASSET.ZUUID,
ZFILESYSTEMVOLUME.ZNAME,
ZFILESYSTEMBOOKMARK.ZPATHRELATIVETOVOLUME,
ZFILESYSTEMBOOKMARK.ZBOOKMARKDATA
FROM
ZASSET
JOIN ZINTERNALRESOURCE ON ZINTERNALRESOURCE.ZASSET = ZASSET.Z_PK
JOIN ZFILESYSTEMBOOKMARK ON ZFILESYSTEMBOOKMARK.ZRESOURCE = ZINTERNALRESOURCE.Z_PK
JOIN ZFILESYSTEMVOLUME ON ZFILESYSTEMVOLUME.Z_PK = ZINTERNALRESOURCE.ZFILESYSTEMVOLUME
WHERE
ZINTERNALRESOURCE.ZDATASTORESUBTYPE = 18; -- Live video component |
This should be fixed in v0.67.9. Please upgrade and let me know if you're still seeing the issue. Thanks for the detailed bug report which made finding this issue easy! |
Super thanks for the fix and quick turnaround! |
Before submitting a bug report, please ensure you are running the most recent version of osxphotos and that the bug is reproducible on the latest version
Describe the bug
I'm getting a missing live photo error on export. Tried with a few pics.
To Reproduce
osxphotos export live --library "/Users/Shared/Pictures/iPhoto Shared Library.photoslibrary/database/Photos.sqlite" --name IMG_20220416_140931 --name IMG_20240205_124713 --verbose --timestamp
The Pics are Live Photos
Dump of one pic
Of course there is no live photo path entry! how come? Would it be because they are REFERENCED?
`osxphotos debug-dump --dump photos --uuid C4F609E9-1283-4F0D-980C-7A6287ED8A9A`
Expected behavior
Live Photos pai HEIC/MOV or JPG/MOV exported.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Would like to export Live Photos to then use
osxphotos import
to recreate my full Library. #1267The text was updated successfully, but these errors were encountered: