Skip to content

How do I judge a face's tonal range without the bright window dominating the histogram?

Calculate the histogram after cropping to the area under review. A global histogram weights every pixel and can conceal subtle changes in a relatively small face.

PLAN AN EXTERNAL VIDEO REPAIRAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Set up the edit

Choose a rectangle at native scale. This example examines the central third; move it over the intended face before analyzing your own clip. Compare equivalent poses under similar lighting.

shell
ffmpeg -i duo-result-silent.mp4 -filter_complex "[0:v:0]crop=iw/3:ih/3:iw/3:ih/3,histogram[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

A pileup near one extreme can suggest clipping, but the histogram does not identify the feature supplying those pixels. Confirm with a normal frame at the same time.

With the returned living-room dance, the local FFmpeg run decoded 158 video frames at 256 × 636 pixels. Use the linked file to reproduce the example. This was an offline edit of the existing public clip.

If the first pass falls short

When a face leaves the rectangle, track it or analyze isolated stills. Comparing a face patch with a background patch produces a misleading plot.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example