ThisCalculator

Everyday

OBS Recording Format Settings for 24/7 Stream Backups

Updated · Standard formula, shown below

To protect local backups of a 24/7 stream, set OBS to record in MKV (Matroska) format with a reasonable bitrate and keyframe interval, and use a separate file per segment if you need to trim or recover footage after a crash. This guide explains the exact settings, why they matter, and how to avoid common pitfalls that corrupt or bloat your recordings.

Why MKV is the Default Choice for Long Recordings

OBS Studio’s default recording format is MKV, and for good reason. Unlike MP4, MKV is a container that does not require a valid “moov atom” at the end of the file to be playable. If OBS crashes, the power goes out, or the stream drops, an MP4 file becomes unreadable—you lose the entire recording. MKV files, however, remain playable up to the point of interruption. This resilience makes MKV the safest format for 24/7 streams where a crash is not a matter of if, but when.

You can also remux MKV to MP4 later using OBS’s built-in Remux tool (File > Remux Recordings) without re-encoding, so you lose no quality and only spend a few seconds per file.

Core Recording Settings for Reliability

In OBS, go to Settings > Output. Under the Recording tab, set the following:

  • Format: MKV (or fragmented MP4 if you must use MP4, but MKV is safer).
  • Encoder: Hardware (NVENC, AMF, QuickSync) or x264. For 24/7, hardware encoders consume less CPU, leaving headroom for other tasks.
  • Rate Control: CBR (Constant Bitrate) or CQP (Constant Quality) with a target. CBR is predictable for storage, CQP saves space when the scene is static.
  • Bitrate: For 1080p at 60fps, a CBR of 6000–8000 Kbps is typical for streaming; for local backups you may want higher (10,000–15,000 Kbps) to preserve detail, but this multiplies file size.
  • Keyframe Interval: 2 seconds (e.g., 120 frames at 60fps) is standard for streaming; for local recordings, a longer interval (e.g., 5–10 seconds) reduces file size slightly but makes seeking less precise.
  • Audio Bitrate: 160–320 Kbps per track; 24/7 streams often have multiple tracks (mic, desktop, music) so account for each.

How to Split Long Recordings into Manageable Files

OBS does not natively split recordings by duration, but you can achieve this with a simple script or by using the “Reconnect” feature in streaming. For local recording, the easiest method is to use a third-party tool like FFmpeg to segment the file, or to restart the recording periodically via a hotkey or timer. However, for a true 24/7 setup, consider using OBS’s “Auto-Remux” feature (Settings > Advanced > Recording) which automatically converts MKV to MP4 after each recording session. Combined with a scheduled task that stops and starts recording every few hours, you get individual MP4 files that are easy to archive.

Alternatively, use the “Output Timer” plugin (not built-in) to auto-stop after a set duration, then start again. This is more reliable than manual intervention.

Storage and Disk Health Considerations

A 24/7 stream at 1080p60 with 10 Mbps bitrate produces roughly 4.5 GB per hour, or about 108 GB per day. Plan your storage accordingly:

  • Use a dedicated hard drive or SSD with ample free space—at least 20% above your daily output to avoid fragmentation and wear.
  • For long-term archival, consider a NAS or external HDD, but ensure the recording drive is not the same as the system drive to avoid I/O bottlenecks.
  • Monitor disk temperature and SMART status; continuous writing can shorten the life of consumer drives. Enterprise drives or SSDs with high endurance ratings are better.
  • Set OBS to write to a local disk first, then move files to a network or cloud location after the recording ends to avoid network interruptions corrupting the file.

Common Pitfalls and How to Avoid Them

Several issues plague 24/7 recording setups:

  • Corrupt MP4 files: Avoid recording directly to MP4 unless you enable “fragmented MP4” in OBS (Settings > Advanced > Recording > Use fragmented MP4). This writes a valid file even if interrupted, but not all players support it.
  • Bitrate spikes: CBR with a high max bitrate can cause dropped frames if the encoder can’t keep up; use CQP with a CRF of 18–23 for quality without spikes.
  • Audio desync: Over long recordings, audio and video can drift. Use a constant frame rate (e.g., 60fps) and ensure your audio sample rate is 48kHz, matching OBS’s default.
  • Disk full: OBS will continue recording until the disk is full, then crash or stop. Set a disk space warning in OBS (Settings > General > Warning when disk space is low) and automate cleanup.
  • Time zone changes: If you run 24/7 across DST changes, OBS timestamps may shift. Use UTC in filenames or a script to rename files with correct times.

Comparing MKV, MP4, and Fragmented MP4

Here’s a quick comparison to help you decide:

  • MKV: Most reliable for crash recovery, but not natively supported by some editors or devices. You must remux to MP4 for editing.
  • MP4 (standard): Universally compatible, but a single bad byte at the end can corrupt the whole file.
  • Fragmented MP4 (fMP4): Writes in small segments, so a crash only loses the last few seconds. Playable in most modern players, but not all.

For 24/7, MKV is the safest choice. If you need MP4 for editing, enable Auto-Remux in OBS to convert after each recording.

Cost and Performance Trade-offs

Recording 24/7 at high quality consumes CPU/GPU resources and storage. Hardware encoders (NVENC, AMF, QuickSync) are efficient and free, but they may slightly reduce quality compared to x264 at the same bitrate. Software x264 with a slower preset (e.g., “medium” or “slow”) gives better quality per bitrate but uses more CPU, which could affect your stream performance if you’re also streaming. For a dedicated recording PC, x264 is fine; for a single PC setup, use hardware encoding.

Storage costs are ongoing. A 4TB drive can hold about 37 days of 1080p60 at 10 Mbps. Consider using a compression-friendly codec like HEVC (H.265) if your hardware supports it—it can halve file sizes, but editing compatibility is less universal.

Frequently Asked Questions

Can I record in MP4 and still recover a crashed file?

Yes, if you enable fragmented MP4 in OBS, but it’s not as robust as MKV. Some players may not seek correctly in fMP4 files. For maximum safety, stick with MKV and remux afterward.

How do I automatically split recordings into hour-long files?

OBS doesn’t have a built-in timer, but you can use the “Output Timer” plugin or a Windows Task Scheduler script that stops and starts recording. Alternatively, use FFmpeg to segment an ongoing MKV file with the -f segment option.

What bitrate should I use for 1080p60 local backups?

For high-motion content, use 10,000–15,000 Kbps with CBR or CQP (CRF 18–20). For static content like a webcam, 6,000–8,000 Kbps is sufficient. Higher bitrates increase file size without visible benefit beyond a point.

Does recording 24/7 damage my SSD?

SSDs have limited write endurance, but modern SSDs can handle years of continuous recording. For example, a 1TB SSD with 600 TBW (terabytes written) would last over 5 years at 100GB/day. Still, use a HDD for archival to save SSD endurance.

Why does my recording have audio desync after many hours?

This usually happens when the video frame rate is variable or the audio device drifts. Set OBS to a fixed frame rate (e.g., 60fps) and use 48kHz audio. Also, avoid using Bluetooth audio devices, which have inherent latency.

Can I record and stream simultaneously with different settings?

Yes, OBS allows separate encoders for streaming and recording (Settings > Output > Streaming and Recording tabs). You can stream at 6 Mbps and record at 12 Mbps without conflict, as long as your hardware can handle the load.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.