I have some video footage from my phone's dash camera app. In the app, the video plays with the timestamp showing. However, exporting the file to my computer does the video only, without the timestamp.

Is there a simple way to add the timestamp with (preferably free) Windows software? I don't need the timestamp to be extracted from metadata. I can compare the video on my phone app to the one on my PC, and get the timestamp 'close enough' if it will let me put the start time on it manually where I want.

1 Answer 1


You can use FFmpeg, a free command-line tool, to do this.

Basic command is

ffmpeg -i input.mp4 -vf "drawtext=fontfile=font.ttf:
                        box=1:[email protected]:
                        text='Time\: %{pts\:gmtime\:1466507118}'" output.mp4

(this should be in one line)

The value you need to change is 1466507118. This is the Unix epoch time representation of your intended date and time.

  • Fantastic! This worked perfect once I changed the fontfile path to fontfile=/Windows/Fonts/arial.ttf
    – SomeGuy
    Commented Aug 13, 2016 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.