Recording audio with ffmpeg
through BlackHole works quite well, thanks for this!
I encounter one problem though: The second execution of ffmpeg
does not work. There is 3 CTRL-C necessary to kill ffmpeg
. It then responds with: Received > 3 system signals, hard exiting. After that, the next ffmpeg
command does work, the ffmpeg
after that not and so on.
Killing coreaudiod
before the second ffmpeg
does help too.
It happens only if audio is or was playing at the first ffmpeg
command.
I tested ffmpeg
version 4.2.2
You may test it using this command:
# Get input channel number for BlackHole device
ffmpeg -f avfoundation -list_devices true -i ""
# Record 2 seconds from i.e. input channel 0
ffmpeg -loglevel debug -f avfoundation -i :0 -t 2 test.mp3
-loglevel debug
shows much, interesting is this:
First ffmpeg call:
...
[avfoundation @ 0x7f8843000000] audio device 'BlackHole 16ch' opened
[avfoundation @ 0x7f8843000000] All info found
...
Second ffmpeg call stops at audio device 'BlackHole 16ch' opened
Recording through other input channels like Built-in Microphone does work multiple times, as expected.
Any idea what may be wrong here?