Skip to content

Conversation

@philipqueen
Copy link
Contributor

The builtin microphone on my macbook only has 1 audio channel, but the recording code with PyAudio defaults to 2 audio channels. This was causing the camera stream to crash as soon as recording started.

The fix is to use PyAudio to query the device for it's maximum number of audio channels. With this, we can limit any input channel number to be less than or equal to the maximum for the selected device.

Making this fix allows me to record from the builtin webcam on my mac - I'll try with two external webcams soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants