OBS Restart 24/7 Fireplace Stream: Step-by-Step
In this article
Running a 24/7 fireplace stream is a great way to build a cozy, always-on channel, but OBS (Open Broadcaster Software) will eventually crash, glitch, or drop the feed. Setting up automatic restarts means your stream keeps going even when you're away. This guide shows you how to configure OBS to restart itself and your stream automatically, so the fire never goes out.
What You'll Need
- OBS Studio installed (Windows, macOS, or Linux).
- A Twitch, YouTube, or other streaming account with your stream key.
- Your fireplace video file or looped video source ready.
- Administrator rights on your computer (to create scheduled tasks or install scripts).
Step-by-Step
Part 1: Prepare OBS for 24/7 Operation
- Set up your fireplace scene. Open OBS and create a new scene (or use an existing one). Add your fireplace video as a Media Source. Check the box for Loop so the video repeats indefinitely. If you're using a live camera feed, skip this step.
- Enable auto-reconnect. Go to Settings → Advanced. In the Network section, enable Auto-Reconnect and set the retry delay to something like 10 seconds and max retries to a high number (e.g., 1000). This helps OBS recover from brief internet hiccups.
- Set your stream output. In Settings → Stream, select your service (Twitch, YouTube, etc.) and paste your stream key. Make sure the server is set to the one closest to you.
- Test your stream. Start streaming and confirm the fireplace video appears correctly. Let it run for 10 minutes to ensure stability.
Part 2: Automatically Restart OBS on Crash (Windows)
- Create a batch file. Open Notepad and paste the following:
@echo off :start start "" "C:\Program Files\obs-studio\bin\64bit\obs64.exe" --startstreaming timeout /t 30 /nobreak >nul tasklist /fi "IMAGENAME eq obs64.exe" | find ":" >nul if errorlevel 1 goto start :loop timeout /t 5 /nobreak >nul tasklist /fi "IMAGENAME eq obs64.exe" | find ":" >nul if errorlevel 1 goto start goto loop
Adjust the path to obs64.exe if you installed OBS elsewhere. Save the file asrestart_obs.bat(make sure the extension is .bat, not .txt). - Run the batch file. Double-click the .bat file. It will launch OBS with streaming started, then monitor the process. If OBS closes or crashes, it will wait 30 seconds and restart it.
- Make the batch file start on login. Press
Win + R, typeshell:startup, and press Enter. Copy a shortcut to your .bat file into this folder. Now the watchdog runs every time you log in.
Part 3: Automatically Restart on macOS/Linux
- Create a shell script. Open Terminal and create a script with
nano restart_obs.sh. Paste:#!/bin/bash while true; do open -a OBS --args --startstreaming # macOS
Save withFor Linux, use: obs --startstreaming &
sleep 30 if ! pgrep -x obs > /dev/null; then echo "OBS not running, restarting..." else while pgrep -x obs > /dev/null; do sleep 5 done fi doneCtrl+O, thenCtrl+X. Make it executable withchmod +x restart_obs.sh. - Run the script. Execute it with
./restart_obs.sh. To run it in the background, usenohup ./restart_obs.sh &. - Set it to run at login. On macOS, go to System Preferences → Users & Groups → Login Items and add the script. On Linux, add it to your desktop environment's startup applications.
Part 4: Use a Dedicated Restart Tool (Alternative)
- Install a restart utility. Tools like Restart on Crash or Always Up can watch OBS and restart it. These are third-party apps, so download from official sources.
- Configure the tool. Point it to the OBS executable and add
--startstreamingas a command-line argument. Set the check interval to 10-30 seconds.
Common Mistakes
- Wrong OBS path in the batch file. If the path is incorrect, the script won't start OBS. Double-check the location.
- Not using
--startstreaming. Without this flag, OBS opens but doesn't start streaming. You'll see a black screen on your channel. - Batch file closes when you log off. If you rely on a .bat in the startup folder, it only runs when you're logged in. For true 24/7, use Task Scheduler to run it at system startup, or keep your user logged in.
- Firewall blocking OBS. If OBS can't connect, the stream won't start. Allow OBS through your firewall.
Tips
- Use a looped video file instead of a live camera to reduce bandwidth and CPU usage.
- Set OBS to run as administrator to avoid permission issues, especially if you use game capture or audio drivers.
- Keep your computer awake. Disable sleep/hibernate in power settings. You can also use a tool like Caffeine or Don't Sleep.
- Log the script's activity. Add
echo "$(date) - Restarted" >> obs_restart.logto the script to track crashes. - Use a static IP or DNS for your streaming server to avoid reconnection issues.
Troubleshooting
- OBS doesn't start after script runs. Check the path in the script. Run the command manually in the terminal to see any error messages. Also verify that the OBS executable name is correct (obs64.exe on Windows, obs on Linux).
- Stream starts but goes offline after a while. This is often a network issue. Increase the auto-reconnect settings, and check your internet stability. Also ensure your bitrate is within your upload limit.
- The script runs but OBS starts without streaming. Confirm the
--startstreamingflag is exactly as written. In some OBS versions, the flag is--startstreaming(no space). - Multiple OBS instances open. The script may start a new instance before the old one fully closes. Increase the timeout after closing OBS (e.g.,
timeout /t 30to60). - Stream key invalid after restart. If you use a rotating stream key, update it in OBS before starting the script. Some platforms allow a persistent stream key.
Frequently Asked Questions
Can I run a 24/7 stream with a free OBS?
Yes, OBS is free and open-source. The only cost is your internet bandwidth and electricity.
Will my computer overheat if left on 24/7?
It's possible if cooling is insufficient. Ensure proper ventilation, clean dust filters, and consider lowering CPU usage by using a low-resolution video (e.g., 720p) and hardware encoding.
What if my internet drops for a long time?
OBS will keep trying to reconnect if you set a high retry count. If the connection is lost for hours, the stream will eventually stop. The script will restart OBS, but if the internet is still down, it won't connect. Consider a UPS for power outages.
Can I use a YouTube video as a fireplace source?
Yes, you can use a browser source, but it's not recommended because YouTube may buffer or stop. Download the video and use a media source for reliability.
Do I need a dedicated PC for this?
Not necessarily, but a dedicated PC or a low-power device like a Raspberry Pi (with OBS) is more reliable. If you use your daily PC, the stream may stop when you reboot or update.
How do I stop the automatic restart when I want to end the stream?
Close the batch file or script (e.g., Ctrl+C in the terminal, or end the process in Task Manager). Then close OBS normally.