[FFmpeg-devel] [PATCH] libavutil/log: Support for logging timestamps in the log

Tobias Rapp t.rapp at noa-archive.com
Thu Jan 19 10:24:15 EET 2023


On 19/01/2023 00:20, Prakash wrote:

> The problem with int milliseconds is you lose the microseconds precision.
> Sometimes there are multiple log lines within the same millisecond.

If you want to do performance profiling like comparing between assembler 
and C versions of a routine in my opinion there are better ways to do 
that than using log timestamps. But I also have nothing against adding 
more positions after the decimal point, if you prefer that.

The usecase I see for log timestamps is more to find out whether a 
warning message appeared at the begin, middle, or end of the transcoding 
process.

>   I can
> definitely move the timestamp as the first field of the log line. Let me
> fix the patch file.
>
> -Prakash.
>
Regards, Tobias



More information about the ffmpeg-devel mailing list