Opened 5 hours ago

#11327 new defect

interactive mode interferes with stats_period time

Reported by: Michael Enke Owned by:
Priority: normal Component: ffmpeg
Version: 7.1 Keywords:
Cc: Michael Enke Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
When reading from a camera, ffmpeg prints the following line:

Press [q] to stop, [?] for help

When pressing 'q', the input is only read after the next statistics output is printed.
Up to version 6.2, pressing q was read and executed immediately, independent of the stats_period. With version 7.0 and 7.1 under Windows (not sure if Linux has the same problem), ffmpeg only reads from stdin after stats_period seconds elapsed.
How to reproduce:

% ffmpeg.exe -y -stats_period 300 -f dshow -i "video=Integrated Webcam" -s 600x400 webcam.out 
ffmpeg version n7.1-39-g64e2864cb9-20241129
from
https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-11-29-13-00/ffmpeg-n7.1-39-g64e2864cb9-win64-lgpl-7.1.zip

Change History (0)

Note: See TracTickets for help on using tickets.