[FFmpeg-devel] [PATCH v2] lavfi/drawtext: Add localtime_ms for millisecond precision
"zhilizhao(赵志立)"
quinkblack at foxmail.com
Wed Dec 29 12:47:07 EET 2021
> On Dec 13, 2021, at 4:12 AM, Nicolas George <george at nsup.org> wrote:
>
> Thilo Borgman (12021-12-12):
>> + at item localtime_ms
>> +Same as @code{localtime} but with millisecond precision.
>> +It can accept an argument: a strftime() format string.
>
> What happens if the format string is something like '%H:%M:%S%z'? My
> guess it it prints 21:12:42+0100.1234 instead of 21:12:42.1234+0100.
How about add a restriction like this:
if (format.endsWith(“%S"))
enable the feature
else
warning message
It’s a useful feature, it shouldn't create unexpected results, but
doesn’t need to support every use case.
>
> Regards,
>
> --
> Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list