[FFmpeg-user] Using drawtext for date/time

Alex Agranovsky alex at sighthound.com
Thu Oct 8 21:11:46 CEST 2015


I’d like to burn a date/time using drawtext, based on PTS with the addition of a specified basetime. Looking at the code, expansion=strftime seems to do exactly what I want — but it is marked as deprecated. Alternatives don’t seem to cut it: func_pts  doesn’t print date and does not take basetime into account, func_strftime doesn’t take basetime into account, and uses current time rather than PTS. What is the reason the strftime expansion had been deprecated? Is there a current equivalent?

- Alex

More information about the ffmpeg-user mailing list