user26984: 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


user26984: 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


26984: <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.stack.imgur.com/TDfpA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/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>
 26984: <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>
