Extracting video frames date-time data

Hi,
Is it possible to extract date-time of the video file frames while reading them by OpenCv in cpp?
I mean the recording time of the frames.
any help will be appreciated.
Sina

no, not possible. you can get the time relative to the 1st frame, though.

if you are recording that video, maybe you can save timestamps in a seperate text file (or make overlays on the images using putText())

at least, you could save the video with a timestamp in the filename, so all you need is offsets from there

that’s CAP_PROP_POS_MSEC

or use an actual media library/API such as ffmpeg. that gives you full control over the video data, including all “presentation timestamps” (PTS) as well as any offsets or date/time information that may be contained in the video file.