discord-obs-stream
v0.0.2
Published
Stream OBS output to Discord.
Downloads
12
Maintainers
Readme
Discord OBS Stream
Stream OBS output to Discord. Works on all platforms.
Installation
Requirements
- FFmpeg
- Node.js
- OBS Studio (or any recording software that can output with FFmpeg)
Download
You download this program using an npm command:
npm i -g discord-obs-streamConfiguration
Getting Token
You will need to obtain the token of a Discord account. I recommend doing this on an alt account. PLEASE KEEP YOUR TOKEN SECURE, as having the token basically means you're logged in as that user. If you leak it accidentally, reset your password.
Here are the codes to automatically grab it for you.
Setting Token and User
Running the program will tell you where the config file is located. This file contains 2 configuration fields:
token: The token you obtained from aboveuser: The user ID of your main accounturl(optional): Don't touch if you are not sure what it does. Default:udp://@:1234?overrun_nonfatal=1&fifo_size=50000000bitrate(optional): Bitrate of video. Default:2500fps(optional): FPS of video. Default:30
OBS Studio
You will need to modify OBS recording settings for this to work. I recommend creating a new profile for it.
- Go to Settings -> Output -> Recording.
- Change
TypetoCustom Output (FFmpeg). - Set
FFmpeg Output TypetoOutput to URL. - Input
udp://127.0.0.1:1234toFile path or URL. - Change
Container Formattompegts. - Click
Apply.
Running
Run discord-obs-stream in a console. If success, it will output Logged in as ${alt account}.
Before you start streaming on Discord, you need to click Start Recording in OBS Studio.
Commands
on: Start streamingoff: Stop streamingreload: Reload configstop: Exit the program
