Create an Azure Media Services live stream
Warning
Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.
This quickstart will help you create an Azure Media Services live stream by using the Azure portal and Telestream Wirecast. It assumes that you have an Azure subscription and have created a Media Services account.
If you don't have an Azure subscription, create a free account before you begin.
Sign in to the Azure portal
Open your web browser, and go to the Microsoft Azure portal. Enter your credentials to sign in to the portal. The default view is your service dashboard.
In this quickstart, we'll cover:
- Setting up an on-premises encoder with a free trial of Telestream Wirecast.
- Setting up a live stream.
- Setting up live stream outputs.
- Running a default streaming endpoint.
- Using Azure Media Player to view the live stream and on-demand output.
To keep things simple, we'll use an encoding preset for Azure Media Services in Wirecast, pass-through cloud encoding, and RTMP.
Set up an on-premises encoder by using Wirecast
- Download and install Wirecast for your operating system on the Telestream website.
- Start the application and use your favorite email address to register the product. Keep the application open.
- In the email that you receive, verify your email address. Then the application will start the free trial.
- Recommended: Watch the video tutorial in the opening application screen.
Set up an Azure Media Services live event
- Go to the Azure Media Services account within the portal, and then select Live streaming from the Media Services listing.
- Select Add live event to create a new live streaming event.
- Enter a name for your new event, such as TestLiveEvent, in the Live event name box.
- Enter an optional description of the event in the Description box.
- Select the basic Standard pass-through option.
- Leave all the rest of the settings as they are for now.
- Select the I have all the rights to use the content/file, and agree... checkbox after you have read the Online Services Terms and the Microsoft Privacy Statement.
- Select the Review + create button to review the settings.
- Select the Create button to create the live event. You're then returned to the live event listing.
- Select the link to the live event that you created. Notice that your event is stopped.
- Keep this page open in your browser. We'll come back to it later.
Set up a live stream by using Wirecast Studio
- In the Wirecast application, select Create Empty Document from the main menu, and then select Continue.
- Hover over the first layer in the Wirecast layers area. Select the Add icon that appears, and select the video input that you want to stream. The Master Layer 1 dialog box opens.
- Select Video Capture from the menu, and then select the camera that you want to use.
- Hover over the second layer in the Wirecast layers area. Select the Add icon that appears, and select the audio input that you want to stream. The Master Layer 2 dialog box opens.
- Select Audio capture from the menu, and then select the audio input that you want to use.
- From the main menu, select Output settings. The Select an Output Destination dialog box appears.
- Select Azure Media Services from the Destination drop-down list. The output setting for Azure Media Services automatically populates most of the output settings.
In the next procedure, you'll go back to Azure Media Services in your browser to copy the input URL to enter into the output settings:
- On the Azure Media Services page of the portal, select Start to start the live stream event. (Billing starts now.)
- Set the Secure/Not secure toggle to Not secure. This step sets the protocol to RTMP instead of RTMPS.
- In the Input URL box, copy the URL to your clipboard.
- Switch to the Wirecast application and paste the Input URL into the Address box in the output settings.
- Select OK.
Set up outputs
This part will set up your outputs and enable you to save a recording of your live stream.
Note
For you to stream this output, the streaming endpoint must be running. See the later Run the default streaming endpoint section.
- Select the Create outputs link below the Outputs video viewer.
- If you like, edit the name of the output in the Name box to something more user friendly so it's easy to find later.
- Leave all the rest of the boxes alone for now.
- Select Next to add a streaming locator.
- Change the name of the locator to something more user friendly, if you want.
- Leave everything else on this screen alone for now.
- Select Create.
Start the broadcast
In Wirecast, select Output > Start / Stop Broadcasting > Start Azure Media Services: Azure Media Services from the main menu. When the stream has been sent to the live event, the Live window in Wirecast appears in the video player on the live event page in Azure Media Services.
Select the Go button under the preview window to start broadcasting the video and audio that you selected for the Wirecast layers.
Tip
If there's an error, try reloading the player by selecting the Reload player link above the player.
Run the default streaming endpoint
- Select Streaming endpoints in the Media Services listing.
- If the default streaming endpoint status is stopped, select it. This step takes you to the page for that endpoint.
- Select Start.
Play the output broadcast by using Azure Media Player
- Copy the streaming URL under the Output video player.
- In a web browser, open the Azure Media Player demo.
- Paste the streaming URL into the URL box of Azure Media Player.
- Select the Update Player button.
- Select the Play icon on the video to see your live stream.
Stop the broadcast
When you think you've streamed enough content, stop the broadcast.
- In Wirecast, select the Broadcast button. This step stops the broadcast from Wirecast.
- In the portal, select Stop. You then get a warning message that the live stream will stop but the output will now become an on-demand asset.
- Select Stop in the warning message. Azure Media Player now shows an error, because the live stream is no longer available.
Play the on-demand output by using Azure Media Player
The output that you created is now available for on-demand streaming as long as your streaming endpoint is running.
- Go to the Media Services listing and select Assets.
- Find the event output that you created earlier and select the link to the asset. The asset output page opens.
- Copy the streaming URL under the video player for the asset.
- Return to Azure Media Player in the browser and paste the streaming URL into the URL box.
- Select Update Player.
- Select the Play icon on the video to view the on-demand asset.
Clean up resources
Important
Stop the services! After you've completed the steps in this quickstart, be sure to stop the live event and the streaming endpoint, or you'll be billed for the time they remain running. To stop the live event, see the Stop the broadcast procedure, steps 2 and 3.
To stop the streaming endpoint:
- From the Media Services listing, select Streaming endpoints.
- Select the default streaming endpoint that you started earlier. This step opens the endpoint's page.
- Select Stop.
Get help and support
You can contact Media Services with questions or follow our updates by one of the following methods:
- Q & A
- Stack Overflow. Tag questions with
azure-media-services
. - @MSFTAzureMedia or use @AzureSupport to request support.
- Open a support ticket through the Azure portal.