Guess the duration before converting video and write guessed duration