Rank: Member
Groups: Registered
Joined: 4/13/2021(UTC) Posts: 15 Location: Düsseldorf
|
Hi! Maybe someone can help me to modify batch file and script? its working but its keep trying to reopen Vmix and loop commands. The purpose is as follows: -After 5 seconds of Close or Crash, Vmix restarts and after 10 seconds from lunch start to stream
Batch file in startup:
ECHO Start vMix :VMIX start "" "C:\Users\Admin\AppData\Roaming\last.vmix echo (%time%) Streaming started. PING 127.0.0.1 -n 10> NULL ECHO Start Streaming start "" "D:\vmix\stream.vbs" echo (%time%) WARNING: VMIX closed or crashed, restarting. :: Wait 5 seconds before restarting. TIMEOUT /T 5 GOTO VMIX
Stream.vbs:
On Error Resume Next
Dim o Set o = CreateObject("MSXML2.XMLHTTP") o.open "GET", "http://localhost:8088/api/?Function=StartStreaming", False o.send
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/15/2022(UTC) Posts: 39 Thanks: 6 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Suhil Hi! Maybe someone can help me to modify batch file and script? its working but its keep trying to reopen Vmix and loop commands. The purpose is as follows: -After 5 seconds of Close or Crash, Vmix restarts and after 10 seconds from lunch start to stream
Batch file in startup:
ECHO Start vMix :VMIX start "" "C:\Users\Admin\AppData\Roaming\last.vmix echo (%time%) Streaming started. PING 127.0.0.1 -n 10> NULL ECHO Start Streaming start "" "D:\vmix\stream.vbs" echo (%time%) WARNING: VMIX closed or crashed, restarting. :: Wait 5 seconds before restarting. TIMEOUT /T 5 GOTO VMIX
Stream.vbs:
On Error Resume Next
Dim o Set o = CreateObject("MSXML2.XMLHTTP") o.open "GET", "http://localhost:8088/api/?Function=StartStreaming", False o.send
Hi Bro , first of all good job ! nice script! but it can be done so easily , just by vmix itself web api ! look at this : timeout 60 start http://localhost:8088/api?function=StartPlayList timeout 10 start http://localhost:8088/api?function=StartStreaming put the batch file and a shortcut from your last.vmix file into windows startup shell:startup
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close