Pictures in jpeg format use EXIF to store metadata, in case you rename the file or change its timestamp is very useful. However, I don't know if that is the case for video files. Is there any kind of format that supports such implementation? The only way I know of preserving metadata on a video file is either set the filename correctly or use mkv with the description fields and such. However I would like to see if that can be done in mp4 of avi format to make it more widely playable.

3 Answers 3


Yes, I have used exiftool to read the metadata from mov videos from iphone and mp4 videos from android. It contains metadata like the datetime that the video was taken (not when the file was saved or modified). You can also use exiftool to write metadata as well.



Yes, but it differs by file format. For example, the QuickTime container format has many types of metadata within. This format type is used by MOV, M4V, MP4 and other less popular ones.

You mention MKV (Matroska) which uses a different container format again.

  • 1
    Do you know if the videos taken by iOS and Android devices save the Geolocation as a meta data if the user has allowed it?
    – aytunch
    Mar 5, 2020 at 10:17
  • Same question here
    – Bricktop
    Dec 26, 2022 at 17:50

You can do it with FFMpeg lib. Check it out from here: https://github.com/wseemann/FFmpegMediaMetadataRetriever

Example code:

FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever();
mmr.setDataSource(context, uri);
String comment = mmr.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_COMMENT);

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .