YouTube Live Event

How to live stream to a YouTube Live event

YouTube Live Events allows live streaming of video to your audience via YouTube, similar to other commercial Content Distribution Networks (CDNs). The data sent to YouTube Live starts as an encoded video stream and is transcoded by YouTube into the format(s) and resolutions it needs. Pearl and Pearl-2 work with YouTube Live Events by providing the encoded video stream. Using a feature called RTMP (real-time messaging protocol), your live broadcast, lecture or event is pushed from your Pearl system to YouTube.

To stream a video to YouTube you need:

  • A YouTube account in good standing
  • Epiphan Pearl or Pearl-2
  • Pearl-2 with access to your YouTube network

Before getting started with the YouTube Live Event, configure your encoding settings to the values recommended by YouTube:

  1. Login to Pearl-2 as admin.
  2. Go to the Encoding page for your channel.
  3. Verify the following encoding settings (the ones below are current at the time we wrote this article). All other options can be set any way you wish:
    • The codec is set to H.264
    • The key frame interval is 1/2 second, 1 second, or 2 seconds
    • The frame rate is between 5 and 30 (the live stream will fail if this value is too low)
    • The stream has audio enabled (the live stream will fail otherwise)
    • The audio codec is MP3 at 44kHz or AAC
  4. If any changes are made to the stream setup, click Apply.
  5. You may need to return to this page to set your bitrate after you create your YouTube live event in the following steps.

You may also want to take a moment now to verify that your channel’s layouts are to your liking. Take a look at our user guide for more information on layouts.

Open a new browser window or tab, so that you can switch easily between Pearl’s admin interface and the YouTube Live control panel.

  1. Log into your YouTube account.
  2. Select My Channel.
  3. Select Video Manager. The YouTube Video Manager opens.
  4. Select Live Streaming from the video manager. Go to Events, just below the Stream now page.The Live Events page opens.
  5. Click New live event. This creates an event, and opens the Live Event Info and Settings configuration page.
    Youtube channel live event

     

  6. Add the event information including title, start time, description, tags, etc. If needed, read the terms and conditions and click the check box if you agree to them.
    YouTube livestream setup
  7. If desired, select the Public drop down and pick Private (this is a good idea when testing).
  8. Select Custom under Type.
    YouTube livestream setup
  9. Optionally, select Advanced Settings and enter more information about your live event such as video category, types of promotion, whether or not comments are permitted and if the recording should be made private after the event completes.
    YouTube livestream setup
  10. Click Create event; YouTube saves the changes.
    YouTube livestream setup

Next, you’ll pick an Ingestion Setting in YouTube. This tells YouTube what frame size and bitrate you’d like to stream to their service. Pearl-2 (or Pearl) is called the encoder in this streaming transaction.

  1. After creating the event, the Ingestion Settings page opens.
  2. If wanted, you can upload a thumbnail for your event.
  3. Select a Basic ingestion bitrate. YouTube provides suggestions based on the frame size of your content. If you know your network bandwidth is limited, select a smaller bitrate, otherwise, pick the value that most closely matches the frame size of your content.
    YouTube livestream setup
  4. After selecting a bitrate, the page expands providing the details needed to configure Pearl-2 for RTMP push streaming.

Now is a good time to return to your channel’s encoding settings page to verify that Pearl-2 is properly configured with the correct frame size and bitrate.

The next step is to transfer the RTMP configuration data to Pearl-2 and ensure the stream is set up correctly.

  1. YouTube displays encoder settings.
    Encoder settings provided by YouTube. Copy the stream name and primary URL into the Epiphan admin interface.

     

  2. Highlight and copy the data in the YouTube Stream name field.
  3. Return to your Pearl-2 Admin interface.
  4. If you haven’t already, create a new streaming destination for your channel. From the Streaming configuration page, click New Stream, and select RTMP push from the drop down list.
  5. Paste your Stream name from YouTube into the Stream name field on Pearl-2.
  6. Return to YouTube’s encoder settings and copy the YouTube Primary Server URL field.
  7. Paste this into the URL field on Pearl-2. (Leave the username and password fields blank.)
    Screen capture showing the Pearl-2 streaming configuration for Auto A. Stream name is pasted from YouTube to Stream Name on Pearl-2 and the main YouTube Live url is pasted in the streaming destination URL.
  8. Click Apply.

Reminder: If using Pearl (not Pearl-2), it must be running firmware 3.15.1 or higher. Use the Firmware Upgrade feature to install the latest firmware.

Everything is configured! You’re almost there.

When your event is about to begin, start streaming from Pearl-2 to YouTube (this will only be visible to you until you make it live in YouTube).

  1. Use the Start and Stop buttons (or the Stop All and Start All buttons) to begin and end the stream when you like.
    stream-to-servers: multipublishing to youtube live push

     

  2. Alternatively, you can use touchscreen controls to start the stream.  Touch the grey circle in the top left-hand corner of the touchscreen.  It turns blue and times how long you are streaming.  Press the blue circle again to stop the stream. Pearl-2 also gives you the option to use the One-Touch control to simultaneously start any other streams you might have.
    touchscreen_streaming-button
    touchscreen_streaming

Time to make sure that YouTube is receiving your live stream and that everything looks how you expect.

  1. From your YouTube Live Event page, go to the Live Control Room. This is the best place to preview your video to see how it will appear when you go live.
    YouTube livestream setup
  2. The video preview is not available immediately after the stream is started. Depending on network bandwidth, it might take one to five minutes after starting the stream on Pearl-2 until YouTube indicates that the stream signal is being received. Refresh the page at intervals to check.
    YouTube livestream setup

  3. When YouTube says the signal is Good, you know Pearl-2 is sending your video stream to YouTube. Nearly there!
  4. Click Preview to prepare your stream for preview on the Live Control Room page; YouTube processes the stream for a moment.
  5. Press play in the preview player to begin to play the event preview.
    YouTube livestream setup

  6. Verify the STREAM STATUS section for any problems or warnings. In the example above, Pearl-2 is set to stream a bitrate of 700 kbits/sec, but when selecting the Ingestion Settings, a higher bitrate was selected. The system warns us of this discrepancy. It’s not possible to change the Ingestion Settings, so return to the Epiphan admin interface and make any recommended changes (such as increasing the bitrate).

If the live preview doesn’t appear, or the signal is not Good, return to Pearl-2’s admin interface and verify all the settings again. In particular, make sure an audio signal is enabled for your stream. YouTube won’t process the video content unless an audio stream is present.

  1. When you are ready to begin sharing your live presentation, click Start Streaming. You’re streaming live!
    YouTube livestream setup

  2. When your live event is complete, click Stop Streaming in the YouTube live control panel; the event will be closed.
  3. Stop streaming from Pearl-2 using the Admin panel or the touchscreen, as described in Step 5.