Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9147 closed defect (fixed)

ffmpeg gets into infinite loop with some audio chain

Reported by: bakaiadam Owned by:
Priority: important Component: avfilter
Version: git-master Keywords: dynaudnorm regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
If you have a short audio and try to get only the non silent parts then amplify the non silent part, it just hangs. If the duration is 1.5 seconds for example, it works just fine.
How to reproduce:

% ffmpeg -f lavfi -i "sine=frequency=1000:duration=0.5" -y test.wav ; ffmpeg -i test.wav  -af   'silenceremove=stop_periods=-1:stop_duration=0.5:stop_threshold=-70dB,loudnorm,dynaudnorm=g=3:f=200' -y b.flac
ffmpeg version N-56320-ge937457b7b-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

test.wav (43.1 KB ) - added by Carl Eugen Hoyos 4 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Carl Eugen Hoyos, 4 years ago

Component: undeterminedavfilter
Keywords: dynaudnorm regression added
Priority: normalimportant
Reproduced by developer: set
Version: unspecifiedgit-master

by Carl Eugen Hoyos, 4 years ago

Attachment: test.wav added

comment:2 by Elon Musk, 4 years ago

Keywords: dynaudnorm regression removed

comment:3 by Carl Eugen Hoyos, 4 years ago

Keywords: dynaudnorm regression added

Independently of the true or deeper cause of the issue, I need these keywords to have a slight chance of ever finding the ticket again.

comment:4 by Carl Eugen Hoyos, 4 years ago

comment:5 by Elon Musk, 4 years ago

Keywords: carl_is_a_lie added; dynaudnorm regression removed
Resolution: fixed
Status: newclosed

Lies. Fix your stupid tool.

comment:6 by Carl Eugen Hoyos, 4 years ago

Keywords: dynaudnorm regression added; carl_is_a_lie removed
Note: See TracTickets for help on using tickets.