[FFmpeg-devel] [PATCH] ffmpeg: add 100ms delay for first stats

Nicolas George george at nsup.org
Wed Dec 23 12:23:03 EET 2020


Gyan Doshi (12020-12-23):
> That's not the issue. It's the mangled line - the output from lavf/dump.c.
> mangled with stats line
> 
> AV_NOPTS_VALUE is an acceptable value and already checked for at line 1815.
> As is <=0 output size.
> 
> Indicating to the user that ffmpeg processing has stalled at the beginning
> is a valid and acceptable outcome, even a necessary one.
> The delay here is just to avoid the mangling. Some hardcoded value is the
> best that I see we can do, but if you have an analytical solution, I'm all
> ears.

Ah, I see. But in that case, the proper solution seems obvious: set a
flag when av_dump_format() has returned, and delay the printing until
that flag is set. Or am I still missing something?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201223/21b9888a/attachment.sig>


More information about the ffmpeg-devel mailing list