> 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/share-webcam-from-inside-obs.md).

# How to share webcam from inside OBS

Share a webcam or OBS Virtual Camera through a VDO.Ninja dock inside OBS.

{% hint style="warning" %}
OBS 27.1.3 supports the dock setup below. If your OBS version cannot open a camera in the dock, use the [browser publishing guide](/guides/publish-from-obs-into-vdo.ninja.md).
{% endhint %}

## 1. Enable camera access for the dock

On Windows, right-click the OBS shortcut and open **Properties**. Add `--enable-media-stream` to **Target**, after the closing quotation mark:

```
"C:\Program Files\obs-studio\bin\64bit\obs64.exe" --enable-media-stream
```

<figure><img src="https://2943598173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZHXv1G8N0MDxwotaT9%2Fuploads%2FBNU9514f7gBBMXGsbqKo%2Fimage.png?alt=media&amp;token=5fa4d602-4589-483a-bcfc-12ec5c9b2505" alt="OBS shortcut properties with --enable-media-stream appended after the quoted executable path" width="485"><figcaption><p>Keep your existing OBS path. Add the flag outside its quotes, then restart OBS using this shortcut.</p></figcaption></figure>

## 2. Open VDO.Ninja in a browser dock

Add a custom browser dock using this URL:

```
https://vdo.ninja/?webcam&vd=obs&ad=virtual&autostart&cover
```

It selects OBS Virtual Camera and a matching virtual audio cable, then starts publishing automatically. Start **OBS Virtual Camera** before opening the dock; see the [audio setup](/guides/share-obs-audio-with-vdo-ninja.md) to send sound through the cable.

## 3. Check the selected devices

For manual selection, leave `&autostart` out of the dock URL. Choose the devices, check the preview, and click **START**.

<figure><img src="https://2943598173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZHXv1G8N0MDxwotaT9%2Fuploads%2Fgit-blob-d27c7c2b79870c2ff71ff96ec70b21ada85f977d%2Fvdo-camera-and-audio.png?alt=media" alt="VDO.Ninja device controls with OBS Virtual Camera and CABLE Output selected" width="494"><figcaption><p>Use OBS Virtual Camera for the picture and CABLE Output for the sound.</p></figcaption></figure>

Copy the resulting **view link** to your receiver. Keep the dock running, and keep its preview out of the OBS scene sent to Virtual Camera to avoid a repeating picture.

## Related

If OBS and the VDO.Ninja dock or browser source are competing for the same physical webcam, see [Camera already in use by OBS or VDO.Ninja](/common-errors-and-known-issues/cant-load-camera-both-in-obs-and-vdon.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/share-webcam-from-inside-obs.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.
