Fix progress bar length

Compute progress duration from output format context of the first stream :
* last written dts value
* stream time base