transcode example working except the format header and trailer