Crowds wearing face masks listened to the North Korean national anthem as the national flag was raised at midnight.