An encoder with transcoding abilities