-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go Live / Screenshare / Video Stream #293
Comments
Discord used WebRTC to stream both audio and video if you can find a way to connect to the server please tell me. I have been looking for months for a way @Fanisus |
Isn't the server it connects to same as the voice server? |
that's not what I meant to say, send the data is what I meant to say |
It may help, I could also take a look at the discord application code again |
I tried to code but I didn't know how to connect to discord rtc server |
https://github.com/tenable/DiscordClient |
Someone has done an implementation, however it is broken now: |
I have looked at this repo while trying to figure it out and there was no easy way to implement it, I was just about to make it a separate module that people could require so that both users and potentially bots can use it |
Interesting |
create a clone of djs/voice @TheDevYellowy |
oh? |
Lemme see what I can do with it |
@aiko-chan-ai |
discord can ban all members :c |
O |
ban me too |
us* XD |
does this work? |
yep |
huh, welp. time to figure out how to integrate it |
unless you are already doing it, otherwise there is no point in me doing it |
This is pretty good, thanks for sharing! I've managed to get the Go Live feature working with your repository and everything works great. However, I've been having trouble figuring out packetization of h264. Encoding to the current video format (VP8) uses a lot of cpu and I've found that ffmpeg is a lot better at encoding to h264. Any help is appreciated |
vp8 codec was used in the original repo, I just edited it to work with user accounts :c Update: There are some small changes that increase video processing speed and use less cpu |
Of course there was a flag for that 🤦♂️ Thank you ! |
this repository can sharescreen, but using a selenium / chromium i think. |
you don't need selenium for screenshare, you can pipe the video directly like what aiko-chan-ai did in his repository. You have to start a new voiceConnection though and when sending the OP code 0 (which is Identify) you send the |
It's better if I can control the stream 😢 |
I just finished my thing but lemme see about integrating some of this then I'll comment again with the module |
Oke |
What do you mean control the stream? |
Pause, seek, speed, ... |
Oh that's tough. I have no idea how to do it |
😢 |
I'll take a look |
if this feature is available in |
I don't have much free time right now but I can see if I can add it there when I get a chance |
@dank074 how would I make it screenshare puppeteer? |
Added sample code here: dank074/Discord-video-stream@32c258d Couldn't think of a way to distinguish video/audio chunks in the stream so had to use ffmpeg to separate them. If anyone has any idea then it would greatly reduce the latency (ffmpeg takes a while to re-encode the video/audio) |
@dank074 do you have a discord? |
speaking about this on discord is an easy way to get banned since this violates their ToS |
@aiko-chan-ai that is not me. |
is there any way to get video streams from other people in the vc. |
Cuz I'm tryna make a self bot using googles Gemini that sees you in VC and talks to you using the context of what's going on, on your discord camera. |
Also hah it's on line 69 |
What format is the packet in? |
it's just a regular rtp packet. Look at how discord.js currently handles receiving voice; basically you first have to decrypt the packet then just decode the payload data from the rtp packet |
any update on this article 2024? |
you can use it |
how? |
Which package is the feature request for?
The core library
Feature
I am quite frustrated when I come to know that bots can't stream. If you know how to stream using this selfbot please do it. I am pretty sure like thousands of people are looking for it
I like some features like fps, quality, volume, etc
Ideal solution or implementation
Import module, make client join voice channel, make client turn on its video or stram and pipe the data through it
Alternative solutions or implementations
No response
Other context
No response
Update (by @aiko-chan-ai )
NPM Packages:
dank074/Discord-video-stream
The text was updated successfully, but these errors were encountered: