fixed auto-detect for video duration when used with vid-rate option