Opened 7 years ago

Closed 7 years ago

#7875 closed defect (fixed)

ffmpeg freezedetect filter output

Reported by: arianaa30 Owned by: Marton Balint
Priority: normal Component: avfilter
Version: git-master Keywords: freezedetect
Cc: Marton Balint Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
The ffmpeg freeze output is expected to output intervals of detections always with start-duration-end tags. But we see sometimes, start tag is missing, and duration shows right after previous end. For development purposes, it is best to always have a start, even if start is equal to previous end.

Example command:

 ffmpeg -i freeze.mp4 -vf "freezedetect=n=-60dB:d=0.1" -map 0:v:0 -f null -

How to reproduce:

% ffmpeg -i input ... output
ffmpeg version N-93649-gd0ca749adb Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.3.1 (GCC) 20190414
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_start: 0
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_duration: 0.9009
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_end: 0.9009
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_duration: 0.1001
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_end: 1.001
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_start: 5.005
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_duration: 2.03537
[freezedetect @ 0000016df6c06a00] lavfi.freezedetect.freeze_end: 7.04037

Change History (5)

comment:1 by Carl Eugen Hoyos, 7 years ago

Component: undetermined → avfilter
Keywords: freezedetect added
Priority: important → normal
Type: enhancement → defect
Version: unspecified → git-master

Please provide your command line together with the complete, uncut console output and an input sample that allows to reproduce the issue to make this a valid ticket.

comment:2 by arianaa30, 7 years ago

File: ​https://www.dropbox.com/s/h9hi9se6srmlp5p/freeze.mp4?dl=0

Command:

 ffmpeg -i freeze.mp4 -vf "freezedetect=n=-60dB:d=0.1" -map 0:v:0 -f null -

comment:3 by Marton Balint, 7 years ago

Cc: Marton Balint added
Owner: set to Marton Balint
Status: new → open

Please test the patch I submitted to ffmpeg-devel:

​https://patchwork.ffmpeg.org/patch/12961/

comment:4 by arianaa30, 7 years ago

Thanks. It's good. Please push to master towards a static version.

comment:5 by Carl Eugen Hoyos, 7 years ago

Resolution: → fixed
Status: open → closed
Note: See TracTickets for help on using tickets.