Sub topic 9
Pick a recording format and remux safely
Assume you can already record a scene in OBS and understand resolution, frame rate, and bitrate. This chapter focuses on the container used to store the recording, how to convert containers without re-encoding, and how to trim a file safely.
Container versus codec
A container is a file format that holds video, audio, subtitles, and metadata. A codec compresses the video or audio inside that container. For example, an MKV file might contain H.264 video and AAC audio.
Changing a container does not usually change the quality. Remuxing copies the existing audio and video streams into a different container. It is different from transcoding, which decodes and re-encodes the media.
Choose a recording format
For lesson recording, MKV is usually the safest format in OBS. If OBS or the computer stops unexpectedly, the file is more likely to remain usable. MP4 is widely supported by editing and publishing tools, but an interrupted MP4 recording can become unreadable because important file metadata may not be written.
| Format | Main advantage | Main risk or limitation |
|---|---|---|
| MKV | Better recovery after an interruption | Some editors and upload tools require conversion |
| MP4 | Broad compatibility | An interrupted recording may be lost or damaged |
| MOV | Useful in some Apple-oriented workflows | Less convenient as a general OBS recording target |
Set the recording format in Settings > Output > Recording. Select MKV for the original recording. If your workflow always needs MP4, enable OBS's automatic remux option when available, or remux the file manually after recording.
Remux an OBS recording
After recording, use File > Remux Recordings in OBS. Select the MKV file and choose a destination for the MP4 file. OBS copies the streams, so the operation is usually fast and does not reduce quality.
You can also use FFmpeg, a command-line media tool:
ffmpeg -i "2026-11-28 15-45-10.mkv" -c copy "lesson-01.mp4"The -c copy option tells FFmpeg not to re-encode. The output can still fail in an editor if the source contains an unsupported codec, variable frame rate behavior, or unusual audio settings. Always open the new file and check the beginning, middle, end, microphone audio, and desktop audio before deleting anything.
OBS can use a timestamped filename pattern so recordings sort in time order:
%CCYY-%MM-%DD %hh-%mm-%ssAdd a lesson identifier in the recording path or filename when several lessons use the same computer. Avoid overwriting an earlier recording.
A safe handoff workflow
If the recording stopped unexpectedly, do not immediately remux over the source. First copy the MKV to a backup location and test whether it plays. A damaged file may require recovery tools, and repeated conversion attempts can make diagnosis harder.
Trim without re-encoding
FFmpeg can copy a section into a new file:
ffmpeg -ss 00:00:05 -to 00:10:00 -i lesson-01.mp4 -c copy lesson-01-trimmed.mp4Stream copying is fast, but the cut may move to nearby keyframes. A keyframe is a complete video frame that allows decoding to begin independently. The result may include a few extra frames at the start or end. For frame-exact cuts, use an editor or re-encode the selected section.
Exercise
Why should you normally record in MKV and remux to MP4 afterward?
Show answer
MKV is more resistant to becoming unusable after an interruption. Remuxing then creates a widely compatible MP4 without re-encoding or reducing the original quality.