Opened 5 years ago

Closed 5 years ago

#6968 closed defect (fixed)

`silencedetect` only logs start of silence – not end and duration

Reported by: annoying Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: silencedetect
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


not sure if this is a bug or expected behavior. for an audio file that only contains silence, this command only logs the beginning of silence (– no end and duration):
[silencedetect @ 0x7ff3977000c0] silence_start: -0.00628118

ffmpeg -i silence-31s.mp3 -af "silencedetect=n=-50dB:d=1" -f null -

ffmpeg version:

Attachments (1)

silence-31s.mp3 (485.3 KB ) - added by annoying 5 years ago.

Download all attachments as: .zip

Change History (4)

by annoying, 5 years ago

Attachment: silence-31s.mp3 added

comment:1 by Gyan, 5 years ago

End time and duration are updated by the filter when it gets to the next non-silent sample. For a fully silent file, that will never happen.

This could be considered a bug since a segment of silence has to end sometime even if at the end of file.

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavfilter
Keywords: silencedetect added; silence removed
Version: unspecifiedgit-master

comment:3 by Elon Musk, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.