Extracting and removing Motion Photos from a Samsung jpg

Started by exiflover, May 17, 2019, 03:26:08 PM

Previous topic - Next topic

exiflover

Hi,

I have a Motion Photo jpeg file and I'd like to produce two files from it:
1. A video
2. A photo (maintaining EXIF information apart from the video)

To extract the video I can do this:
exiftool -b -EmbeddedVideoFile file.jpg >video.mp4

But how can I extract just the photo, without stripping out all the other EXIF metadata too?

I tried this:
exiftool -EmbeddedVideoFile= file.jpg
but I get the error:
Warning: Sorry, EmbeddedVideoFile is not writable

Thanks  :D

Phil Harvey

The EmbeddedVideoFile is in the JPEG trailer.  Try this to remove it:

exiftool -trailer:all= FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).