To complete this tutorial, install the following software:
Tutorial: stream live media (RTMP)
Flash Media Live Encoder captures live audio and video, encodes it, and streams it to Adobe Media Server. Flash Media Live Encoder is free so it’s a good idea to download the latest version.
You can use any edition of Adobe Media Server to stream live media, including the free developer edition. For information about installing the server, see Installing the server.
This tutorial uses a video player that requires Flash Player 10.
For more information, see Supported clients, encoders, codecs, and file formats and Pre-built media players.
For AMS URL, enter rtmp://localhost/live.
Use localhost for testing when Flash Media Live Encoder and Adobe Media Server are on the same computer. In a production environment, use the domain name or IP address of the computer hosting Adobe Media Server, for example, rtmp://ams.mycompany.com/live.
If you’re using a Adobe Media Server hosting provider, they can give you the domain name or IP address of the server.
You must use the name live in the AMS URL unless you duplicate and rename the live service. The live service is a pre-built application on Adobe Media Server installed to rootinstall/applications/live. For more information, see Duplicate the live service.
To save a recording of the stream on your hard drive, select Save to File, click Browse, and choose a location. If you chose an H.264 preset, use an .f4v filename extension. If you chose a VP6 preset, use an .flv filename extension.
Note that the server is not recording the file; Flash Media Live Encoder is recording the file. To serve the file on-demand when the live event is over, copy the file to the local disk of the server. For more information, see Stream on-demand media (RTMP).
To play an F4V file recorded by Flash Media Live Encoder without streaming it from the server, use the F4V Flattener tool to flatten the file. You can play FLV files without flattening them.
In the list of videos, click “livestream”.
Enter rtmp://localhost/live/livestream, check the LIVE checkbox, and click PLAY STREAM.
If the media player isn’t on the same computer as Adobe Media Server, replace localhost with the domain name or IP address of the computer hosting Adobe Media Server.
Use this URL to play this stream from any compatible video player, including Flash Media Playback and Strobe Media Playback. For more information about the sample video player and other video players, see Pre-built media players.
URLs for publishing and playing live streams over RTMP
Use the following values to publish a single live stream to Adobe Media Server for streaming over RTMP:
AMS URL: rtmp://ams-ip-or-dns/live
Use the following URL to play a live stream:
Duplicate the live service
Modify server-side code in the live service
You cannot modify server-side code in the live service on Adobe Media Server Standard.