> For the complete documentation index, see [llms.txt](https://docs.vdo.ninja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vdo.ninja/guides/mobile-app/rtmp-to-meshcast.md).

# Send phone video through Meshcast with RTMP

Set up RTMP publishing from the VDO.Ninja phone app to Meshcast and bring the feed into OBS.

Send your phone's camera to Meshcast, then use its VDO.Ninja viewing link in OBS. RTMP is useful for services that accept a server URL and stream key. For packet loss on mobile networks, also consider [SRT](https://docs.vdo.ninja/guides/mobile-app/srt-to-meshcast.md).

**Phone app (RTMP) → Meshcast → VDO.Ninja → OBS Browser Source**

You need the [VDO.Ninja Android or iPhone app](https://docs.vdo.ninja/steves-helper-apps/native-mobile-app-versions.md), OBS, and a registered account at [app.meshcast.io](https://app.meshcast.io/). A free account supports RTMP publishing. On iPhone, use a single camera; RTMP is unavailable for screen sharing, dual camera, and microphone-only capture.

## 1. Copy the Meshcast settings

Follow [Meshcast account and stream setup](https://docs.vdo.ninja/guides/meshcast-setup.md#set-up-an-account-for-srt-or-rtmp), then select **RTMP** in Studio. Copy **RTMP Server** and **Publish Key**. The publishing key is private; do not replace it with the public `st_...` stream ID.

## 2. Set up the phone

1. Open the app and choose **BACK CAMERA** or **FRONT CAMERA**. Allow camera and microphone access.
2. On **Ready to stream**, open **Additional outputs > RTMP > Configure RTMP**.
3. Paste **RTMP Server** into **Server URL**, and **Publish Key** into **Stream key**. Tap **Apply**.

<figure><img src="https://2943598173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZHXv1G8N0MDxwotaT9%2Fuploads%2Fgit-blob-9c3cbfb2fd7ee129109d4a737abb60e11facf613%2Fphone-rtmp-destination.png?alt=media" alt="RTMP destination form with example server rtmp://media.example.com:1935/live and example stream key pk_example" width="360"><figcaption><p>Use the server and key from your own Meshcast Studio.</p></figcaption></figure>

4. Keep **Use this destination** enabled. Under **Output quality**, choose **Apply a preset > IRL balanced**. For a horizontal broadcast, select **Output orientation > Landscape 16:9**.
5. Tap **Save**, return to **Ready to stream**, and tap **START STREAM**.

The app sends H.264 video and AAC audio with B-frames off, suitable for Meshcast's browser playback path. **IRL balanced** targets 720p30 at 2500 kbps video. If the upload cannot sustain that, try **IRL data saver** or lower the video bitrate.

## 3. Bring the feed into OBS

1. In Meshcast Studio, open **Watch Links** and copy the complete **VDO.Ninja View Link** for the same stream, including its `whep` parameter.
2. In OBS, choose **Sources > + > Browser**, then paste the link into **URL**.
3. Check moving video and the OBS audio meter. Make a short recording to confirm picture and sound.

Give other viewers this Meshcast-backed link too. Viewing the phone's original direct link adds another upload from the phone.

## Quick fixes

* **Cannot connect:** use the complete RTMP server address and publishing key from Studio. The app's external output supports `rtmp://`; it does not support `rtmps://`.
* **Stalls or growing delay:** lower the video bitrate. On iPhone, **Adaptive bitrate (RTMP only)** is an optional control under **Output quality**; it lowers the target during congestion. It does not bond networks or reconnect for you.
* **Video but no sound:** check **Include audio**, microphone mute, and the OBS mixer. Browser playback needs Meshcast's AAC-to-Opus conversion. If it remains silent, use [SRT reception in OBS](https://app.meshcast.io/docs/srt-to-obs) or switch the phone to [Meshcast/WHIP](https://docs.vdo.ninja/guides/mobile-app/choose-an-output.md).
* **Restart:** open **More > Additional outputs > RTMP** to stop, start, or retry. Stop the output before changing its quality settings. Re-enter the destination after fully closing the app.
* **Different menus:** older app layouts use **Advanced Settings > External publishing controls**, then **More > Advanced external output** while streaming.

[Compare output modes](https://docs.vdo.ninja/guides/mobile-app/choose-an-output.md) · [SRT setup](https://docs.vdo.ninja/guides/mobile-app/srt-to-meshcast.md) · [Packet loss troubleshooting](https://docs.vdo.ninja/common-errors-and-known-issues/packet-loss.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.vdo.ninja/guides/mobile-app/rtmp-to-meshcast.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
