Skip to content

Instantly share code, notes, and snippets.

@rohitfarmer
Last active February 18, 2024 01:12
Show Gist options
  • Save rohitfarmer/6eeb1151ee55ba292df8c2551d583110 to your computer and use it in GitHub Desktop.
Save rohitfarmer/6eeb1151ee55ba292df8c2551d583110 to your computer and use it in GitHub Desktop.
Audio video file manipulation and editing in Linux

To Remove EXIF Information from an Image

Software required

sudo apt-get install libimage-exiftool-perl

View EXIF information

exiftool image.jpeg

Remove all EXIF information from a single file

exiftool -all= image.jpeg

Bulk remove EXIF information (these commands will also create a copy of images with _original extension.

exiftool -all= *
exiftool -all= *.JPG

To Remove Meta Data from a Video

Exiftool can also be used to fetch and view metadata from a video

Software required

sudo apt-get install ffmpeg libimage-exiftool-perl

Copy original file to another file with the data stripped out

ffmpeg -i test.mov -map_metadata -1 -vcodec copy -acodec copy test-nometadata.mov

To Remove Meta Data from an Audio File

FLAC

metaflac --remove-all file.flac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment