This only works on an Apple Silicon computer (not Intel)
You need Homebrew installed. I don’t know the link via “pip”to install, but i’ll assume it’s out there.
1 ) download & install the Blackhole 2ch. just google it for a link
2) Open “Audio MIDI Setup app”
3) hit the “+”in the bottom left & create 2 setups. name them exactly like this:
QT_INPUT = ✅ BlackHole 2ch
QT_OUTPUT = ✅ BlackHole 2ch
✅ Studio Display Speakers (whatever speakers your computer has)
4) in a Terminal shell. type this command (after the “>”is the command). it installs the switcher.
> brew install switchaudio-osx
5) in same Terminal shell. this prints the install location
> which SwitchAudioSource
6) “/opt/homebrew/bin/SwitchAudioSource” . On some machines it may install in a different location.
so now add “-a” to the end of the path to list the audio sources:
> /opt/homebrew/bin/SwitchAudioSource -a
7) you should see all the Audio setups on your computer including the 2 you just made
iPhone Microphone
BlackHole 2ch
MacBook Pro Microphone
MacBook Pro Speakers
QT_INPUT
QT_OUTPUT
8) So now when you want to Record a Quicktime with Audio from a Screen capture, go into Settings/Sound
INPUT = QT_INPUT
OUTPUT = QT_OUTPUT
9) In Quicktime when you’re in Screencapture, under Microphone = QT_INPUT
10) this will only capture the audio from the movie that is playing on your screen. If you want to capture your voice & ambient noise too, then add the computer Microphone to the QT_INPUT selection in Step 3 above. better solution would be to make a separate INPUT setting for this like for Zoom calls.
11) When you’re done recording you need to set it back to default. otherwise you can't control the volume.
Settings/Sound & select the INPUT =Microphone & OUTPUT= Speaker on your computer.
XX) the reason we installed the SwitchAudio in step4 is so that you can switch the setup On & Off using a simple Apple Script. I’ll post the script later if this topic gets any traction.