FFMPEG Command to Strip or Remove All Metadata From Audio,Image & Video Files in Command Line



Slightly modifying the command line by @izx, I got this:





The result is (again, checked with exiftool), a metadata record reduced from 81 to 52 lines. Note that you can’t simply remove all metadata, some things will stay.



If you want to remove the newly added encoder field, add this to the command (before the output filename):





The easiest way to do this is to set -map_metadata to use one of the input streams, rather than using global metadata. 99% of the time this should work. NOTE: I’m using avconv, because that’s in the Ubuntu 12.04 repositories; this will probably be drop-in compatible with ffmpeg, since their syntax always is in my experience.









Leave a Reply