Method of encoding video with film grain
First Claim
1. A method for encoding video comprising:
- obtaining video frames provided to an encoder configured to compresses the video frames;
obtaining motion estimation (ME) data for the video frames;
calculating a ME score for the video frames, wherein the ME score provides a measurement of plotted frame-by-frame temporal differences;
calculating an ME stability value measuring a variance of the ME score over time; and
providing a high film grain indication signal to the encoder indicating a particular segment of the video frames contains high film grain when the ME score for the segment exceeds a first threshold and the ME stability value for the segment is below a second threshold,wherein when the high film grain indication signal is provided, the encoder compresses the video frames by allocating less bits to I frames and more bits to P and B type frames than to other frames of the video.
7 Assignments
0 Petitions
Accused Products
Abstract
A system for providing improved video quality and compression efficiency during encoding by detecting video segments having film grain approaching the “Red Lady” problem. The system detects when film grain approaches the level of the “Red Lady” problem by measuring frame-by-frame temporal differences (ME scores). From the ME scores, two key indicators are identified: (1) The average temporal difference in frames with an intermediate motion level higher than frames of non-noisy video; and (2) The fluctuation of the temporal differences between frames in a group is very small. When these indicators identify a high film video, a signal is provided to an encoder which allocates less bits to I frames and more bits to P and B frames than for other frames of video without comparable film grain.
-
Citations
6 Claims
-
1. A method for encoding video comprising:
-
obtaining video frames provided to an encoder configured to compresses the video frames; obtaining motion estimation (ME) data for the video frames; calculating a ME score for the video frames, wherein the ME score provides a measurement of plotted frame-by-frame temporal differences; calculating an ME stability value measuring a variance of the ME score over time; and providing a high film grain indication signal to the encoder indicating a particular segment of the video frames contains high film grain when the ME score for the segment exceeds a first threshold and the ME stability value for the segment is below a second threshold, wherein when the high film grain indication signal is provided, the encoder compresses the video frames by allocating less bits to I frames and more bits to P and B type frames than to other frames of the video. - View Dependent Claims (2, 3)
-
-
4. An apparatus to encode video frames, the apparatus comprising:
-
an encoder configured to compresses the video frames and having a first input for receiving video frames to be processed and a second input for receiving parameter data to enable the encoder to allocate bits for frames for encoding; a frame buffer having an input receiving the video frames and an output providing the first input to the encoder; a preprocessor for receiving the video frames and having an output providing the second input to the controller; a preprocessor memory connected to the processor for storing code that is executable by the preprocessor to determine the parameter data to enable the encoder to allocate bits, the code causing the preprocessor to perform the following steps; obtaining motion estimation (ME) data for the video frames; calculating a ME score for the video frames, wherein the ME score provides a measurement of plotted frame-by-frame temporal differences; calculating an ME stability value measuring a variance of the ME score over time; and providing a high film grain indication signal to the encoder indicating a particular segment contains high film grain when the ME score exceeds a first threshold and the ME stability value is below a second threshold, wherein when the high film grain signal is provided, the encoder compresses the video frames by allocating less bits to I frames and more bits to P and B type frames than to other frames of the video. - View Dependent Claims (5, 6)
-
Specification