I have tons of videos of my children and they have been moved from drive to drive many times over the years. Is there a way to easily get the date the video was taken? I'm importing them into iTunes currently, but I can find nothing that shows the date the video was taken?
MediaInfo gives you a way to check the file metadata, including the creation date for the video and audio streams. This is free, cross platform and open source and also provides a GUI for you to check.
If you're up for using the command line, with MediaInfo:
mediainfo in.mp4 | grep "Encoded date" | head -n1 | cut -d: -f2-
ffprobe -v quiet -print_format flat -show_format in.mp4 | grep creation_time | cut -d= -f2-
If you have ffmpeg installed you can type
and it will give you a list of information about the file with in the end the creation time.
I'm sure it is possible to automate this with a bash script and maybe even to extract the creation time out of the list of info, but I wouldn't know how exactly.
It entirely depends on what information the camera embedded in the video file. It may or may not have actually stored the date. If the information is in the meta data, then any advanced video player or editing tool should be able to see the meta data and tell you the date associated. Also, it is possible that the file date may be accurate, though there are a lot of things that can cause the file date to change. The meta data, if present is the most accurate and best bet though if it is present.
MediaInfo shows you all sorts of meta data for video files.
It offers you a GUI to easily check the files by hand. Look for the field General > Encoded date. You might have to change the View.
In order to automate the job, I recommend the console though:
It is also possible to output only certain fields like the encoded date:
mediainfo --Inform="General;%Encoded_Date%" video.mp4