This project allows you to send video from OBS directly into Discord. The video is not transcoded or modified in any way. What you send is then sent directly to discord.
As a user this gives you
- Higher quality video. Tune your encoding settings!
- Better platform support. Get audio for Linux screenshares.
- More customization. Custom layouts/capture multiple windows....
This projects accepts WebRTC (WHIP) clients using werift-webrtc. It then bridges this into Discord using dank074/Discord-video-stream. This project also supports more then just OBS. You can also use any client that support WHIP.
git clone https://github.com/Sean-Der/obs-into-discord.git
cd obs-into-discord && npm install
Getting the userToken
is the hardest step. I found these guides the most useful
- https://gist.github.com/MarvNC/e601f3603df22f36ebd3102c501116c6
- https://www.geeksforgeeks.org/how-to-get-discord-token/
Follow the official documentation here
In most cases you will not to change this. Only ff port 4321 is already used by another service.
Run node index.js
. If it starts without errors you have configured everything correctly. You now have a WHIP -> Discord bridge
running on port 4321. Publish from OBS via WHIP to http://localhost:4321
. Currently you can do any streamKey (this may change in the future)
The following encoding settings are recommended. You can try tuning these, but may see inconsistent playbcak behavior
If everything worked you should see the following output in the console.
- Allow configuration via Web UI
- Creater Docker Image
- Upload to Dockerhub
- Create executable for easier install
- Support H265
- Support AV1
- Lower Latency
For self hosting see Broadcast Box. With Broadcast Box you can broadcast with 150Ms of latency and push any video quality you want. No bitrate or codec restrictions!
Join the Discord and we are ready to help!