| CPC H04N 19/147 (2014.11) [H04N 19/105 (2014.11); H04N 19/117 (2014.11); H04N 19/176 (2014.11); H04N 19/82 (2014.11)] | 20 Claims |

|
1. A method for encoding an unfiltered input video stream to an output bitstream, the method comprising:
encoding a first copy of the unfiltered input video stream to a reference bitstream;
comparing the unfiltered input video stream and the reference bitstream to determine a first distortion value and a first bitrate for the reference bitstream;
for each candidate filter of a number of candidate filters:
applying the candidate filter to each frame of a second copy of the unfiltered input video stream to produce a filtered input video stream;
encoding the filtered input video stream to a candidate bitstream;
comparing the unfiltered input video stream and the candidate bitstream to determine a second distortion value and a second bitrate for the candidate bitstream; and
determining a cost value for the candidate filter based on a difference between the first distortion value and the second distortion value and based on a difference between the first bitrate and the second bitrate;
selecting, as the output bitstream, the candidate bitstream corresponding to the candidate filter with a lowest one of the cost values; and
outputting or storing the output bitstream.
|