chromicast
chromicast copied to clipboard
Python-based WebRTC to NDI tool
Website (webRTC) to NDI source headlessly
It works enough to output a website (include VDO.Ninja streams) into an NDI Video output. It can do this headlessly.
This code is me tinkering around with ideas; it is unfinished. Audio isn't yet supported.
It is based on the Chromicam repo I made earlier (https://github.com/steveseguin/chromicam ), but outputs to NDI instead of Virtualcam.
This repo requires a couple dependencies
cefpython3>=66.0
numpy>=1.14.0
and you'll need the NDI SDK and the following, which requires compiling.
https://github.com/buresu/ndi-python
After that, you can run with just python as a script, or you can compile into an app.
example way to run using a VDO.Ninja stream as a source:
python3 chromicast.py https://vdo.ninja/?view=xxxxx&codec=vp8 1280 720
compiling (optional)
If you want to try building Chromicast, the following is the basic idea, but good luck! Dependencies are a pain to sort out well.
macOS Build
python3 build chromicast.py pack
Windows Build
pyinstaller --onefile --hidden-import='pkg_resources.py2_warn' --icon=chromicast.ico chromicast.py
find the location of CEF on macOS
sudo find / | grep "Chromium Embedded Framework"