1. A method comprising: applying a filter to a video frame; applying a video encoder to encode the filtered video frame; receiving performance information relating to the video encoder; and adjusting the filter based on the performance information.