Opened 3 years ago
Closed 3 years ago
#10542 closed defect (wontfix)
format=gray adds blanks into grayscale
| Reported by: | jason43243 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:
There are gaps in the histogram and I assume the image will be slightly brighter.
How to reproduce:
ffmpeg -i input.mp4 -filter_complex "split [s1][s2]; [s1] format=gray,histogram [so1]; [s2] extractplanes=y,histogram [so2]; [so1][so2] vstack" histogram.mp4
The format=gray version is common in google searches and gives wrong results.
extractplanes=y seems better anyway, but format=gray should work the same.
Change History (5)
comment:1 by , 3 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:2 by , 3 years ago
| Priority: | important → normal |
|---|
comment:3 by , 3 years ago
Why not for a YUV mp4? What is format=gray then?
Regardless of same or not, should the format=gray histogram have gaps?
comment:4 by , 3 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
comment:5 by , 3 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | reopened → closed |
Various colorspaces/colorranges/matrix/trasfer/SDR/HDR concepts exist inside YUV.
If you do lossy colorspace conversion you will get histogram gaps.
Note:
See TracTickets
for help on using tickets.



It is not same thing.