[FFmpeg-devel] [PATCH 2/2] ffmpeg: don't delay printing initial stats

Michael Niedermayer michael at niedermayer.cc
Wed Dec 23 01:19:20 EET 2020


On Mon, Dec 21, 2020 at 02:51:21PM +0530, Gyan Doshi wrote:
> The first stats is printed after the initial stats_period has elapsed. With a large period,
> it may appear that ffmpeg has frozen at startup.
> 
> The initial stats is now printed after the first transcode_step.
> ---
>  fftools/ffmpeg.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

This breaks ffmpeg output:

./ffmpeg  -i ~/videos/mm-short.mpg -y file.avi

Produces a line like this:
Output #0, avi, to 'file.avi':=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A 

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If the United States is serious about tackling the national security threats 
related to an insecure 5G network, it needs to rethink the extent to which it
values corporate profits and government espionage over security.-Bruce Schneier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201223/22fa10a5/attachment.sig>


More information about the ffmpeg-devel mailing list