> For the complete documentation index, see [llms.txt](https://unknown-56-works.gitbook.io/luigiscreen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unknown-56-works.gitbook.io/luigiscreen/screens-and-streaming/obs.md).

# OBS Studio

## Stream settings

Open:

```
Settings -> Stream
```

Use:

| Setting            | Value                  |
| ------------------ | ---------------------- |
| Service            | Custom                 |
| Server             | Complete generated URL |
| Stream key         | Empty                  |
| Use authentication | Disabled               |

Example format only:

```
rtmp://HOST:PORT/screen?user=streamer&pass=GENERATED_PASSWORD
```

Never publish the real generated URL.

## Why authentication is disabled in OBS

LuigiScreen puts the generated publisher credentials directly into the RTMP URL. Enabling OBS's separate authentication fields can produce a different connection format and cause authentication failures.

## Recommended output

For a 7x4 screen:

```
896x512
```

Recommended starting values:

```
FPS: 10
Video bitrate: 1500 Kbps
Audio bitrate: 96 Kbps
Keyframe interval: 2 seconds
B-frames: 0
Tune: zerolatency
```

Use a hardware H.264 encoder when available. Software x264 also works but consumes more CPU.

## Add a source

In the OBS Sources panel:

1. Click `+`.
2. Choose **Display Capture**, **Window Capture** or **Media Source**.
3. Confirm that the preview contains video.
4. Click **Start Streaming**.

A black OBS preview means MediaMTX receives a valid stream containing a black frame. Fix the OBS scene before debugging LuigiScreen.

## Test with VLC

On a computer that can reach MediaMTX, open the LuigiScreen reader URL in VLC:

```
Media -> Open Network Stream
```

If VLC cannot read the stream, the problem is before LuigiScreen: OBS, MediaMTX, authentication, firewall or routing.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://unknown-56-works.gitbook.io/luigiscreen/screens-and-streaming/obs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
