Get video duration from file object