DEV Community

Milan Tejani
Milan Tejani

Posted on

How to add day suffix[st,nd,rd,th] in timestamp's date in ffmpeg command?

I am using this command to add time stamp in video:

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

this command generate date & time: 05 Dec, 2019 06:21 AM

but i want to add day suffix after day in date like this…

Top comments (0)