Extract duration in seconds and frames count