'How to check brightness and contrast quality of video using ffmpeg

I want a brightness and contrast value of video. Can some one help me how do I get the brightness of the current video?

I tried but it changes in video but I just want to check the quality of brightness and contrast



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source