Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#9392 closed defect (fixed)

Wrong amplitude in showwavespic filter

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

Description

In the showwavespic filter, the option filter=average shows a larger amplitude than filter=peak. That can't be right. The average can never be larger than the peak.
Can be reproduced by comparing the output images:

ffmpeg -f lavfi -i sine=100:b=2 -t 0.2 -y sine.wav
ffmpeg -i sine.wav -lavfi "showwavespic=filter=average" -y average.png
ffmpeg -i sine.wav -lavfi "showwavespic=filter=peak" -y peak.png

Change History (4)

comment:1 by Elon Musk, 3 years ago

Resolution: invalid
Status: newclosed

comment:2 by Michael Koch, 3 years ago

please explain how the average can be larger than the peak

comment:3 by Michael Koch, 3 years ago

Resolution: invalidfixed

in reply to:  1 comment:4 by Cigaes, 3 years ago

Replying to richardpl.

It seems your closing of this ticket as “invalid” was very wrong. Please be more careful.

Note: See TracTickets for help on using tickets.