How to Output Raw Transport Stream TS in OBS
This guide provides a step-by-step walkthrough on how to configure OBS Studio to record and output video in the raw transport stream (.ts) file format using the advanced output container settings. You will learn how to access the advanced recording settings, select the FFmpeg custom output, and configure the container to ensure your recordings are saved directly as .ts files, which are highly resilient to crashes and ideal for broadcast workflows.
Step 1: Open Output Settings
- Launch OBS Studio.
- Click on Settings in the bottom-right Controls dock, or go to File > Settings in the top menu.
- In the Settings window, click on the Output tab in the-left hand sidebar.
Step 2: Switch to Advanced Output Mode
- Locate the Output Mode dropdown menu at the top of the Output settings page.
- Change the selection from Simple to Advanced. This unlocks additional recording and encoding options.
Step 3: Configure Custom FFmpeg Output
- Click on the Recording tab at the top of the window.
- Find the Type dropdown menu and change it from Standard to Custom Output (FFmpeg). This allows you to manually define the container and muxer settings.
- In the Container Format dropdown, scroll through the list and select mpegts (which stands for MPEG Transport Stream).
- In the File Extension box, ensure it is set to ts.
Step 4: Define Bitrates and Encoders (Optional)
While the container handles the .ts format, you must
define how the video and audio are compressed inside it: * Video
Encoder: Select your preferred encoder (e.g.,
libx264 for CPU encoding or h264_nvenc for
NVIDIA graphics cards). * Video Bitrate: Input your
desired bitrate (e.g., 6000 Kbps for high-quality 1080p). *
Audio Encoder: Select aac or
mp3.
Step 5: Save and Apply Settings
- Click Apply in the bottom-right corner of the Settings window.
- Click OK to close the window.
Your OBS Studio is now configured. When you click Start Recording, OBS will encode your video directly into a raw transport stream (.ts) file saved to your designated recording path.