# How to Stream Using Twitch or YouTube

It is possible to use Livepeer to multistream to a number of channels at the same time. This is super easy to set up and offers the ability to stream in Mona, YouTube, Twitch etc at the same time.

* Follow the previous tutorial to set up OBS Studio and Livepeer.
* Once you have created a new Stream in Livepeer you can see a section to the right called multistream. Select the 'Create' button.

<figure><img src="/files/QS2W2sT5Fh97LyWWk9xP" alt=""><figcaption><p>Select 'Create' to add a stream channel</p></figcaption></figure>

* Once selected you will get a popup to fill in the required information for the destination stream such as YouTube or Twitch. Each platform has different information which is added below.\
  \
  You will need the following :&#x20;
  * Name - This is the name of the target
  * Ingest URL - This is a link from the destination source covered below
  * Stream Key - This is the Stream key that will also be covered below
  * Profile - This covers the resolution of the stream to the destination
  * Mute Audio - It is possible to mute the audio of the outgoing stream

<figure><img src="/files/EWKK4SnQKctHzOABdFEI" alt=""><figcaption><p>Fill in the information for your target platform</p></figcaption></figure>

## Getting the YouTube Stream Details

* To get the information needed above you can go to the 'Go Live' button on your YouTube channel.

<figure><img src="/files/1LFOXXzy5ZgwZIFK7jmn" alt=""><figcaption><p>Use the 'Go Live' button</p></figcaption></figure>

* All the information needed can be found on the following page to put into the Livepeer parameters

<figure><img src="/files/AwgH0pUWA45aEYihGnqA" alt=""><figcaption><p>Grab the Stream Key and Stream URL from the details</p></figcaption></figure>

## Getting the Twitch Stream Details

* Use the following URL to get the best Stream URL for your location\
  <https://stream.twitch.tv/ingests/>
* The Stream Key can be found in the Creator Dashboard > Settings > Stream page&#x20;

<figure><img src="/files/YeUNI0ppkhFAL9xLSQ93" alt=""><figcaption><p>Get the Stream Key from the Settings / Stream page</p></figcaption></figure>

## Alternative approaches

Getting the YouTube or Twitch .m3u8 URL directly seems to be against their Terms of Service and therefore it is more difficult to get the link.&#x20;

You would need to get this via other methods separate from the YouTube/Twitch channel. These methods do seem less reliable and more complicated than using Livepeer.&#x20;


---

# 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.monaverse.com/collect/live-streaming-in-mona/how-to-stream-using-twitch-or-youtube.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.
