1. What is Milesight RTMP?

Real-Time Messaging Protocol (RTMP) was initially a proprietary protocol for streaming audio, video and data over the Internet, between a Flash player and a server. RTMP is a TCP-based protocol which maintains persistent connections and allows low-latency communication. It can realize the function of live broadcast so that customers can login to the camera wherever there is a network.

2. How to Use RTMP for Live Broadcast?

In this test case, we use YouTube to play the role of the testing platform for live view.

2.1 Preconditions

1) IP Camera that can be networked to YouTube.

You can just prepare a computer that can be networked to YouTube, and then directly connect it to the IP Camera which is in the same network segment.

2) An activated account of YouTube with which you can do live broadcast in this platform.

3) Ensure that your devices are with the correct firmware versions (Camera firmware: V4X.7.0.73.r6 or above).

4) IP Camera needs to support audio function if you want to play audio in YouTube.

2.2 Configuration procedures

2.2.1 Configuration procedures

Step 1: Open YouTube website.

RTMP

Step 2: Login the YouTube account.

Step 3: Get access to the YouTube Studio (If it is the first time to use, you should create studio firstly.).

RTMP

Step 4: Get access to Live broadcast and get the server address.

① Click the “CREATE” red box marked, and choose “Start live”.

RTMP

② Fill in the red box and click “CREATE LIVE”.

RTMP

The following useful message with the live URL and Stream key will pop up, you can just click “copy” for the live URL(rtmp://a.rtmp.youtube.com/live2) and the live code(7emj-7vrb-scck-a9fx) to form a whole RTMP server address, which is as below in this example: rtmp://a.rtmp.youtube.com/live2/7emj-7vrb-scck-a9fx

RTMP

You can also see it here:

RTMP

Note:

1. If you use a newly created account to live broadcast, you need to wait for 24hrs to activate the account for using live function.

2. For RTMP, since G.711 is not available for YouTube, so you can only play video from Milesight IP camera with H.264 video coding and AAC audio coding on YouTube.

RTMP

3.  If you use Facebook to live broadcast, you need to enable “Use a Persistent Stream Key.

2.2.2 Make configuration for Milesight IP Camera

Step 1: Set the video code as H.264, and audio encoding as AAC, considering the limitation of RTMP.

Step 2: Access to Network->RTMP, and make configuration.

① Enable RTMP.

② Choose the Stream Type.

③    Fill in the server address confirmed before.

④ rtmp://a.rtmp.youtube.com/live2/7emj-7vrb-scck-a9fx.

⑤   Save the configuration, and you will see the live view in YouTube.

Note:

Server Address in IP Camera RTMP interface needs to be filled with the format: rtmp://< Server URL >/< Stream key >, remember it needs ’/’to connect between < Server URL > and < Stream key >.

2.2.3 Watch the Live Broadcast of Milesight IP camera

RTMP

2.2.4 How to use a fixed url to see the Live Broadcast on YouTube?

You can always use the url:

https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID” on browser to see the Live Broadcast. Even if the live streaming is interrupted temporarily, you can still use this url to see the live broadcast after the streaming recover.

 

Note:

1. You can check the CHANNEL_ID in the advanced settings of your Youtube.

2.  Please edit the visibility to “Public“, and disable the “Unlist live replay once stream ends”.

2.3 How to use RTMP on Wowza Streaming Cloud?

Wowza is a live video streaming platform with industry-leading technology delivering broadcast-quality live streaming to any sized audience on any device.  

(https://www.wowza.com/)

Step 1: Log in your Wowza account and Add Live Stream.

Step 2:Set stream name and your location.


Step 3: Choose RTMP as video source, and disable authentication.

Step 4: Finish the settings of Playback, Hosted Page and Review. (You can just keep default settings.)

Step 5:Then the Live Stream is created. You can get server address and stream name(key).

Step 6:Fill in server address on camera’s RTMP settings.

For example, the Primary Server is 

“rtmp://45baad.entrypoint.cloud.wowza.com/app-9w7Wm5d3”, Stream Name(key) is 

“b78db5cd”, then you should fill in the Server Address like 

rtmp://45baad.entrypoint.cloud.wowza.com/app-9w7Wm5d3/b78db5cd” on camera.

 

Step 7:Modify camera’s codec to H.264.

Step 8:Then you can start the Live Stream on Wowza.

 

 

——————END——————