플랫폼 별 device
FFmpeg 이 OS 별 input device 통해 화면 capture:
- macOS —
avfoundation. Device listffmpeg -f avfoundation -list_devices true -i "". Index 1 이 보통 main display; index 2 가 두 번째 display. - Linux — X11 (
:0.0) 엔x11grab. Wayland 가kmsgrab+ intermediate layer 사용. - Windows —
gdigrab또는ddagrab(DXGI Desktop Duplication; 더 빠름).
macOS 패턴
macOS 에서 시스템 audio capture 가 virtual audio device (BlackHole, Loopback) 필요. FFmpeg 이 mic audio direct capture 가능 — 한 ffmpeg 호출에 화면 device + mic device 페어.