Note:
By default, the EBS volumes attached with the AMS instance are not marked for deletion. However, the data on the primary drive where the operating system and AMS are installed is not accessible. This is because the data cannot be mounted to a different instance. Adobe recommends that you copy the required content from the primary drive to a different EBS volume. You can mount this volume to a different AMS instance. In contrast, the data on the secondary drive can be mounted to any other instance.
Adobe Media Server on Amazon Web Services has a built-in vod application that streams video on demand content to video players running in Flash Player and AIR. These tutorials use video players built with the Open Source Media Framework (OSMF). OSMF simplifies the development of video players for the Flash Platform.
The tutorial uses a video player called Strobe Media Playback. Host Strobe Media Playback on your own web server.
AMS 5.0.7 onwards, Strobe Media Player is bundled with the installer. You can either use the bundled SMP or download as described in this topic. The following video demonstrates how to use the bundled SMP.
From an expert:
-
Log in to AWS Management Console and do one of the following:
If you already have an instance running, in the Navigation pane, click Instances.
If you don’t have an instance running, follow the steps to Launch an instance of Adobe Media Server.
-
(Windows) See Connect to an instance and copy files from a Windows computer to use WinSCP to connect to the instance.
In the left pane of WinSCP, browse to a video file on your local computer. In the right pane, browse to the /mnt/applications/vod/media directory on the remote instance. Drag the file from the left pane to the right pane.
(Linux) Open an SSH client installed on your computer and use the scp command to copy a file to the instance:
scp -i keypair.pem sample.mp4 amsadmin@public-dns:/mnt/applications/vod/media
For example, if the filename of the video is sample.mp4, the command is:
scp -i amsdocs.pem sample.mp4 amsadmin@ec2-184-72-148-15.compute-1.amazonaws.com:/mnt/applications/vod/media
Note: Use the Key Pair file you downloaded when you created the instance.
Note: Adobe Media Server and Apache HTTP Server run as amsuser:amsgroup. You may need to modify the uploaded content to allow access to it.
-
Download Strobe Media Playback.
-
You can also serve Strobe Media Playback and its supporting files from the Apache web server installed with Adobe Media Server on Amazon Web Services. Copy the Strobe Media Playback files to the following directory:
/mnt/webroot
For example, create a folder /mnt/webroot/strobe. Copy the following files from the strobe_root_folder/10.1 folder to the /mnt/webroot/strobe folder:
StrobeMediaPlayback.html, SampleMediaPlayback.swf, the images folder, the scripts folder, and the playlists folder.
Load the following URL into a browser and click play:
http://public-dns/strobe/StrobeMediaPlayback.html
-
When you terminate the instance, the data is deleted. To keep the recorded stream, copy it to a storage volume (S3 or EBS). For information about transferring files, see Managing content.
Adobe Media Server on Amazon Web Services has a built-in live application that streams live content to video players running in Flash Player and AIR. These tutorials use video players built with the Open Source Media Framework (OSMF). OSMF simplifies the development of video players for the Flash Platform.
The tutorial uses a video player called Strobe Media Playback. Host Strobe Media Playback on your own web server.
-
Log in to AWS Management Console and do one of the following:
If you already have an instance running, click Instances in the Navigation pane.
If you don’t have an instance running, follow the steps to Launch an instance of Adobe Media Server.
-
Open Flash Media Live Encoder and enter the following:
For AMS URL, enter:
rtmp://public-dns/live
Substitute the Public DNS value you copied from the AWS Management Console.
For Stream, enter:
livestream
Click Start to publish a stream to the live application on the instance.
-
Download Strobe Media Playback from http://blogs.adobe.com/osmf/ and unzip it.
-
You can also serve Strobe Media Playback and its supporting files from the Apache web server installed with Adobe Media Server on Amazon Web Services. Copy the Strobe Media Playback files to the following directory:
/mnt/webroot
For example, create a folder /mnt/webroot/strobe. Copy the following files from the strobe_root_folder/10.1 folder to the /mnt/webroot/strobe folder:
StrobeMediaPlayback.html, SampleMediaPlayback.swf, the images folder, the scripts folder, and the playlists folder.
Load the following URL into a browser and click play:
http://public-dns/strobe/StrobeMediaPlayback.html
-
Download the DVRCast application from www.adobe.com/go/ams_toolsand unzip it.
Note:
The DVRCast application was developed for Adobe Media Server 5, but it supports Adobe Media Server on Amazon Web Services as well.
-
Copy the DVRCast application to the following location on the instance:
/mnt/applications/dvrcast_origin
Use the instructions at Connect to an instance and copy files from a Windows computer or Connect to an instance and copy files from a Linux/UNIX computer.
-
Open Flash Media Live Encoder and enter the following:
-
Go to the Strobe Media Playback page at http://sourceforge.net/projects/smp.adobe/files/and do the following:
-
When you terminate the instance, the data is deleted. To keep the recorded stream, copy it to a storage volume (EBS or S3). The stream is recorded to /mnt/applications/dvrcast_origin/streams/_definst_/. For information about transferring files, see Managing content.
Note:
This tutorial assumes that you’ve completed the on-demand streaming tutorial and know how to launch an instance and connect to an instance.
Adobe Media Server on Amazon Web Services includes an application called livepkgr that packages published streams for delivery using HTTP Dynamic Streaming.
-
Open Flash Media Live Encoder and enter the following:
In the Encoding Options panel, from the Preset pop-up menu, choose Multi Bitrate - 3 Streams (1500 Kbps) - H.264.
Click the wrench next to Format to open Advanced Encoder Settings. For Keyframe frequency, select 4 seconds.
Note: The Preset changes to Custom when you select this setting.
For Bit Rate, choose 100, 200, and 350.
For AMS URL, enter:
rtmp://public-dns/livepkgr
Use the Public DNS value of the instance from the AWS Management Console.
For Stream, enter:
livestream%i?adbe-live-event=liveevent
Deselect Save to File.
Click Start to publish a stream to the livepkgr application on the instance.
-
Go to the Strobe Media Playback page at http://sourceforge.net/projects/smp.adobe/files/ and do the following:
-
For Video Source, enter:
http://public-dns/live/events/livepkgr/events/_definst_/liveevent.f4m
For example, if the Public DNS of the instance is ec2-184-72-148-15.compute-1.amazonaws.com, the Video Source is:
http://ec2-184-72-148-15.compute-1.amazonaws.com/live/events/livepkgr/events/_definst_/liveevent.f4m
-
Note:
This tutorial assumes that you’ve completed the on-demand streaming tutorial and know how to launch an instance and connect to an instance.
-
Do the following to copy an FLV or F4V/MPEG-4 file from your local computer to the /webroot/vod directory on the Adobe Media Server instance:
Open an SSH client and issue the following command to copy a file to the instance:
scp -i keypair.pem filename.xxx amsadmin@public-dns:/mnt/webroot/vod
For example, the following command copies the file sample.f4v to an instance:
scp -i amsdocs.pem sample.f4v amsadmin@ec2-184-72-148-15.compute-1.amazonaws.com:/mnt/webroot/vod
Note: Use the Key Pair file you downloaded when you created the instance.
-
Run the following command to package the sample.f4v file and copy the output files to the vod application’s media directory:
./f4fpackager --input-file=/mnt/webroot/vod/sample.f4v --output-path=/mnt/webroot/vod
For more information, see Package content on Linux.
-
Go to the Flash Media Player Setup page at http://sourceforge.net/projects/smp.adobe/files/ and do the following:
-
When you terminate the instance, the data is deleted. To keep the recorded stream, copy it to a storage volume (S3 or EBS). For information about transferring files, see Managing content.
Note:
Adobe Media Server on Amazon Web Services supports peer-assisted multicast streaming. It does not support IP multicast or fusion multicast.
Adobe Media Server includes a Multicast Configurator tool and a Multicast Player. To access these tools from a web browser, move them to the webroot directory on the instance.
-
Connect to the instance. Follow the steps in Connect to an instance from a Windows computer or Connect to an instance from a Linux/UNIX computer.
To multicast a live stream, use the Multicast Configurator to configure the streaming event. The Multicast Configurator generates a Publisher Stream Name that you’ll use to publish a stream from Flash Media Live Encoder. The Multicast Configurator also generates an F4M (Flash Manifest) file that you’ll use to play the stream in the Multicast Player.
to generate a stream name and a manifest file for the Multicast Player
-
-
-
Connect to the instance. Follow the steps in Connect to an instance from a Windows computer or Connect to an instance from a Linux/UNIX computer.
-
Open the following URL in a web browser:
http://public-dns/multicast/multicastplayer/multicastplayer.html
The Adobe Flash Player Settings manager displays a Peer Assisted Networking dialog. Click Allow to allow the peer-to-peer connection.
Note:
Multicast streaming requires Flash Player 10.1 and AIR 2.
For more information about the multicast service, see Using the multicast servicein Adobe Media Server Developer’s Guide. In the examples, remember that on Adobe Media Server on Amazon Web Services, the installation directories are different than on other editions of the server. For information about installation directories, see Managing the server. Also, substitute the Public DNS of the Adobe Media Server instance for localhost in the examples.