ExifTool Forum

ExifTool => Newbies => Topic started by: exiflover on May 17, 2019, 03:26:08 PM

Title: Extracting and removing Motion Photos from a Samsung jpg
Post by: exiflover on May 17, 2019, 03:26:08 PM
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
Title: Re: Extracting and removing Motion Photos from a Samsung jpg
Post by: Phil Harvey on May 17, 2019, 05:12:30 PM
The EmbeddedVideoFile is in the JPEG trailer.  Try this to remove it:

exiftool -trailer:all= FILE

- Phil
Title: Re: Extracting and removing Motion Photos from a Samsung jpg
Post by: exiflover on May 17, 2019, 05:31:35 PM
You genius! It works!!!  8)