(FFmpeg) How to obtain a YouTube Streaming key?

Before working on the FFmpeg For Beginners Book, the experience I had with streaming with FFmpeg was zero but I reached out to the FFmpeg community and everyone was saying I needed to cover this topic. Fortunately for me, streaming is actually way easier than I was expecting.

First go to https://www.youtube.com and click the create a video button and select the ‘Go Live’ option from the drop down, as seen in figure 109.0:

Figure 109.0: Go Live!

Select ‘New Stream’ and fill out the desired title, description, etc. Next, select ‘Create Stream’. As seen in figure 109.1:

Figure 109.1: Setting up a new stream

Tip: Make sure the ‘webcam’ option isn’t selected but ‘stream’ is. 

Tip: Actually… if you’d rather stream the webcam directly from YouTube, it’s probably easier than using FFmpeg.

YouTube will now wait for the stream data to hit the YouTube server. Before data can be sent the URL and Key must be set to send data over rtmp. In short, the Real-Time Messaging Protocol is a stream protocol and the only one YouTube supports.

The current screen has these two variables available at the bottom left corner, as seen in figure 109.2:

Figure 109.2: stream key and stream URL
Figure 109.2: stream key and stream URL

Keep these two variables around as they’ll be used in the following questions for streaming to YouTube.

To ensure the stream is working, keep this window open to see a preview but to go live, the ‘Go Live’ button must be clicked. Once live, the live chat will be available and you’re ready to communicate with your fan base.

Now you are ready to stream to YouTube.

Part 2: (FFMPEG) HOW TO STREAM A FILE TO YOUTUBE?

Love FFmpeg? Grab a copy of FFmpeg For Beginners on Kindle or Paperback to learn over 120 ways to master FFmpeg!

buy now on amazon

Trackbacks & Pingbacks 1

  1. From (FFmpeg) How to Stream a File to YouTube? - John Riselvato on 07 Apr 2020 at 1:22 pm

    […] Read “(FFMPEG) HOW TO OBTAIN A YOUTUBE STREAMING KEY?” for details about obtaining a streaming […]