I want to write a scheduled script to use the screencapture command to record the screen automatically in the background, just like this:
$ screencapture -v -V 60 output.mov -A xxxx
'xxxx' is the id of the audio source. I have to specify this parameter to record macos internal audio, using a virtual audio device like Soundflower, and without the specified audio source id, the captured videos are always muted.
How could I get all the audio devices' IDs in the simplest way? I tried many apps and scripts but still could not find the solution.
screencaptureon Catalina? Also, see this post for obtaining AV devices using ffmpeg: https://apple.stackexchange.com/questions/326388/terminal-command-to-record-audio-through-macbook-microphone/326390#326390 – Allan Jan 30 '20 at 04:56ffmpegdoesn't print device IDs suitable forscreencapture. – uasi Feb 08 '21 at 17:44