added duration method to transcoder