No recording from one of the cameras

No recording from one of the cameras, the other is recording, but there is no preview in records timeline and warnings in the logs:

Feb 9 03:02:24 nvr1 bc-server[468159]: E(11/Т12-3-filin): Failed to init muxer for output file /mnt/sdb/dvr/2023/02/09/000011/03-02-21.mp4: Invalid argument (-22)
Feb 9 03:02:24 nvr1 bc-server[468159]: E(11/Т12-3-filin): Cannot start recording!
Feb 9 03:02:26 nvr1 bc-server[468159]: W(19/aviary1): snapshot_decode_frame: decode video frame failed: Invalid data found when processing input
Feb 9 03:02:26 nvr1 bc-server[468159]: E(19/aviary1): Feeding snapshot decoder failed
Feb 9 03:02:26 nvr1 bc-server[468159]: E(19/aviary1): Failed while feeding snapshot saver with more frames

Both of these cameras are available in live view. Version: 3.1.0-rc7.
Perhaps some video codecs or components are missing? How can this be checked and rectified? What are the possible solutions to problems?