Fast and Efficient Transcoding Based on Low-Complexity Background Modeling and Adaptive Block Classification