improve transcoding

especially for webm