Recommendations didn't help. I also want to add that when you turn on the silent mode, through the swing on the device, the sound when recording video through the native Camera application is present, but still it is not perfect.
When switching the swing to the mode with sound, the sound during recording is muffled and almost absent. This applies to both frontal video recording and the main one. Resetting the settings didn't help. Setting up the phone to a new state didn't help either. Restoring from a backup didn't help either. The problem has not been fixed with new updates. Again, I want to emphasize that in third-party applications, recording sound in a video works perfectly, exactly as it should, but through the native Camera application, the sound is terrible. Voice messages in instant messengers work perfectly, the voice recorder works perfectly. I cleaned the microphones - it did not help.
What's the problem?