Advanced scene switcher to run batch file

KatMegaByte

New Member
I've been seeing if I can make advanced scene switcher run a batch file to compress replay buffer videos when I turn off the replay buffer but I don't know how to make the macro work or even if I can make the macro work. If anyone has done this or knows how to that would be very helpful.
 

Suslik V

Active Member
Why to compress replay buffer videos when you turn off the buffer? Replay files already compressed.
 

KatMegaByte

New Member
I just wanna make them even smaller so they take up less space. I can run it manually and it works and they look fine for what I want
 

Suslik V

Active Member
So, you want to launch batch file after you clicked "Stop Replay Buffer" button, while OBS is still running?
 

KatMegaByte

New Member
Yeah. I use OBS hadowplay plugin so it stops it when gamecapture does't detect a game running so then I want to run a batch file with advanced scene switcher
 

Suslik V

Active Member
Advanced Scene Switcher condition "Replay buffer" has "Replay buffer stopped" parameter.
Advanced Scene Switcher macro can "Perform actions only on condition change".
Advanced Scene Switcher action "run" expects that the Windows batch file is running silent, i.e. first line is @echo off, "echo" only for a file redirection (ECHO my_text > FILE.txt), confirmations or anything else is kind of a error level - ends the batch.

So, what is not working for you?
 

KatMegaByte

New Member
I have it set like that. The way I have it is pointing to windows CMD and using the location of my file as an argument. When I do run macro it doesn't open.
 

Suslik V

Active Member
The ".bat" can be run directly from the plugin.

So, what's not working? By using the ECHO my_text > Fullpath_to_FILE.txt you can debug the batch file to see where it stops. Simply add it to the second line of the batch, then to the third line and so on (the first line is @echo off, if you remember).
 

Suslik V

Active Member
Because you are running it from the Advanced Scene Switcher, so there is difference. It runs in background silently and ends or fails without any popups or opening new windows. This is by design.

If you have some code written and looking for a fixes or just looking for a complete solution then there is special section on the forum: https://obsproject.com/forum/list/general-development.21/
 
Top