'ffmpeg not finding system/speaker audio device

I'm trying to screen record with audio, and the video portion is fine but I can't record audio because ffmpeg can only find my microphone, but not my speaker/system audio.

[AVFoundation indev @ 0x135f046a0] AVFoundation video devices:
[AVFoundation indev @ 0x135f046a0] [0] FaceTime HD Camera
[AVFoundation indev @ 0x135f046a0] [1] Capture screen 0
[AVFoundation indev @ 0x135f046a0] AVFoundation audio devices:
[AVFoundation indev @ 0x135f046a0] [0] MacBook Pro Microphone

Python Code

os.system(f"""ffmpeg -f avfoundation -video_device_index 1 -i "default:none" -t 00:00:05 -y -r 10 recording{x}.mov""")

Is there a reason why it's not picking up the system audio? I tried looking around and struggling to find an answer.

Thanks in advance



Solution 1:[1]

Your input url -i "default:none" is disabling the audio. I think you need -i "1:0" based on the documentation (See the examples)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 kesh