Text this: Fast algorithms for H.264 encoding and transcoding