Mr. Pohamba took the oath of office in front of thousands of people at an outdoor stadium in the capital , Windhoek .