:: God's Metadata Remover :: ====================== :: :: This script requires the following free, open-source binaries: :: :: FFmpeg (ffmpeg.exe) - https://ffmpeg.org/ :: ExifTool (exiftool.exe) - https://exiftool.org/ :: ImageMagick (magick.exe) - https://imagemagick.org/ :: :: Usage: :: :: remmeta file.mp4 :: @echo off setlocal enabledelayedexpansion set "vid_ext=.avi;.mkv;.mov;.mp4;.webm" set "img_ext=.avif;.jpeg;.jpg;.png;.webp" set "doc_ext=.pdf" set file=%1 set ext=%~x1 for %%e in (%vid_ext%) do ( if /i "%%e"=="%ext%" ( ffmpeg -i %1 -map_metadata -1 -c copy %~n1_tmp%~x1 del %1 && ren %~n1_tmp%~x1 %~n1%~x1 goto :done ) ) for %%e in (%img_ext%) do ( if /i "%%e"=="%ext%" ( magick %1 -strip %1 goto :done ) ) for %%e in (%doc_ext%) do ( if /i "%%e"=="%ext%" ( exiftool -overwrite_original -All= %1 goto :done ) ) echo ERROR - Invalid file type: %~x1 :done