implements transcoding

resolves #172 @ 2:00