Remove all GPS data from mov file

Started by Florisz, June 15, 2021, 05:26:21 PM

Previous topic - Next topic

Florisz

According to the documentation the following command should remove all gps data from file:
exiftool -gps:all= myiphonevideo.mov
But on the above command I get:
    0 image files updated
    1 image files unchanged

I found with following command that all GPS data(and a little more) is successfully removed:
exiftool -Keys:all= myiphonevideo.mov

---- Keys ----
Location Accuracy Horizontal    removed
GPS Coordinates                 : removed
Make                            : removed
Model                           : removed
Software                        : removed
Creation Date                   : removed (but from other field still available)
---- Composite ----
Image Size                      : 1920x1080
Megapixels                      : 2.1
Avg Bitrate                     : 7.9 Mbps
GPS Altitude                    : removed
GPS Altitude Ref                : removed
GPS Latitude                    : removed
GPS Longitude                   : removed
Rotation                        : 90
GPS Position                    : removed

Some of the 'Composite' attributes were removed as well. Especially the GPS related ones... :)

StarGeek

Quote from: Florisz on June 15, 2021, 05:26:21 PM
According to the documentation the following command should remove all gps data from file:
exiftool -gps:all= myiphonevideo.mov

That is incorrect.  It will remove all tags in the GPS Group only, which, as stated on that page, are part of EXIF standard and contained in the EXIF block.  It will not affect any GPS tags that may be in the XMP group, the Quicktime group, or any embedded GPS tracks in video files.  Additionally, some cameras put EXIF block in video files, but this is non-standard and goes against the specs.  As such, exiftool can't edit any GPS data that might reside there.  Similarly, since there is no standard for GPS tracks in video files and every camera company does it differently (exiftool knows of 53 different formats), exiftool cannot edit such tracks.

To remove any gps tag that exiftool can edit, you would use a wildcard
exiftool -GPS*= myiphonevideo.mov

But as I said, since exiftool can't edit EXIF or tracks in a video file, this will not remove such data.  The only way to remove that GPS data would be to remux the video with a program such as FFMpeg.

QuoteSome of the 'Composite' attributes were removed as well. Especially the GPS related ones... :)

Composite tags do not actually exist within the file.  They are created based upon other existing tags in the file.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).