Transcoding fixes