Updated November 2026. Video walkthrough at the bottom of the page. OBS Studio can’t start itself on a timer, but Windows can start it for you. Use the built-in Output Timer to stop a recording and Windows Task Scheduler to start it. Below is the full setup, plus fixes for the most common problems from the comments.
Why I do this
OBS is great for capturing screencasts, Zoom, and Webex calls. Sometimes I’m in class when a web chat starts, so I wanted recording to work like programming a VCR: set a start time and a stop time and walk away. Open the call window you want to record before OBS starts, or you’ll record a blank desktop with no sound. Ask me how I know. It works best with two monitors and the external microphone muted.
Method 1: Stop recording automatically with OBS Output Timer
In OBS, go to Tools > Output Timer, set how long to record, and check Start every time. 
Method 2: Start recording automatically with Windows Task Scheduler
OBS doesn’t run in the background, so it can’t launch itself. A Windows scheduled task (like a cron job on Linux) can.
- Click the Windows icon, type task scheduler, and open it.
- In the left pane, double-click Task Scheduler Library. You need to do this or you can’t create a task.

- Click Action > Create Basic Task. Pick a trigger: one time, daily, at login, and so on. I set mine about 5 minutes before the call starts.
- For the action, choose Start a program. To find what to enter, click the Windows icon, type OBS, right-click it, choose Open file location, then right-click the OBS icon and choose Properties.

- Copy the Target into Program/script.
- Copy the Start in path into Start in. Remove the quotation marks or it will fail.
- In Add arguments, type:
--startrecording -m
The -m lets a second OBS window open if an old one is still running. Without it OBS shows an error.
- Click OK. To test, right-click the task and choose Run. OBS should open and start recording. If it doesn’t, recheck the quotation marks in Start in.
Working? If this just saved you some time, you can buy me a coffee. Now a few fixes if it didn’t work for you.
If the task won’t run: use a batch file
On an older laptop I couldn’t get the task to run OBS directly. A batch file fixed it. Open Notepad, paste this one line, and save as obsScript.bat:
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OBS Studio\OBS Studio (64bit).lnk" --startrecording -m
If the icon doesn’t change, Windows is hiding file extensions. In any folder, click View > Show > File name extensions, then rename the file.
Create the task as above, but point Program/script at obsScript.bat. You’ll see a black command window flash, then OBS starts. The task must run under an administrator account to work.
Frequently asked questions
How do I start a stream instead of a recording?
Use --startstreaming instead of --startrecording. To do both: --startrecording --startstreaming -m.
How do I start OBS minimized when I only have one monitor?
Add --minimize-to-tray to the arguments: --startrecording -m --minimize-to-tray. (Thanks to reader Green for this.) Or in OBS go to Settings > General > System Tray and enable Minimize to system tray when started.
How do I close OBS automatically when the recording ends?
Schedule a second task for the end time that runs:
taskkill /IM obs64.exe
If it won’t close, add /F to force it: taskkill /IM obs64.exe /F. Note the forward slashes. (My earlier version of this post had them backward. On 64-bit OBS the process is obs64.exe.) Force-closing mid-recording can damage the file, so give the Output Timer time to finish first.
How do I record over and over without opening a new OBS window each time?
The easy way is to close OBS between recordings with the taskkill task above. Otherwise keep -m and close the leftover windows yourself now and then.
Can I make it record continuously, in chunks, so a power failure doesn’t lose everything?
Two options:
- Schedule a task to start recording when the computer boots (set the trigger to At startup), so recording resumes when power returns. Make sure the app you’re recording starts first.
- Repeat the task every hour with
-m, so you lose at most an hour. You’ll need to close the old OBS windows now and then.
Should I record in MKV or MP4?
MKV. If power drops mid-recording, an MKV can often be recovered and an MP4 usually can’t. After recording, remux MKV to MP4 in seconds (no re-encoding) with VLC or OBS’s own File > Remux Recordings. Thanks to reader Brice for the Lossless Cut tip for trimming without re-encoding.
How do I record several episodes of a show as separate files?
If every episode is the same length, set the Output Timer to that length and repeat the task at that interval. For anything less regular, try the free Advanced Scene Switcher plugin (reader Brice recommends it): create one macro to start and one to stop recording at specific times, and use Task Scheduler only to launch OBS. The Output Timer doesn’t play well with those macros, so use one or the other.
Can I take a screenshot from the command line?
No. OBS can’t do it from launch parameters, but you can set a screenshot hotkey in Settings > Hotkeys. The full list of launch options is on the OBS wiki: Launch Parameters.
How do I start recording when a Zoom call starts?
Task Scheduler alone can’t detect that. This AutoHotkey script on the OBS forum watches for a window and starts recording. The Advanced Scene Switcher plugin can also trigger on an active window.
It doesn’t work, even with the batch script. What do I do?
Make sure you’re in an administrator account in Windows.
Here’s the video showing the whole setup. You’re welcome!
Is there a way to start a live stream? –startstream… -m??? Somthing like this? Thank you in advance.
Yes you could do exactly that.
Issue i have is being able to record a TV Show (ex: on Roku Channel) and have OBS output one file per episode. Roku Channel will continuously play the next episode one after another. But with OBS I have to manually stop and start the recording.
I don’t know of a clean way to solve that. If all the episodes are exactly the same length, then you could set the timer for that time, then set the scheduled task to restart continuously in that same amount of time.
Hi Adam, how to make the recording start automatically after stopping? I need to make a continuous recording but if there’s something wrong like a power failure then my hours of recording will be gone. So I need not only it can stop after a specified time but also start again automatically and make a loop of it.
That is a tough problem to solve for sure. I have a couple of suggestions that might work:
1. Set up your scheduled task to begin as soon as the computer boots up. That way it’ll record as soon as power is restored. Make sure any other apps you are trying to record from are scheduled in the scheduler to start up before OBS. This should cause the least amount of lost data.
2. Maybe break the recordings up into multiple smaller scheduled recordings. For instance, I would se up the scheduled task to repeat each hour. This way if you lose power after say 45 minutes, there’s only 15 minutes of lost data before the next recording starts. You’ll need to use the -m in the task for sure to allow multiple instances of OBS to run at once. Every now and then you will need to go in and kill the old OBS instances manually that are no longer recording because they will still be opened. I’m not sure if there’s a way to close them automatically.
Good luck!
Did you say to
reboot the computer with Task Manager schedule
to stop OBS recording
because MKV file will not be corrupted with power down?
I don’t think I ever said anything about rebooting using task manager. In another comment I mentioned if someone has power outages, then you can set up in the task scheduler to start recording as soon as the computer comes back on. Rebooting with task manager while a video is being recorded will likely lose some data. However, MKV formats are more forgiving than MP4. If data gets written to the hard drive as a partial MKV file, then it can be saved in most cases. MP4s must have the entire file encoded otherwise the file is corrupted and unusable and cannot be fixed.
There are certain situations that will even cause the MKV files to be damaged beyond repair. For instance, if you shutdown the process before any part is written to the hard drive, then no, there will not be any data you would be able to retrieve at that point. This can happen when data is being saved in RAM by the computer but has not yet been written to the hard drive.
Hi Adam,
I have only one screen, and when the OBS start recording it is shown on the screen and cover the Kodi program I want to record.
Is there a way to start the OBS recording in minimized window?
Thanks,
Green.
With only one screen, you want OBS to start minimized to the system tray (near your clock on the bottom taskbar. You can set that up by opening Settings, under General tab > System Tray, select “Minimize to system tray when started”
Thanks for the replay 🙂
I found another way to do it:
in the scheduler task, I add the argument: “–startrecording -m –minimize-to-tray”
the –startrecording is your idea!
Hi, thank you for all your work on this topic. I think I’ve found a solution that will be helpful, the Advanced Scene Switcher plugin. I’ve tried it a couple times and it seems to work really well. It’s different from the Automatic Scene Switcher feature that comes with OBS.
You can use Windows task scheduler to start OBS. Then make OBS macros to handle all the timing. Using the Output Timer in OBS doesn’t work well with the macros. Just make a macro for when to start and another for when to stop.
See comment #7 here:
https://obsproject.com/forum/threads/how-to-schedule-recording-to-start-at-a-specific-time.151940/
A couple other things I’ve run across yesterday. I see you mentioned MKV vs MP4 files. I’ve found VLC or XMedia Recode can easily remux (copy) MKV files to MP4 files in a matter of seconds. By default most programs will re-encode which can take hours. So if someone wants the robustness of MKV when recording but the universality of MP4 afterward, it’s not difficult to do. And Lossless Cut works well for trimming MP4 files. By using that, it again only takes seconds rather than hours to re-encode like most editing programs. It cuts at key frames so it’s not as precise but it’s really quick and often good enough for what I want.
With a series of macros it should be possible to record single episodes like Nnyan had asked about. Otherwise Lossless Cut could cut a longer recording into individual episodes without too much work. Looks like Lossless Cut is supposed to handle MKV files directly but I’ve had multiple issues with it. It can also quickly remux MKV to MP4. So far it seems like most of the time it will take in an MKV file. Then can trim/cut if wanted and export to MP4 all in just a couple minutes. Seems to have issues exporting to MKV though. Years ago on my XP computer I had a program similar to Lossless Cut that also had scene detection and was pretty good at automatically removing commercials. I found a scene detection feature in Lossless cut but not sure how useful it is.
Is there a way to make a screenshot?
ex) –screenchot -m
Somthing like this? Thank you in advance.
There is the ability to set a hotkey to take screenshots, but it isn’t available from the command line. Here are all the command line options: https://obsproject.com/wiki/Launch-Parameters
Thanks Adam
It worked for me thank you.
I added the start streming option as well –startrecording -m –startstreaming -m
I am a novice with streaming and have added my stream in your website link
GMT 05.00-19.00
That’s awesome! I love the baby bird cam!
How can I schedule recording a live youtube video?
It should be no different than a regular video. If it plays on your computer screen it should record in OBS.