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

add support for apple live-photo mov file refer #344 #426

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

naughtyGitCat
Copy link

Live Photos is actually two files. Original JPEG/HEIF Image and Full HD Video(QuickTime). In the ios ecology, live-photo connect image with mov with same name, and meta key Content Identifier

If we export the live photo mov file with apple afcservice and afcclient via native protocol, the mov file lack ftyp in the file header

            // for live photo which is export from  native protocols with afcclient/afcservice
            // example 1
            // 00000000: 0000 0008 7769 6465 0033 a50e 6d64 6174  ....wide.3..mdat
            // 00000010: 0000 001f 4e01 051a 4756 4adc 5c4c 433f  ....N...GVJ.\LC?
            // 00000020: 94ef c511 3cd1 43a8 03ee 1111 ee02 00c3  ....<.C.........
            // example 2
            // 00000000: 0000 0008 7769 6465 004f 854d 6d64 6174  ....wide.O.Mmdat
            // 00000010: 0000 002a 4e01 0523 4756 4adc 5c4c 433f  ...*N..#GVJ.\LC?
            // 00000020: 94ef c511 3cd1 43a8 0000 0300 0003 0000  ....<.C.........

the pattern is ....wide....mdat

ref:

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