# 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="https://3438761929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgZbQzoznBJC_ld633%2Fuploads%2FF6CskY02DzBdA9ccgxNy%2Fimage.png?alt=media&#x26;token=bc94ec3b-38ff-4e50-a905-c2dc6bfb62c5" 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="https://3438761929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgZbQzoznBJC_ld633%2Fuploads%2FkeuJtdbdZgJOjSL1n1hL%2Fimage.png?alt=media&#x26;token=5c6788e3-90f3-4a27-9629-0fbdc0a1cc8e" 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="https://3438761929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgZbQzoznBJC_ld633%2Fuploads%2FmBw0Me7BOVINwpolcJOp%2FGoLiveButton.gif?alt=media&#x26;token=fe285770-2d8c-4c81-af15-b133641aa2fb" 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="https://3438761929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgZbQzoznBJC_ld633%2Fuploads%2F62K9rfHateQ75khxKcea%2Fimage.png?alt=media&#x26;token=c5c0729a-06bb-42da-8741-8b41433238f8" 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="https://3438761929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkgZbQzoznBJC_ld633%2Fuploads%2FojUSrwDjJAZFoqf4HHRG%2Fimage.png?alt=media&#x26;token=29bc37e0-53c1-4c04-a872-fa326a917627" 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;
