This guide shows you how to make OBS Studio automatically resume your live stream after a Windows PC reboot or crash. You’ll set OBS to launch on startup, enable auto-reconnect for network hiccups, and use a simple script to restart the stream if it stops. No third-party software is required beyond OBS itself and a basic text editor.
What You’ll Need
- OBS Studio installed (version 28 or newer recommended for the auto-reconnect features).
- Windows 10 or 11 (steps are similar on older versions).
- Administrator access to your user account (to add startup entries).
- A text editor like Notepad (built into Windows) for creating the script.
Step-by-Step
- Enable OBS auto-launch on startup. Open OBS Studio. Go to Tools > Settings > General. Scroll down to the Startup section and check Start OBS automatically when the computer starts. Click OK. This ensures OBS opens after a reboot.
- Turn on auto-reconnect in OBS. In the same Settings window, go to Advanced. Under Network, check Automatically reconnect and set Reconnect delay to 5 seconds and Max retries to 20. This handles temporary internet drops. Click OK to save.
- Create a batch script to start streaming. Open Notepad. Paste the following lines:
@echo off cd /d "C:\Program Files\obs-studio\bin\64bit" start obs64.exe --startstreaming --minimize-to-tray
If your OBS is installed elsewhere, replace the path with the correct one (check by right-clicking the OBS shortcut and selecting Open file location). Save the file as
start-obs-stream.baton your Desktop. - Test the script. Double-click the .bat file. OBS should open and automatically begin streaming. If it doesn’t, check that your stream key is valid and that you’re not already streaming.
- Add the script to startup. Press
Win + R, typeshell:startup, and press Enter. Copy thestart-obs-stream.batfile into this folder. Now the script will run every time you log in. - Optional: Force OBS to wait for network. If your PC boots before your internet is ready, add a delay at the top of the script. Insert the line
timeout /t 30 /nobreakafter@echo offto wait 30 seconds before starting OBS. - Reboot to test. Restart your PC, log in, and wait. OBS should open automatically and start streaming. If it doesn’t, check the troubleshooting section below.
Common Mistakes
- Wrong OBS path. The script assumes OBS is installed in
C:\Program Files\obs-studio. If you installed it elsewhere, the script will fail silently. Always verify the path. - Forgetting to allow OBS in the firewall. Windows Firewall might block OBS from connecting after a reboot. Make sure OBS is allowed through the firewall (Settings > Windows Security > Firewall & network protection).
- Stream key expired. If your stream key is invalid, OBS will not reconnect. Check your streaming platform’s dashboard for a current key.
- Not saving the script with the .bat extension. If you save it as
.txt, Windows won’t run it. Ensure the filename ends with.bat.
Tips
- Use a dedicated streaming PC. If you have a second PC, set it to auto-login and run the script there to avoid interfering with your main work.
- Set Windows to auto-login. If you want OBS to start without you typing a password, configure netplwiz to auto-login. This is a security trade-off, so only do it on a trusted machine.
- Monitor the stream. Use a monitoring tool like OBS’s built-in Stats (View > Stats) to see dropped frames and connection quality.
- Keep OBS updated. Newer versions have better auto-reconnect logic and fewer bugs.
- Use a scheduled task for more control. Instead of the startup folder, you can use Task Scheduler to run the script at log on with a delay and even restart it if it crashes.
Troubleshooting
- OBS starts but doesn’t stream. Check the script’s output by opening a command prompt and running it manually. Look for error messages. Ensure the stream key is correct and that you’re not already streaming from another instance.
- The script runs but OBS doesn’t open. Verify the path in the script. Try running
obs64.exemanually from the command line to see if it launches. If not, reinstall OBS. - Stream starts but stops after a few seconds. This usually indicates a network issue or an invalid stream key. Check your internet connection and the platform’s server status.
- OBS opens but the script doesn’t start streaming. Make sure the
--startstreamingflag is spelled exactly as shown. Also, check if OBS is already streaming when the script runs (it won’t start a second stream). - Auto-reconnect doesn’t work. Some platforms limit reconnection attempts. Increase the max retries to 50 and delay to 10 seconds. Also, check if your router is dropping the connection (try a wired connection).
Frequently Asked Questions
Will this work if my PC crashes (not just reboots)?
Yes, as long as Windows restarts and you log in, the startup script will run. If you set auto-login, it will run even without manual login.
Can I use this with Streamlabs OBS?
No, this guide is for OBS Studio. Streamlabs has its own auto-start options, but the script approach can be adapted by changing the executable path to Streamlabs OBS.exe and using its command-line flags.
Will this affect my stream quality?
No, the script just automates what you’d do manually. The stream quality depends on your upload speed and OBS settings.
Is it safe to leave my stream running unattended?
It’s generally safe, but be aware that you’re broadcasting to the public. Make sure your content is appropriate and that you’re not sharing sensitive information.
Can I stop the stream remotely if needed?
Yes, you can use OBS’s WebSocket server (Settings > WebSocket) with a mobile app like OBS Remote to start/stop the stream from your phone.
Do I need to be logged in to Windows for this to work?
Yes, the startup script runs at user login. If you use auto-login, it will work without interaction. If not, you’ll need to log in manually.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix msmpeg2vdec.dll Errors in Windows
- How to Update Sonos App and Speakers
- Unlock iPad Without Apple ID: Is It Possible?
- iOS 18 WhatsApp Notifications Not Working? Fix
- Fix Windows Cannot Locate Suitable Printer Driver
- How to Group Text and Pictures in Word