Skip to content

Instantly share code, notes, and snippets.

@benhoyle
Last active March 4, 2024 07:07
Show Gist options
  • Save benhoyle/787bddf71f4c36a4b05a9746ea0885f6 to your computer and use it in GitHub Desktop.
Save benhoyle/787bddf71f4c36a4b05a9746ea0885f6 to your computer and use it in GitHub Desktop.
Building Audio/Video Capture Objects
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hendryman
Copy link

Such an awesome code collection. Thanks for putting in the effort! Is there a way to use pyaudio instead of alsaaudio? The latter is only available for Linux, while the former is cross-platform...

@benhoyle
Copy link
Author

I played around with PyAudio but I couldn't get it to work, especially when threading through an object.

That said they might have evened out the bugs since I looked at this a few years ago.

AV support is a bit of a nightmare cross-platform as you need to have all the system drivers. Docker is probably a way you can avoid that pain - run everything in a Linux container in Docker Desktop on Windows...

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