exiftool -all= does not remove dates

Started by Zetorg, January 01, 2024, 10:26:49 AM

Previous topic - Next topic

Zetorg

This command:
exiftool -all= file
Does not remove date-time metadata, which is still available:
Create Date                     : 2010:08:14 00:00:00
Modify Date                     : 2010:08:14 00:00:00
Track Create Date               : 2010:08:14 00:00:00
Track Modify Date               : 2010:08:14 00:00:00
Media Create Date               : 2010:08:14 00:00:00
Media Modify Date               : 2010:08:14 00:00:00

removed with this command:
exiftool -overwrite_original -time:all="" -wm w file
Can't the app just be updated to remove this metadata as well with '-all=' option? Why has to be done separately, is it not EXIF but other kind of metadata like IPTC, XMP, etc.?

StarGeek

The reason is that these tags cannot be removed, only cleared.

Previous post by Phil on the subject.

Quote from: Zetorg on January 01, 2024, 10:26:49 AMis it not EXIF but other kind of metadata like IPTC, XMP, etc.?

It is not EXIF, it is Quicktime metadata (see the Quicktime tags page).  EXIF is only a very small percent of the entire range of metadata.  Additionally, EXIF data is non-standard in videos.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Zetorg

Isn't then any flag to remove all metadata that can be removed, and those that can't just clear them?

StarGeek

There is not.

This situation pretty much applies only to videos (and a similar, but different situation with PDFs).  And there can be other data in video files that exiftool can't remove because it is non-standard, such as EXIF data as I mentioned, or embedded in the streams, such as GPS tracks, and exiftool doesn't edit video streams.

The best way to clear video data would be to use ffmpeg with a command like this
ffmpeg -hide_banner -i input.mp4 -c copy -map 0 -map_metadata -1 output.mp4

This will do a lossless remux of the video.  It does not recompress the video and will be as fast as copying the file.  You can also use a program such as AVIDeMux to do so.  The settings I use to copy the streams can be found in this post.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Zetorg

Thanks a lot, didn't think of that possibility.