I am use console ffmpeg, if I capture from first monitor, then all is well
./ffmpeg -video_size 640x480 -framerate 30 -f avfoundation -capture_cursor 1 -capture_mouse_clicks 1 -i 1:0 -c:v libx264 -qp 0 -preset ultrafast capture.mp4
if try capture from the second monitor then process hangs
./ffmpeg -video_size 640x480 -framerate 30 -f avfoundation -capture_cursor 1 -capture_mouse_clicks 1 -i 2:0 -c:v libx264 -qp 0 -preset ultrafast capture.mp4
My device list:
AVFoundation input device @ 0x7fc74141a0c0] AVFoundation video devices:
[AVFoundation input device @ 0x7fc74141a0c0] [0] HD-camera FaceTime (integrated)
[AVFoundation input device @ 0x7fc74141a0c0] [1] Capture screen 0
[AVFoundation input device @ 0x7fc74141a0c0] [2] Capture screen 1
[AVFoundation input device @ 0x7fc74141a0c0] AVFoundation audio devices:
[AVFoundation input device @ 0x7fc74141a0c0] [0] Built-in Input
[AVFoundation input device @ 0x7fc74141a0c0] [1] Boom2Device
But if I replace output format from mp4 to mkv then record is well on second monitor too! How fix this bug?