[FFmpeg-user] FFmpeg support for strftime with milliseconds support

Dennis Mungai dmngaie at gmail.com
Wed May 3 10:43:14 EEST 2023


On Tue, 2 May 2023 at 18:49, Devin Heitmueller <
devin.heitmueller at ltnglobal.com> wrote:

> On Sun, Apr 30, 2023 at 12:40 PM Dennis Mungai <dmngaie at gmail.com> wrote:
> >
> > Hello there,
> >
> > As mentioned in the subject line: Does/can ffmpeg allow strftime in
> > milliseconds?
> > The closest I've seen to this would be
> > https://github.com/InSoundz/ffmpeg-strftime-milliseconds
>
> Do you mean in stdout/stderr log output, or in stuff like vf_drawtext?
>  If the latter, changes did land a few months ago to include
> milliseconds in the vf_drawtext filter.  For the log output, you can
> call av_log_set_callback() to provide a custom callback which includes
> a more verbose date/time that includes millisecond resolution.  If you
> want an example, I do it in my non-upstream tree here:
>
>
> https://github.com/LTNGlobal-opensource/FFmpeg-ltn/commit/3c4a5464986c1f5a3d99847ec09ed351935aa3b9
>
> Devin
>
> --
> Devin Heitmueller, Senior Software Engineer
> LTN Global Communications
> o: +1 (301) 363-1001
> w: https://ltnglobal.com  e: devin.heitmueller at ltnglobal.com
>

This is needed for strftime expansion in the segment muxer, so that
segments can be generated at clocktime with millisecond precision.
Something similar to
https://stackoverflow.com/questions/61129758/ffmpeg-strftime-microseconds


More information about the ffmpeg-user mailing list