A method for deblocking and transcoding a media stream. A coefficient associated with a block of pixels of the media stream is received. A deblocking operation is performed on the coefficient to generate a second coefficient. Quantization is performed on the second coefficient to generate a transcoded coefficient.