Install background music

With brew: brew install --cask background-music

Or with pkg from: https://github.com/kyleneideck/BackgroundMusic

Setup and record

Open QuickTime, from File menu click on New Screen Recording. Before starting recording, ensure that BackgroundMusic is chosen as source for audio

Source:

That's it for this post, thanks for reading!