ExifTool Forum

General => Metadata => Topic started by: Indiana Moans on December 30, 2020, 05:14:17 PM

Title: Strip all metadata from movies?
Post by: Indiana Moans on December 30, 2020, 05:14:17 PM
I hate all the information that gets embedded when I want to share a file! I always strip the metadata from images, that's easy to do, but what about movies? Can ExifTool do this, and if not, can anyone recommend anything that will?
Title: Re: Strip all metadata from movies?
Post by: StarGeek on December 30, 2020, 06:29:30 PM
Exiftool can strip some metadata away from a video file, but it's not going to strip away data that's embedded in the stream or unusual things like an EXIF block (which is against the spec).

Your best bet is to losslessly remux with something like ffmpeg.  For example, this command will quickly, losslessly create a new file that shouldn't have any personal identifiable data
ffmpeg -i Input.mp4 -vcodec copy -acodec copy Output.mp4

There are GUIs for ffmpeg, if that's easier, as well as other programs such as AVIDemux (http://avidemux.sourceforge.net/).  I use the latter to do lossless cut/paste on videos, as long as the cut is on the key frames.
Title: Re: Strip all metadata from movies?
Post by: Indiana Moans on December 31, 2020, 05:09:09 AM
Hey thanks for that info! :-) I'm not very comfortable with command line stuff so always prefer GUIs. I already use AVIDemux, a great tool for cropping movies - could you please tell me how I might use it to remove the metadata?
Title: Re: Strip all metadata from movies?
Post by: Phil Harvey on December 31, 2020, 07:59:48 AM
Quote from: StarGeek on December 30, 2020, 06:29:30 PM
but it's not going to strip away data that's embedded in the stream or unusual things like an EXIF block (which is against the spec).

Actually, I think it should remove EXIF blocks if they exist, but I haven't tested all possibilities so I can't say for sure.  But StarGeek is correct that ExifTool doesn't deal with metadata if it exists in the video stream.

- Phil
Title: Re: Strip all metadata from movies?
Post by: StarGeek on December 31, 2020, 10:52:09 AM
Quote from: Indiana Moans on December 31, 2020, 05:09:09 AM
I already use AVIDemux, a great tool for cropping movies - could you please tell me how I might use it to remove the metadata?

Just load it up, set everything to copy, and then save it out.  Let's see, I already have an image posted here somewhere...
(https://i.imgur.com/wHQfIZG.png)
Title: Re: Strip all metadata from movies?
Post by: Indiana Moans on December 31, 2020, 11:34:10 AM
Quote from: StarGeek on December 31, 2020, 10:52:09 AMJust load it up, set everything to copy, and then save it out.
Wow, this is great! In other words, Avidemux strips all the metadata *by default!* Fantastic,  thank you! :-)

Then of course I can use ExifTool to check it worked!
Title: Re: Strip all metadata from movies?
Post by: StarGeek on December 31, 2020, 11:38:16 AM
Quote from: Indiana Moans on December 31, 2020, 11:34:10 AMIn other words, Avidemux strips all the metadata *by default!* Fantastic,  thank you! :-)

Which is actually a major annoyance for me.  I have to jump through a bunch of hoops to get some of the original timestamps into the new video.
Title: Re: Strip all metadata from movies?
Post by: Indiana Moans on December 31, 2020, 12:10:38 PM


Quote from: StarGeek on December 31, 2020, 11:38:16 AMWhich is actually a major annoyance for me.  I have to jump through a bunch of hoops to get some of the original timestamps into the new video.
Ah, yes, I can imagine it might be annoying  for some tasks. The program could do with a nice big checkbox "Copy metadata".