PrismarineJS/prismarine-viewer

Stream to twitch #103

louis030195 posted onGitHub

Who needs human streamers when you can have bots ?

  1. Stream to twitch a bot (Twitch API intregation)
  2. Make him do some random stuff (outside of the scope of this repo)
  3. Make him talk on the stream through text to speech based on its actions (outside of the scope of this repo)

is it really required for viewer to be able to stream to twitch? It sounds like a use case and not a feature.

posted by wvffle over 4 years ago

yeah maybe not in the core lib but it could be an interesting example indeed! https://github.com/PrismarineJS/prismarine-viewer/blob/master/examples/core/headless.js + some twitch lib

posted by rom1504 over 4 years ago

seems there's currently no npm package to stream to twitch, however here's an example https://github.com/pion/example-webrtc-applications/tree/master/twitch

posted by rom1504 over 4 years ago

There is this feature in ffmpeg, so starting from the headless example this should be a 1 line change

https://wiki.archlinux.org/index.php/Streaming_to_twitch.tv#FFmpeg

posted by Karang over 4 years ago

Ah yeah indeed, that's convenient. https://wiki.archlinux.org/index.php/Streaming_to_twitch.tv#FFmpeg has information on this

On Fri, Dec 25, 2020, 16:45 Karang notifications@github.com wrote:

There is this feature in ffmpeg, so starting from the headless example this should be a 1 line change

ā€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-viewer/issues/103#issuecomment-751264944, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437RA3AYXDNA5JPJSCRTSWSXSRANCNFSM4VJFN6OA .

posted by rom1504 over 4 years ago

Has this been solved? Iā€™m interested in allowing the bot first person point of view. Even it can be played through a viewer then I can obs that source

posted by joggerjoel about 4 years ago

Has this been solved? Iā€™m interested in allowing the bot first person point of view. Even it can be played through a viewer then I can obs that source

@joggerjoel didn't try yet

posted by louis030195 about 4 years ago

This is done now, we have an example to show how to: https://github.com/PrismarineJS/prismarine-viewer/blob/master/examples/twitch.js

However this might need more testing to find the best parameters for here: https://github.com/PrismarineJS/prismarine-viewer/blob/master/lib/headless.js#L40

And maybe try to optimize the process to improve the framerate and video quality.

posted by Karang about 4 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests