use ffprobe to get video duration