'Is there any way to increase the brightness of a video in python?

I know this is the way to increase the brightness of an image. However, adding this piece of code to a video creates an unstable and flickering video. Is there any alternative to increase the brightness of a video where the brightness would be stable throughout the video after getting increased?



Sources

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

Source: Stack Overflow

Solution Source