# \&meshcastcodec

Meshcast Option / Sender-Side Option! ([`&meshcast`](https://docs.vdo.ninja/advanced-settings/meshcast-parameters/and-meshcast), [`&push`](https://docs.vdo.ninja/advanced-settings/setup-parameters/push))

## Aliases

* `&mccodec`

## Options

Example: `&meshcastcodec=h264`

<table><thead><tr><th width="209">Value</th><th>Description</th></tr></thead><tbody><tr><td><code>h264</code></td><td>h264 codec</td></tr><tr><td><code>vp8</code></td><td>vp8 codec</td></tr><tr><td><code>vp9</code></td><td>vp9 codec</td></tr><tr><td><code>42e01f</code>*</td><td>open h264 codec</td></tr><tr><td>(xxxxxx)*</td><td>h264 profile IDs</td></tr></tbody></table>

\*on beta and alpha

## Details

Adding `&meshcastcodec` to the publisher's side together with [`&meshcast`](https://docs.vdo.ninja/advanced-settings/meshcast-parameters/and-meshcast) gives the option to change the publishing codec for Meshcast.

Example usage: `https://vdo.ninja/?meshcast&meshcastcodec=vp9`

There's 4 codec options currently, including the default option:

* The unspecified default, which is software h264.
* There's also `h264`, which is what the browser then sets. This could include hardware encoding, but that will not work with Firefox or Safari viewers then.
* `vp8` is pretty compatible, so if the default codec doesn't work, you can try that.
* `vp9` is also available, which has better compression/quality, but not fully compatible with all devices.
* av1 and svc are not yet supported, but that is planned at some point.

## Related

{% content-ref url="and-meshcast" %}
[and-meshcast](https://docs.vdo.ninja/advanced-settings/meshcast-parameters/and-meshcast)
{% endcontent-ref %}

{% content-ref url="and-mcscreensharecodec" %}
[and-mcscreensharecodec](https://docs.vdo.ninja/advanced-settings/meshcast-parameters/and-mcscreensharecodec)
{% endcontent-ref %}

{% content-ref url="../video-parameters/codec" %}
[codec](https://docs.vdo.ninja/advanced-settings/video-parameters/codec)
{% endcontent-ref %}

{% content-ref url="../video-parameters/and-h264profile" %}
[and-h264profile](https://docs.vdo.ninja/advanced-settings/video-parameters/and-h264profile)
{% endcontent-ref %}


---

# 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.vdo.ninja/advanced-settings/meshcast-parameters/and-meshcastcodec.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.
