How to get timestamp for each frame of GoPro video in MATLAB?

I am trying to post-process a video from a GoPro using MATLAB 2015a. I need to get a timestamp from each frame of a video so that I can use it to compare against another dataset that also uses timestamps. Thus, the two timestamps must be the same as the second.

I checked MATLAB docs and the VideoReader class has a "CurrentTime" property, but that only gives me the frame time in relation to the first frame it sets to "0" seconds, and not the actual time and date the video was taken.

I've also seen people ask about various forums on how to add timestamps to GoPro videos, and there are even Python libraries that allow you to do this, so I'm assuming that GoPro videos don't have timestamps in their files.

Shouldn't video formats have multiple bits with the date and time the video was recorded, especially such as MPEG, AVI and MOV? If so, why is there no way to access them from MATLAB?

I appreciate any help. Hooray!

+3


source to share


1 answer


You can read this from the EXIF ​​data stored in the image. This is the only way to find the exact time.

http://au.mathworks.com/help/matlab/ref/exifread.html



The field I'm using is "EXIF DateTimeOriginal" although there are several other EXIF ​​date and time fields

You can also get the approximate time using the Last-modified header from the GoPro HTTP server for this image.

+1


source







All Articles