#9388 closed defect (invalid)
showwaves filer, very dark output in p2p mode
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
The "p2p" mode in the showwaves filter doesn't work correctly, if the "n" option is set to a value larger than 1. If the waveform has a large slope, the output becomes very dark, almost invisible. Can be reproduced as follows:
ffmpeg -f lavfi -i sine=100:d=0.2,volume=4 -lavfi showwaves=n=4:mode=p2p:s=2205x500 -frames 1 -y out.png
Change History (6)
comment:1 by , 3 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 3 years ago
comment:3 by , 3 years ago
"point" mode has the same problem (very dark), and "line" and "cline" modes are not what I want. I want to see the waveform as a line, like in an oscilloscope.
comment:4 by , 3 years ago
I did figure out that the "draw" option must be set to "full". But that really wasn't clear in the documentation. I suggest the following better documentation for the "draw" option:
Set the draw mode.
Available values are:
'scale' Use blending, that means the samples are drawn darker where the slope is larger. This is the default.
'full' Draw all samples with full intensity. This is useful for higher values of n.
There is another option that draws every sample without blending.