Configuring Wowza Streaming Engine with ApsaraVideo Live

By Valerie YJ Lee, Solutions Architect

For customers who are interested in deploying a live streaming service with content acceleration, you can consider using ApsaraVideo Live. This solution uses Content Delivery Network (CDN) for content acceleration, and a third-party streaming engine on an Alibaba Cloud environment, and the ApsaraVideo Live product. With ApsaraVideo Live, the streaming service can be made faster and more reliable for customers located in both Mainland China and international users with Alibaba Cloud’s comprehensive CDN node coverage.

In this article, I will describe how to setup Wowza streaming engine with ApsaraVideo Live to accelerate live streaming service on Alibaba Cloud.

Overview of Solution

Image for post
Image for post
  1. Set up OBS for pushing video file to Wowza engine (IP:123.123.123.13)

Prerequisites

  1. A Wowza engine and license

Live Streaming Environment Preparation

OBS (Open Broadcaster Software)

Configuration Menu

In the OBS menu, click the Settings button of bottom right side, and then click the “Stream” menu. Type the information like below. [rtmp://Wowza engine IP/Application/StreamName]

Image for post
Image for post

Streaming Engine Configuration

Wowza Engine

1. Check the Process Status

Check the Wowza processes are alive with “ps -ef” linux operation.

Image for post
Image for post

2. Access the Wowza Streaming Engine Admin Page

In order to setup Wowza streaming engine, connect to the web management console with [http://ubuntu server IP:8088] port. After clicking “Next, you will see the login page. Since there is no information of the accounts, a new account creation is required.

Image for post
Image for post

3. User Creation for Wowza Engine Management

Under Wowza engine folder [/usr/local/WowzaStreamingEngine], you can find the “config” directory. In this directory, there is a Wowza management id/password file called “admin.password”.

Image for post
Image for post

After that, just type [ID] [Password] [group] like below, and save it.

Image for post
Image for post

4. Login the Administration Page

Now, you can log in to the Wowza Streaming engine management console with the new ID and password.

Image for post
Image for post

5. Update the License Key

When you receive the Wowza engine license key via email, enter the key on the “Server Setup” page.

Image for post
Image for post

It should take a few seconds to restart the Wowza server.

Image for post
Image for post

6. Update “Source Authentication”

In order to enable the RTMP streaming on the Wowza engine, it is necessary to update “Source Authentication” with the new user which you have created at the beginning.

Image for post
Image for post

7. Add an Application

In the Live applications list, the app named “live” is the default one. If you want to setup a new application for integrating with ApsaraVideo Live, click “Add Application” and select “Live” type.

Image for post
Image for post

Wowza with ApsaraVideo Live Configuration

ApsaraVideo Live

1. Add Domain

On the ApsaraVideo Live console, navigate to “Domains” and add the streaming domain on the by clicking the “Add Domain” button.

Image for post
Image for post

2. Domain Settings

Check the domain settings below. (CNAME will be added later.)

Image for post
Image for post

Navigate to “Encoding Settings” from “Template Config.

Create the “Application Name”, and select video files’ quality (multiple choice)

Image for post
Image for post

Navigate to “Stream Ingest Information” under Basic Settings. Review the basic settings on Domain List. The “Ingest URL” will be used on the next step for the Wowza engine configuration.

Image for post
Image for post

Wowza Engine

1. Wowza “Source Security”

For sending streaming files to ApsaraVideo Live, select the “Source Security” from the left menu on the Wowza management console. Then, enable “RTMP Sources” as “Open”. If you want more powerful authentication options, you may select additional options as well.

Image for post
Image for post

2. Stream Targets

This is a very important step to ensure the stream works correctly. In order to deliver accelerated streaming service with Alibaba Cloud ApsaraVideo Live, select “Stream Targets” on the left panel. Then, Click the “Generic RTMP” icon and “Next” button.

Image for post
Image for post

Type the information “Source Stream Name” as you have configured of OBS. All the other configuration is related with ApsaraVideo Live.

Image for post
Image for post

Domain Setting on DNS

Add CNAME Record on DNS

Change the service domain as CNAME to ApsaraVideo Live service domain.

Image for post
Image for post

Start Live Streaming

OBS

Click the “Start Streaming” Button

OBS will show “LIVE” status on the bottom line

Image for post
Image for post

Wowza Engine

Check the Incoming Streams on the Wowza Engine

On the management page, go to Applications > application name. When you click the “Incoming Streams”, you can see the active status below.

Image for post
Image for post

ApsaraVideo Live

Streaming Media on Alibaba Cloud ApsaraVideo Live

If the incoming streams to Wowza engine is active, the traffic delivery to needs to be delivered to ApsaraVideo Live side for media traffic acceleration. After clicking “Stream Targets”, you can see the active status on the right side.

If there is any Error status, your “Stream Targets” configuration has some problem to connect ApsaraVideo Live environment. Please review the configuration.

Image for post
Image for post

Video Player

Open the Live Streaming URL on the Player

Ta-da! Now you can see the live video file via the live streaming URL!

Image for post
Image for post

Troubleshooting Issues

When you get in trouble in any step, you can find some clues from server log file. On the Wowza management console, these “Server > Logs” tabs show real-time logs on the Wowza engine side. Good luck!

Further Reading

For more details about Wowza engine on Alibaba Cloud, this URL helps you:
https://www.wowza.com/docs/wowza-streaming-engine-for-linux-on-alibaba?spm=a2c41.12740828.0.0.25d61400JRJctS

Reference:https://community.alibabacloud.com/blog/configuring-wowza-streaming-engine-with-apsaravideo-live_594641?spm=a2c41.12740828.0.0

Written by

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store