Skip to main content

Streaming to Twitch.Tv

Purpose 

StreamHub can be configured to output streams using the RTMP or RTMPS protocol for streaming to social media platforms such as Twitch.tv.

Prerequisites 

  • StreamHub license
  • IP Output license (AW-OR-OIP)
  • Firewall and network configured to allow RTMP output
  • Twitch account 

Note

A StreamHub Live Encoding license (AW-OR-ENC) may be required depending on the characteristics of the input stream from the transmitter/encoder.

Procedure

  1. Obtain your Twitch.tv nearest ingest point from this link: https://help.twitch.tv/s/twitch-ingest-recommendation?language=en_US

    For example if you are in Tokyo area then naturally you will select one of the Tokyo ingest points: 



  2. Log in to your twitch.tv account.
  3. Go to Creator Dashboard -> Settings -> Stream and set up your Stream Key in the Twitch Dashboard.

    Typically the stream key is generated automatically by Twitch. If for any reason you want a new one, click the Reset button. Copy this stream key and keep it in the clipboard for use later in this procedure.



  4. In a separate browser tab, access your StreamHub server.
  5. To create a new RTMP IP Output in StreamHub, click on the (+) icon in the IP Output section and click the next (+) button under IP Output Profiles.



  6. Click on the RTMP protocol button to create an RTMP output profile.



  7. Configure the RTMP profile using the Stream URL and Stream Key from Twitch (refer to step 3 above).



  8. Save the RTMP IP Output profile.
  9. Select the RTMP IP Output profile by clicking on the associated radio button. An IP Output with the selected RTMP profile is enabled.  



  10. Configure a StreamHub Encoder.

    Important

    As per Twitch specifications (see https://stream.twitch.tv/encoding/ ) there are certain requirements for the video / audio codec as well as for resolution and frame rate. If the source transmitter is sending in a non-supported configuration such as HEVC then a “Codec not supported” error will appear in the StreamHub RTMP output. In such cases, it is necessary to transcode the stream first using the StreamHub encoder function to make it compatible with Twitch specifications.

    Tip

    Transcoding in StreamHub requires an encoder license and adequate resources for live encoding in a supported format.

    Note

    If the transmitter is already sending in a supported video/audio format, codec, resolution, and frame rate, this step can be skipped.


    1. Click on the (+) Icon in the StreamHub Encoder section create a new Encoder Profile by pressing the next (+) button in the Encoder Profiles selection. 
    2. Provide a name and select the Web Streaming encoder preset. The example at left shows the recommended Twitch streaming parameters for 720p30 (please consult the Twitch encoding support page for other recommended resolutions and bitrates): 

      1. Video: H.264, bitrate = 3000 Kbps
      2. Audio: AAC LC, bitrate = 128 Kbps  

    3. Click Save once satisfied with the settings. 



  11. Select the saved Encoder Profile by clicking the associated radio button. An Encoder with the selected Encoder profile is enabled. 



  12. Link the workflow from Input > Encoder > Output. This allows the input stream to be transcoded first to the Twitch compatible format before outputting the stream to Twitch. There are two methods:

    Method A: Drag and drop the desired input icon onto the Encoder, and then drag and drop the Encoder onto the Output icon.



    Method B: From the Encoder drop down, select the input to be transcoded, and then select the Encoder in the output drop down to output to Twitch. 



    The input is now assigned to the Encoder for transcoding to a Twitch.tv compatible format, and the transcoded stream is set to output to the Twitch RTMP ingest point configured under RTMP IP Output.

  13. If the stream is not already live, click the Live button on the input (or from the transmitter unit) to start live streaming.



    The live stream should appear in the Twitch Stream Manager:



 
 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.