Opened 2 years ago

Closed 2 years ago

#9889 closed defect (fixed)

Silenceremove filter fails to stop trimming if audio does not start silent

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

Description

How to reproduce:

ffmpeg -loglevel verbose -ss 0.001 -i dummysine.wav -filter:a "silenceremove=start_periods=1:start_threshold=-200dB:detection=peak:window=0" -map 0:a -c libmp3lame -q 0 "tryout.mp3"

FFmpeg reports no data encoded, and the resulting file contains no audio. Removing the -ss tag will cause expected behavior to be restored, presumably because sine waves start from 0 amplitude.
Run on ffmpeg-2022-08-22-git-f23e3ce858-full_build from gyan.dev

Attachments (1)

dummysine.wav (320.6 KB ) - added by y3kcjd5 2 years ago.
1.86-second stereo sine wave file for testing

Download all attachments as: .zip

Change History (2)

by y3kcjd5, 2 years ago

Attachment: dummysine.wav added

1.86-second stereo sine wave file for testing

comment:1 by Elon Musk, 2 years ago

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