How to extract mp4 videos from your Google Pixel 6a photos

The Google Pixel 6a phone can take so-called motion pictures. These are jpeg images with a short mp4 video included in the metadata.

This is how you see the image in an normal image viewer.


This command allows you to extract the video from the jpeg file:

exiftool -b -p "${trailer;s/.*(\0\0\0\x1cftypisom)/$1/s}" -ext jpg -w mp4 DIRECTORY or FILENAME

-b
Output metadata in binary format. 


-p "${trailer;s/.*(\0\0\0\x1cftypisom)/$1/s}"
Some magic to remove an offset in the binary file.
https://exiftool.org/exiftool_pod.html#Advanced-formatting-feature

-ext jpg
Process files with the specified extension

-w mp4
New filename extension

DIR
Directory or filename 

 

This is the extracted video:

 





Kommentare

Beliebte Posts aus diesem Blog

Low polygon 3D europe map

Maps for Photo Books

Depth Map from Gallaxy S10 Photos