Desired outcome
Add overlay with timestamp for each frame of a video based on the original creation time for the video. E.g. starting at 2022-03-26T15:51:49.000000Z and a second later in the video present 2022-03-26T15:51.50.000000Z
Approach
Creation_time stored in the file already, e.g. when running ffmpeg -i input.mov" it presents creation_time : 2022-03-26T15:51:49.000000Z.
Adding overlay with timestamp to video:
ffmpeg -i input.mov -filter_complex "drawtext=text='%{pts\:gmtime\:1507046400\:%d-%m-%Y %T}': x=100 : y=100: box=1" -c:a copy output.mp4
Challenge/ help needed
Need to replace the gmtime\:1507046400 with the actual creation_time. How does one do it?
Sources


