Fix transcoder progress computing

Clean version of PR #8