Streamer.bot - Random Video from Folder Trick
ฝัง
- เผยแพร่เมื่อ 8 ก.ย. 2024
- For those of you having issues on the newest version of OBS and Streamerbot - I made a video showing it still works and how to set it up. • UPDATED: Streamer.bot ...
Warning!!! Since OBS v28 came out and Streamerbot updated to use Websocket v5 - Many custom build tricks in streamerbot ONLY work with v4.9 of websocket.
For this to work on OBS v28+, right now, you need to use websocket v4.9 compat. github.com/obs...
ALSO, you must have Streamerbot and OBS connected with websocket v.4.9 BEFORE you import the code for this trick. If you swap to v4.9 AFTER you imported the code, it might not work. Delete the subaction and start over once you have OBS connected with v4.9.
infinitequalit... - Support on Patreon and More!
Streamer.bot Advanced Tricks - Random Video from Folder.
Import Codes here:
infinitequalit...
Visit infinitequalit... for more!
For those of you having issues on the newest version of OBS and Streamerbot - I made a video showing it still works and how to set it up. th-cam.com/video/osbm1RqhIDg/w-d-xo.html
For this to work on OBS v28+, right now, you need to use websocket v4.9 compat. github.com/obsproject/obs-websocket/releases
That was super helpful, thank you!
TY for the video
sadly this seems to be out of date setSourceSettings doesn't seem to be a valid Raw OBS request anymore and the argument can't seem to pull the variable from the folder :(
I just streamed today and everything was working fine. Is your streamerbot up to date?
i managed to get it working but i had to edit the code a bit. it should be up to date i just updated a couple weeks ago.@@infinitequality
Yes, this is very out of date. The StreamerBot version in this video is 1.7 and OBS is version 27.
Both, StreamerBot and OBS have had many updates since. The biggest change would be the websocket change but also, anyone wanting to use this will need to use the same versions.
This would work but anyone wanting to use the bot for streaming may find it may not that well since Twitch had changed a lot of their api
@@Unleashed75this still works just fine on the current version of streamerbot and OBS.
You just need OBS websocket 4.9 compat. Everything else still works.
The biggest change to streamerbot was the triggers section being added for actions which is only a ui change.
If you import the code and setup everything else it works just fine.
Any plans to make it work with OBS 29 and websocket 5? Or is there an alternative way to do it now you could recommend?
Websocket 5 is buggy still, but if you use 4.9, linked in the pinned comment, it will work.
We will have to wait for some updates to websocket 5, which is not developed by streamerbot, nor myself.
Would this work if I want streamerbot to show or the program to show random clips or snippets 'within' the video? (for example a random 10 second bit of the video and each time it's at a different point of the video) Any help is greatly appreciated. Thank you for your video!
No, this trick only randomly plays files from a folder.
Currently trying to get this setup to work on SLOBS and everything is connected properly (media source activates and deactivates like it's supposed to). However, it does not choose a different file on subsequent activations, always the same file chosen. Any ideas?
I suggest you migrate everything over to OBS studio. I can only confirm this works with websocket 4.9 compat. SLOBS has worse performance and less options since you cannot install plugins.
It has, in fact, worked! Thanks for the help and quick response! @@infinitequality
No luck ... going to restart from Scratch obs media source, you have to select an actual file name it won't let me have a selected folder. i have just been picking one of the videos in the folder... The OBS raw (set image source...... has missing request type.. trying again
nup no luck thanks anyway
Are you using Websocket v4.9 compat? github.com/obsproject/obs-websocket/releases Websocket 5 is buggy and doesn't work with this.
@dfreitas4218
0 seconds ago
Hey again Sunny! I was redoing some channel point redeems and was thinking up an idea... wasn't sure if it's possible but is there a way to use the script you have here to pull different video files into one, singular Source in OBS? I was thinking if I could bypass having multiple Sources for redeems then it would put less strain on my OBS.
The trick in this video would bring everything down to a single source in OBS, but it would still have to be randomized for it to work. If you are looking for a redemption that would trigger a specific video, then you would still need to utilize different sources in OBS, at least for the most simple method.
is there a way to trigger specific media files?
you can do this quite easily using OBS and streamer.bot. Just add the media file to your OBS as a source. Then setup an action that triggers the visibility/media state of said file. You can set the file to loop using the OBS properties or just to play once and turn off.
hello thx for the tutorial but i can play only 1 video of my pc from the chat or reward twitch??
How many videos are in the folder?
Something might also be wrong with the bots connection to OBS. Try using websocket 4.9 compat if you haven't yet.
only i wanna create a comand to launch 1 video from folder no random especific any help?@@infinitequality IF ITS POSSIBLE FROM CHAT COMMANDO OR POINTS OF TWITCH FOR LAUNCH THE VIDEO
I'm trying to make a !command trigger a random video within the folder I'm setting up with your trick... I'm noticing though the local file path in my OBS is showing forward slashes instead of backslashes like in your video... which also has the the double back slashes. I'm confused as to why which is making me think that's the issue because nothing is coming up when I do !command :(
I'm sorry you're having trouble.
First check your command works by connecting it to a different action. Make a test action that sends a chat message. And test the command to make sure it's responding and sending the action.
Next double check your folder structure and path in streamer bot settings.
Try these things and let me know.
@@infinitequality Hey I appreciate the quick response!
So the command definitely works, hooked it up to the MP4 and it played on OBS. So no issues there...
Followed your directions, added the additional back slashes in Streamerbot and created the source in OBS that's grabbing the MP4... the only thing that's different between your video and my OBS is in the properties. the local file path shows singular forward slashes and I can't alter it in any way...
@@dapper_chocobo2332 I think I would have to see your settings to actually dig into what's going wrong. If you join our community discord, linked here: infinitequality.live/
We can do a quick screenshare and I can take a look at what's going on.
I just double checked that everything is still working according to my settings in this video with the most recent update to Streamer.bot. So it's probably just a simple setting isn't working.
I can help you now if you are able to join soon!
I cant get this to trigger, feel I follow your steps exactly. Neither hotkey nor timed action triggers it, OBS thinks its just the video Im pointing to and plays once. (hotkey tested with random chat msg works)
It's a problem with websocket v5. You need to use this instead and switch to v4.9 compat in streamer bot. github.com/obsproject/obs-websocket/releases/tag/4.9.1-compat
@@infinitequality Thanks! I'll look into it
For anyone reading this, v5 was interfering with v4.9 and streamer.bot needed a reconfig. I got help on the linked Discord, thanks so much!
am i being dumb or does this skip a lot of very specific information from 8:45 onwards? i gave up even trying
Streamerbot has been updated a lot this last year and the UI is very different, but overall this still works. If you need more help you can join our discord and I can help you.
@@infinitequality apologies, that's a good point, I'm pretty new to streamerbot but I've seems it's ui change at least twice in that time 😅
I will probably need to make an updated video, tbf. But overall, importing the code, setting up OBS with the correct source, updating the Streamerbot actions to match OBS and the correct folder structure is enough to get this all working. All of that is the same.
The big thing is you have to use websocket 4.9.1 compat for it to work still - github.com/obsproject/obs-websocket/releases
@@infinitequality ok i think i get it for the most part but when it comes to OBS Raw part im stumped. I set the source name and local file but when i test or go to save i get "missing requestType or requests
Does streamerbot show it's connected to OBS in the bottom right corner? Are you using web socket 4.9 compat linked in the description and pinned comment?
Is there anyway to get the length of the random clip and set it as a variable for the purposes of a delay?
Unfortunately no.
@@infinitequality well, that certainly is unfortunate. Ty
Potentially. You would likely need to use c# to read the metadata on clip and get video length from that.
Hi, stopped working on OBS 28 and 0.1.12. Same for you?
it works if you install the websocket 4.9.1 compat plugin. github.com/obsproject/obs-websocket/releases/tag/4.9.1-compat
Can I repurpose this to random audio file?
Any media files compatible with OBS media source will work.
@@infinitequality thank you legend, now I can have random animal sound channel point redeem haha
Maybe it wasn't an option in SB 6 month ago, but nowadays I would use "Play sound from folder" inside SB for this. ;)