doodspav / motionphoto

Python library for creating Google and Samsung compatible Motion Photos.
Apache License 2.0
7 stars 0 forks source link

Samsung Gallery - File corrupt or invalid along with blank Windows Photos preview #14

Open NightMean opened 1 month ago

NightMean commented 1 month ago

I found that images produced by your tool work as expected in Google Photos and show as a Motion photo in Samsung Gallery, however when I try to play it on the Samsung Gallery, I get an error saying File corrupt or invalid.

The file is also not viewable in Windows Photos. All I get is a blank screen. I believe these 2 issues have the same root cause.

With files from tool MotionPhotoMuxer, Windows Photos is able to show that it is a Motion Photo and also play it accordingly. There is no need to have the MV as a prefix for Windows Photos to recognize it as motion photo. (Excuse my Windows language settings but the Pohyb means Motion in English.)

image

doodspav commented 1 month ago

So I'm hoping that this will be fixed by a bit of a refactor to use the library used by MPM directly , rather than calling exiftool directly. If that doesn't fix it, then I'll be a bit lost, and it'll probably take quite a bit longer to fix.

PetrVys commented 1 day ago

I believe this is because you're missing the "sefd" header - see https://github.com/PetrVys/MotionPhoto2/blob/main/MotionPhoto2.ps1, lines 146 and 147.