#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 Elon Musk, 10 months ago

Resolution: invalid
Status: newclosed

It is not same thing.

comment:2 by Elon Musk, 10 months ago

Priority: importantnormal

comment:3 by jason43243, 10 months 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 jason43243, 10 months ago

Resolution: invalid
Status: closedreopened

comment:5 by Elon Musk, 10 months ago

Resolution: wontfix
Status: reopenedclosed

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.