
So, that's a 1.87 second H.264 video with resolution 1024x768, which seems to roughly match up with what I see from Google's apps/website (a drop in resolution and change in aspect ratio). Unsupported codec with id 0 for input stream 2 Unsupported codec with id 0 for input stream 1 I got a GStreamer crash when trying to play it, but ffmpeg seems to be able to handle it and displayed the following metadata: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.mp4':ĭuration: 00:00:01.87, start: 0.000000, bitrate: 20283 kb/s If transfer all the data after the EOI segment to a separate file, you'll have a standard MPEG-4 container. I suspect this custom metadata identifies the file as a motion photo. The image file appears to be a standard JPEG image, but continues on after the End of Image segment ( 0xFF 0xD9).Įxiftool reports unrecognised MakerNotes. I was curious about this so started pulling apart one of the photos from my phone, and here's what I found:
#GOOGLE PHOTO VIEWER FOR PC SOFTWARE#
I haven't seen any software to view them other than on the Google Photos website. Php google_motion_photo_splitter.php c:\test\* Php google_motion_photo_splitter.php c:\test\*.jpg Some example uses: php google_motion_photo_splitter.php c:\test\file.jpg

It's non-destructive - the source file(s) are not deleted.


You just pass a path as the first argument and it will split any files that it believes are motion photos. I did some experimenting based on the post by and came up with a simple PHP script that successfully split every google motion photo i threw at it.
