I am trying to timestamp an .mp4 video with seconds and milliseconds using ffmpeg. I can timestamp with hours, minutes, seconds and milliseconds using the code below but just can't figure out how to print seconds and milliseconds.
ffmpeg -i input.mp4 -vf "drawtext=:text='%{pts\:s}':rate=25:start_number=0:x=(w-tw)/2:y=h-(3*lh):fontcolor=white:fontsize=50,drawtext=:text='%{pts\:hms}':rate=25:start_number=0:x=(w-tw)/2:y=h-(2*lh):fontcolor=white:fontsize=50" output.mp4