Codecs and transcoding

Thanks @Dist and @ciratea