Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
# To run with pyusb debugging: | |
# | |
# PYUSB_DEBUG=debug python relay.py | |
# | |
# Grab the vendor and product codes from syslog when plugging in the relay: | |
# | |
# usb 3-1: New USB device found, idVendor=1a86, idProduct=7523 | |
# | |
import time | |
import usb.core |