How to use OBS Studio as an external encoder for Microsoft Teams and Stream Live Events

Hi All,

recently Microsft published a list of video encoders tested for Live streaming with Microsoft Stream (http://bit.ly/LiveEnc).
One of this products is OBS Studio, a free and open source software for video recording and live streamig (https://obsproject.com/).

This is a great news and big improvement on live events direction compared to Skype for Business.
This area (meetings, meetings recording and live events) is definitely the one that I love in Teams (in conjunction with Stream).

Note: before you go on, it’s a good idea to read this article to understand differences in Live events between Teams, Stream and Yammer
Live events across Microsoft 365 in Yammer, Microsoft Teams, and Microsoft Stream

In this article you will find:
– Live Events with Microsoft Teams
– Live Events with Microsoft Stream
– OBS Studio setup
– OBS Studio streaming

Live Events with Microsoft Teams

 

  1. Click on Meetings tab -> Schedule a meetingobs_01
  2. Be careful to click on the arrow to open the meeting type window and choose New live event
    obs_02
  3. Fill meeting informations and click Next
    obs_03.jpg
  4. Now you have to choose Live event settings.
    These are the default settings, Org-wide and Quick start
    obs_04
    But we want to use an external encoder like OBS Studio, so we need to change the production type to External encoder.
    Note: doing that will greyed out the Public option.
    This table show you why: Who can watch live events?
    obs_05
  5. Meeting is ready and published in Stream.
    Click Join to start the pre-live setup
    obs_06.jpg
  6. When you join the live meeting you will see a window like this one.
    Note that the meeting is powered by Stream, that you are Offline and follow the instruction on the left.
    First of all you have to click Start setup to prepare the live meeting
    obs_09
  7. Wait few seconds…
    obs_10
  8. Now the live meeting is ready to accept incoming stream from your external encoder (OBS Studio in this article).
    Note that you are now in Pre-Live status.
    Copy the Server Ingest URL on the right, we’ll use it with OBS Studio later
    obs_11.jpg

 

Live Events with Microsoft Stream

  1. Go to Office 365 Portal and open Stream.
    Click on Create -> Live event
    obs_07
  2. Fill meeting informations and click Save
    obs_08
  3. After the event is saved, you will see the informations to send the stream from an external encoder. In Select encoder choose Configure manually because OBS Studio is not listed (yet).
    Note also that the Live event is saved but not published. Click on Publish now to set the event public to your Company.To go in Pre-Live status click on Start setup.
    obs_12
  4. Few seconds after, the live event is ready
    obs_13
  5. Now you are in Pre-Live status.
    Copy the Server Ingest URL, we’ll use it with OBS Studio later
    obs_14

 

OBS Studio setup

As said before, OBS Studio is a free and open source software for video recording and live streamig, you can download it from the official site https://obsproject.com/download

First of all, there is a Portable Edition (in my utopian world every program should be Portable!), plus the program is free, plus there are many plug-in (https://obsproject.com/forum/resources/),  and last but not least it’s very stable, I’ve used it during many tests without any issue.

It’s important to understand that this article is not a guide to OBS Studio (I’ll write other article on this program in the future), I’ll give you only the basic informations to start sending video streams to Teams and Microsoft Stream.

OBS Studio first impression is a bit “hard”. This is the main windowobs_15

In this article I’ll add few sources to compose the video layout.

Desktop with PowerPoint presentation

  1. In Sources click on the + icon -> Display Captureobs_16
  2. Select Create new then inser the name of the source (for example Display 2)
    obs_17
  3. Choose the correct display where PowerPoint is open
    obs_18
  4. The new Dysplay 2 source is placed in upper-left corner.
    To crop the area hold the Alt key and drag the bounding box.
    The edges will change to green to show it’s being cropped
    obs_19
    Drag the bounding box to resizeobs_20

Video capture device(s)

  1. Now add two different cameras.
    In Sources click on the + icon -> Video Capture Device
    obs_24
  2. Select Create new then inser the name of the source (for example CAM1)obs_21
  3. In Device choose the right cameraobs_22
  4. Repeat this step to add a second camera attached to the same PC.
    In this example I have a Logitech Rally Camera connected to my laptopobs_23
  5. Place CAM1 and CAM2 where you want on the scene
    obs_34.jpg

Scrolling text

  1. To finish the scene composition, we can add some scrolling text, just to show you how powerful is OBS Studio
    In Sources click on the + icon -> Text (GDI+)
    obs_27
  2. Select Create new then inser the name of the source (for example Scrolling Text)obs_28
  3. Insert the text you want than click OK
    obs_29
  4. Select the new source, right-click on it then select Filters
    obs_30
  5. In Effect Filters click on the + icon -> Scroll
    obs_31
  6. Choose the Horizontal Speed you prefer, then click Close
    obs_32
  7. Place and resize the scrolling text object where you want
    The scene should be something like this one.
    obs_33

 

OBS Studio streaming

Now the final step, configure OBS Studio to send the video stream to Microsoft Teams or Microsoft Stream (the process is the same).

  1. In Controls click on Settings
    obs_36
  2. Select Stream, then Custom Streaming Server in Stream Type
    obs_37
  3. In Microsoft Teams copy the Server Ingest URL
    obs_35
    If the Live Event is created in Stream, copy the Server Ingest URL from Stream
    obs_38
  4.  Paste the Server Ingest URL in OBS Studio Settings
    Make SURE you enter something as Stream key, it’s not important what you enter, a random numer is perfect, but is MANDATORY to add something here, then click OKobs_39.jpg
  5. Click Start Streaming in Controls to start video output to Teams or Streams
    obs_40.jpg
  6. After few seconds you will start to see the video stream from OBS Studio in Microsoft Teams
    obs_41
    This is the same in Microsoft Stream (with a different Server Ingest URL)
    obs_42

That’s all. Enjoy streaming!

In future article I’ll explain how to use OBS Studio with Teams, Stream and NewTek NDI free tools (https://www.newtek.com/ndi/tools/)

Best Regards
Luca

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: