Hands-on live broadcast service-AMS (Adobe media server)

The company's testing business needs to use live broadcast services. In accordance with the fastest principle, I tried the few products AMS in the market, stepping on the pit all the way, recording the main points, and throwing the bricks to attract the jade.

AMS = Adobe Media Server is a live broadcast service software launched by Adobe. It can be completed with a stable operation, but if you want to use it as an optional product, you should pay attention to the following points

  • I feel that Adobe doesn't pay much attention to this product, it hasn't updated the new version for a long time, and there are few internal and external documents, which is inconvenient to develop and maintain.
  • This is developed from the previous flash server, following some flash technologies. In view of the current status of flash, please mind bypassing it

First send a gift package , which includes win, linux installation files, save the live stream configuration file, push stream software OBS and an Android push stream APK.

Let's talk about the general process under win10, the conventional ones will not be elaborated, and the focus will be on stepping on the pit.

  • After installing AMS, after installation, there will be two Adobe system services, one for streaming and broadcasting, and one for background, remember to always open
  • AMS is actually a virtual site hanging under Apache, it is recommended to use the Apache that comes with AMS
  • Just use live broadcast, it ’s okay now, the test uses the OBS in the spree to push the stream, use a client like vlc to open the server ’s stream address. Of course, you can use the AMS ’s own test tool to connect Under the samples directory
  • Of course, AMS also supports VOD on-demand service. There is also a vod application name. The test page is also officially provided, but it is estimated that everyone uses http on demand.
  • The streaming address of the server, whether it is streaming or broadcasting, is basically in this format. Rtmp: // localhost / live / live is the name of the live application, which is installed and comes in the applications directory. The OBS push stream needs to set a key (equivalent to the room number), and the receiver needs to add this key to the stream address to watch the live broadcast, such as rtmp: // localhost / live / xxx123

OK, if you just want to take a live broadcast service to learn, the above content is enough, let's talk about what to do if you want to save the live stream.

  • By default, in order to protect copyright, the system does not save the live stream in the initial state
  • There is a live compressed package in the spree package, unzip it to cover the file with the same name under applications / live, there is an asc file and xml file written by actionScript, the function is to open the recording live stream
  • There is a description file in live_recorded in the webroot directory. You need to modify the ams.ini file, which means that you can point the folder where the stream is saved to the webroot directory, which is convenient for future use.
  • If there is no problem, push streaming is started at this time, and the live directory file in the live_recorded directory of the server will generate a live stream file. It can be viewed using the vlc player, the suffix name is f4f, the compression format is H264, and it should also support encapsulation into mp4. , Did not try
  • There is an Android push APK in the spree, which can be used, but the push encoding is a bit different. Only the player that comes with AMS can be played. The vlc prompts that it cannot be played without a certain encoder. It should be used for testing. I will have time to launch a more general push client in the future

Finally, pay attention to the live network segment configuration and firewall port settings. I have encountered them in the local area network. Look at your situation and experiment more. There is no way for AMS to have too much information. Here, the pits needed for AMS live broadcast have been said again. Other live streaming options have an open source Red5, you can also try.

hope this helps.

Published 14 original articles · Like8 · Visit 70,000+

Guess you like

Origin blog.csdn.net/wm20000/article/details/97937843