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 : 05th Dec, 2019 06:21 AM
//like 1st,2nd,3rd,4th,5th.... etc
what changes i have to do to achieve this?