# Stream using OBS

Sharing your District VR performances with the world is an exciting way to connect with a broader audience.

***

### Requirements

* **OBS Studio**: Download and install from [obsproject.com](https://obsproject.com/).
* **District VR**: Installed and launched via Steam.
* **Streaming Accounts**:
  * Twitch
  * YouTube
  * X (Twitter)

***

### Setting Up OBS Studio

#### 1. Install OBS Studio

* **Download**: Visit the [OBS Studio website](https://obsproject.com/) and download the latest version for your operating system.
* **Install**: Run the installer and follow the on-screen instructions.

#### 2. Launch District VR

* **Open Steam**: Start the Steam client and sign in to your account.
* **Start Game**: Launch District VR from your Steam library.
* **Game Window**: A game window will pop up on your PC—this is what you'll capture in OBS.

#### 3. Open OBS Studio

* **Run OBS**: Launch OBS Studio from your desktop or Start menu.

#### 4. Add Game Capture Source

* **Sources Panel**: In OBS, locate the **Sources** box at the bottom of the window.
* **Add Source**:
  * Click the **+** button.
  * Select **Game Capture** from the list.
* **Create New Source**:
  * Name it (e.g., "District VR") and click **OK**.
* **Configure Settings**:
  * **Mode**: Set to **Capture Specific Window**.
  * **Window**: Choose the District VR game window from the dropdown.
  * **Options**: Check **Allow Transparency** if needed.
* **Confirm**: Click **OK** to add the source.

#### 5. Adjust the Capture

* **Preview Window**: Ensure the game fits properly in the preview area.
* **Resize if Necessary**: Drag the edges of the capture to adjust the size.

***

### Configuring Streaming Settings

#### 1. Open OBS Settings

* **Access Settings**: Click **Settings** in the lower-right corner of OBS.

#### 2. Stream Settings

* **Navigate to Stream Tab**: In the Settings window, click on **Stream**.
* **Service Selection**:
  * **Twitch**:
    * **Service**: Select **Twitch**.
    * **Connect Account**: Click **Connect Account (recommended)** and log in.
  * **YouTube**:
    * **Service**: Select **YouTube - RTMPS**.
    * **Stream Key**: Click **Get Stream Key** to retrieve it from your YouTube account.
  * **X (Twitter)**:
    * **Service**: Select **Custom...**.
    * **Server and Stream Key**: Obtain these from your X account's media settings and enter them.

#### 3. Output Settings

* **Output Tab**: Click on **Output** in the Settings window.
* **Output Mode**: Set to **Simple** for straightforward configuration.
* **Video Bitrate**:
  * **720p Streaming**: Set between **2500-3500 Kbps**.
  * **1080p Streaming**: Set between **4500-6000 Kbps**.
* **Encoder**:
  * Use **Hardware (NVENC)** if available for better performance.
  * Otherwise, select **Software (x264)**.
* **Audio Bitrate**: Set to **160 Kbps** for good audio quality.

#### 4. Video Settings

* **Video Tab**: Click on **Video**.
* **Base (Canvas) Resolution**: Set to your monitor's native resolution.
* **Output (Scaled) Resolution**:
  * **1280x720** for 720p streaming.
  * **1920x1080** for 1080p streaming.
* **Downscale Filter**: Choose **Bicubic (16 samples)**.
* **FPS**: Set to **30** or **60** depending on your system's capability.

#### 5. Audio Settings

* **Audio Tab**: Ensure your microphone and desktop audio devices are correctly selected.
* **Levels**: Adjust volumes in the **Mixer** panel on the main OBS screen.

***

### Starting Your Stream

#### 1. Prepare Your Scene

* **Double-Check Sources**: Ensure District VR is properly displayed in OBS.
* **Add Overlays**: Include any additional images or text you want on your stream.

#### 2. Test the Stream

* **Private Stream**: Some platforms allow you to stream privately to test settings.
* **Monitor Performance**: Check for any lag or audio issues.

#### 3. Go Live

* **Start Streaming**: Click the **Start Streaming** button in OBS.
* **Confirm Live Status**: Verify on your chosen platform that the stream is live.

***

### Streaming to Specific Platforms

#### Twitch

* **Dashboard**: Use the Twitch Dashboard to manage your stream.
* **Interact**: Engage with viewers via the chat.

#### YouTube

* **YouTube Studio**: Access [YouTube Studio](https://studio.youtube.com/) for stream settings.
* **Latency Settings**: Choose between normal, low, or ultra-low latency.

#### X (Twitter)

* **Media Studio**: Use [Twitter Media Studio](https://studio.twitter.com/) to configure your stream.
* **Promote**: Share your stream link in tweets for visibility.

***

{% hint style="info" %}
**Additional Tips**

* **Stable Internet**: Ensure you have a reliable internet connection with adequate upload speed.
* **System Resources**: Close unnecessary applications to free up CPU and memory.
* **Recording Option**: You can record your stream locally by clicking **Start Recording**.
  {% endhint %}

***

### Need Assistance?

Join our Discord community to get help from other streamers and the District VR team.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.district.berlin/features/stream-using-obs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
