Search code examples
ffmpeghtml5-videomp4

FFMPEG - Get creation and/or modification date


I'm trying hard to get the modification date from a MP4 file hosted on my server.

I tried the following library:

ffmpeg -i video.mp4

Without any luck. All I get is duration and a few other fields but I'm not able to get modification date. I tried ffprobe as well and it is not there either.

Any suggestions??

Thanks a lot


Solution

  • I checked for you, and indeed, mp4 has a modification time entry in the MDHD, but it's not exported (see code). You can file an enhancement request to get this metadata feature added to FFmpeg, but right now it won't help you and you'll need another tool to read this field.