<p>i found my answer in this link:</p>

<p><a href="http://man7.org/linux/man-pages/man3/strftime.3.html" rel="nofollow noreferrer">strftime - format date and time</a></p>

<p><a href="https://linux.die.net/man/3/strftime" rel="nofollow noreferrer">strftime(3) - Linux man page</a></p>

<p>ex: i use this command for demo and i made several other command for different date format</p>

<pre><code>ffmpeg -y -i input.mp4 -vf "drawtext=fontfile=roboto.ttf:fontsize=36:fontcolor=yellow:text='%{pts\:gmtime\:1575526882\:%A, %d, %B %Y %I\\\:%M\\\:%S %p}'" -preset ultrafast -f mp4 output.mp4
</code></pre>

CC BY-SA 4.0
2019-12-25T04:58:11.043Z
2019-12-25T04:58:11.043Z
Milan Tejani
<p>I am using below command to add timestamps to video:</p>

<pre><code>ffmpeg -y -i input.mp4 -vf "drawtext=fontfile=roboto.ttf:fontsize=36:fontcolor=yellow:text='%{pts\:gmtime\:1456007118}'" -preset ultrafast output.mp4
</code></pre>

<p>command is working but i don't get desired output. it is adding timestamp like this:</p>

<p><a href="https://i.sstatic.net/TDfpA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TDfpA.png" alt="sample video screenshot"></a></p>

<p>I want to use different date format like this:</p>

<ol>
<li><a href="https://developer.android.com/reference/java/text/SimpleDateFormat#examples" rel="nofollow noreferrer">Simple Date Format</a></li>
<li><a href="https://developer.android.com/reference/java/text/SimpleDateFormat#date-and-time-patterns" rel="nofollow noreferrer">Date and Time Patterns</a></li>
</ol>

<p>I get this date :</p>

<pre><code>2016-02-20 22:25:20
</code></pre>

<p>but i want this :</p>

<pre><code>Sat, 20 Feb 2016 22:25:20 -0700
</code></pre>

<video><ffmpeg><video-editor>
How to burn timestamp in video with different date format using FFMPEG?
Milan Tejani
# How to burn timestamp in video with different date format using FFMPEG?

(Asked by: username_0 on 2019-12-04)

I am using below command to add timestamps to video:
ffmpeg -y -i input.mp4 -vf "drawtext=fontfile=roboto.ttf:fontsize=36:fontcolor=yellow:text='%{pts\:gmtime\:1456007118}'" -preset ultrafast output.mp4

command is working but i don't get desired output. it is adding timestamp like this:

I want to use different date format like this:

Simple Date Format
Date and Time Patterns

I get this date :
2016-02-20 22:25:20

but i want this :
Sat, 20 Feb 2016 22:25:20 -0700

**Tags:** video, ffmpeg, video-editor


---

## 1 answers

### Answer by username_0 on 2019-12-25. Score: 2 | Accepted answer

i found my answer in this link:
strftime - format date and time
strftime(3) - Linux man page
ex: i use this command for demo and i made several other command for different date format
ffmpeg -y -i input.mp4 -vf "drawtext=fontfile=roboto.ttf:fontsize=36:fontcolor=yellow:text='%{pts\:gmtime\:1575526882\:%A, %d, %B %Y %I\\\:%M\\\:%S %p}'" -preset ultrafast -f mp4 output.mp4


---

