They look glamorous on screen but filming plays a vital role in keeping stately homes open.