Menu
Amazon CloudFront
Developer Guide (API Version 2016-09-07)

Frequently Asked Questions

How can I use Secure Shell (SSH) to connect to my Amazon EC2 instance that is running Adobe Media Server 5.0?

Note

By default, the SSH port for the Amazon EC2 instance (port 22) is disabled for security reasons. The following procedure explains how to enable the SSH port and how to use SSH to connect to your Amazon EC2 instance.

To enable access to port 22 on your Amazon EC2 instance that is running Adobe Media Server 5.0

  1. Get the name of the Amazon EC2 security group that is associated with your Amazon EC2 instance:

    1. Sign in to the AWS Management Console and open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.

    2. In the Region list, select the region in which you created your Amazon EC2 instance.

    3. Click the row for your AWS CloudFormation stack.

    4. In the bottom pane, click the Resources tab.

    5. In the left column of the Stack Resources table, find the row for which the value is AMSOriginServerSecurityGroup.

    6. For that row, write down the value of the Physical ID column.

  2. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  3. In the navigation pane, click Security Groups.

  4. On the Security Groups page, select the row in which the Name column matches the physical ID that you got in Step 1f.

  5. In the bottom pane, click the Inbound tab.

  6. For Create a new rule, select SSH.

  7. Click Add Rule.

  8. Click Apply Rule Changes.

To use SSH to connect to your Amazon EC2 instance that is running Adobe Media Server 5.0

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, click Instances.

  3. Right-click the correct instance, and click Connect to view instructions on how to use SSH to connect to your Amazon EC2 instance.

How do I update crossdomain.xml for a Flash-based stream hosted on my own domain?

You can change permissions in crossdomain.xml either before or after you create the AWS CloudFormation stack:

  • If you have not created your AWS CloudFormation stack, download the AWS CloudFormation template for Live Streaming using Amazon CloudFront and Adobe Media Server 5.0 at https://s3.amazonaws.com/cloudfront-live/live-http-streaming-ams-5-0-1-using-cloudfront.txt. In the template, edit the UserData section, which contains the crossdomain.xml settings, and save the updated template on your local computer. Then create your AWS CloudFormation stack using the updated template.

  • If you have already created your AWS CloudFormation stack, log in to Adobe Media Server running on your Amazon EC2 instance, and change permissions in the cross-domain policy file, /mnt/webroot/crossdomain.xml.

For more information about editing the crossdomain.xml file, see Adobe Cross Domain Policy File Specification.

What is the price for live HTTP streaming using CloudFront and Adobe Media Server 5.0?

In addition to the $5.00 monthly subscription fee for Adobe Media Server on Amazon EC2, you pay only for the AWS resources you consume:

There is no charge for using AWS CloudFormation.

How can I create a CNAME alias for my Amazon EC2 instance or for my CloudFront distribution?

Your Amazon EC2 instance running Adobe Media Server 5.0 comes with an internal and an external DNS name. Amazon EC2 does not provide access to modify these DNS settings. If you want to map an existing domain name to your Amazon EC2 instance running Adobe Media Server, use a DNS service provider such as Amazon Route 53. When using your own domain name, we recommend that you map to the instance's external DNS name using a CNAME, not by using an A record that points to the instance's IP address.

To map your own domain name to your CloudFront distribution, see Using Alternate Domain Names (CNAMEs).

How can I connect to the Adobe Media Server Administration Console?

To connect to the Adobe Media Server Administration Console

  1. Sign in to the AWS Management Console and open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.

  2. Select the stack for live streaming.

  3. In the bottom pane, click the Outputs tab.

  4. Copy the value of the AMSAdminConsoleServerAddress key.

  5. Click the value of the AMSServerAdminConsole key, for example, http://ec2-00-11-22-33.us-west-1.compute.amazonaws.com/ams_adminConsole.htm.

  6. On the login page for the Adobe Media Server Administration Console, in Server Address, paste the AMSAdminConsoleServerAddress key that you copied in Step 4.

  7. In the Username and Password fields, enter the values that you specified in Creating an AWS CloudFormation Stack for Live Streaming.

  8. Click Login.

For information about using the Adobe Media Server 5.0 Administration Console, see the Adobe Media Server documentation.

Note

Adobe recommends that you block all external access to port 1111 so that access to the Administration Console is restricted only to clients that are within your firewall. As an alternative, you can restrict access to the server by using domain-based restrictions. For more information, see Limit access to Adobe Media Administration Server in the Adobe documentation.

To disable or restrict access to port 1111 on your Adobe Media Server

  1. Get the name of the Amazon EC2 security group that is associated with your Amazon EC2 instance:

    1. Sign in to the AWS Management Console and open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.

    2. For Region, click the name of the region in which you created your Amazon EC2 instance.

    3. Select the row for your AWS CloudFormation stack.

    4. In the bottom pane, click the Resources tab.

    5. In the Stack Resources table, in the AMSOriginServerSecurityGroup row, write down the value of the Physical ID column.

  2. Display the Amazon EC2 console.

  3. In the navigation pane, click Security Groups.

  4. In the Security Groups pane, select the security group that AWS CloudFormation created for your Amazon EC2 instance. The name is the value that you wrote down in Step 1e.

  5. In the bottom pane, click the Inbound tab.

  6. To completely disable access to the Adobe Media Server Administration console:

    1. In the TCP Port (Service) column, find 1111.

    2. In the Action column for that row, click Delete.

    3. Click Apply Rule Changes.

  7. To restrict access to selected IP addresses:

    1. In the TCP Port (Service) column, find 1111, and click Delete.

    2. For Create a new rule, accept the default value, Custom TCP rule.

    3. For Port range, enter 1111.

    4. For Source, enter an IP address or range, or enter the name of another security group. For more information, click Help.

    5. Click Add Rule.

    6. To create additional rules, repeat Steps b through e.

    7. Click Apply Rule Changes.

Can I stream my live event both to Apple devices and to Flash Player–compatible devices?

Yes, Adobe Media Server 5.0 enables the delivery of live streams to both Flash-based and iOS devices at the same time. You can stream to the Safari browser using an HTML5 player or an Objective C ("native") application. You can also use Adobe AIR for iOS to develop a rich video experience on iOS.

Does Adobe Media Server 5.0 support HTML5?

Yes. Adobe Media Server can deliver content to HTML5 on Apple iOS devices using the HLS streaming format. For other browsers supporting HTML5, you can use Adobe Media Server to deliver progressively.

Does Adobe Media Server have logging?

Yes. W3C-compliant ASCII logs, a real-time usage monitor, and a complete API for server and stream events help to ensure that you have all the tools you need to track and generate reports on your audience's content use. For more information about monitoring and managing log files in Adobe Media Server 5.0, see Monitoring and Managing Log Files in the Adobe documentation.

How can I enable authentication on Adobe Media Server?

You can restrict access to RTMP port 1935 (for both TCP and UDP) in the security group created by AWS CloudFormation for your Adobe Media Server Amazon EC2 instance. Just create new TCP and UDP rules for port 1935 and then delete the existing TCP and UDP rules for port 1935, which allow access to all IP addresses.

For a quick overview of how to add a rule to a security group, see How can I connect to the Adobe Media Server Administration Console?. For more information about Amazon EC2 security groups, see Amazon EC2 Security Groups in the Amazon EC2 User Guide for Linux Instances.

What are the default cache-control settings on HDS- and HLS-related files?

The default cache control headers on HDS- and HLS-related files are set to the following values:

File Type

Cache-Control Setting (Seconds)

.bootstrap

2

HDS Fragment

60

.f4m

2

.m3u8

2

.ts

60

The CloudFront edge cache servers honor these cache control headers. You can change the default settings by changing the values of the HttpStreamingF4MMaxAge, HttpStreamingBootstrapMaxAge, and HttpStreamingFragMaxAge parameters on the server. For more information, see HTTP streaming configuration file reference in the Adobe documentation.

What is the difference between HLS and HDS?

HLS is a file container format optimized for Apple devices. The container supports H.264/AAC-encoded video and audio, and is based on MPEG-2 transport stream (TS). All video delivered to iOS (including AIR for IOS) must use this format.

HDS is a file container format optimized for applications that run in Flash Player. The container also supports H.264/AAC-encoded video and audio and is based on MPEG-4 TS. HDS is not supported on AIR for iOS.

How do I troubleshoot my Amazon EC2 instance if streaming doesn't start?

If you performed the procedure To verify that Adobe Media Server is running and streaming still hasn't started, perform the following procedure to confirm that the Amazon EC2 instance is functioning correctly.

To troubleshoot your Amazon EC2 instance running Adobe Media Server 5.0

  1. In the AWS CloudFormation console, in the top pane, select the stack.

  2. In the bottom pane, click the Resources tab.

  3. For the AMSOriginServer row, write down the value of the Physical ID column.

  4. Go to the Amazon EC2 console.

  5. In the Region list, select the region in which you created the AWS CloudFormation stack.

  6. In the navigation pane, click Instances.

  7. In the Instance column, find the value that you wrote down in Step c.

  8. Select the corresponding row.

  9. In the bottom pane, review the information on the Status Checks tab, and take the recommended actions.

  10. Return to the procedure To verify that Adobe Media Server is running, and repeat Steps 2 through 5.

Where can I find the documentation for live streaming using Adobe Flash Media Server 4.5?

For the documentation for live streaming using Adobe Flash Media Server 4.5, see "Live Streaming Using CloudFront and Adobe Flash Media Server 4.5" in the "CloudFront Tutorials" chapter of the Amazon CloudFront Developer Guide for CloudFront API version 2012-07-01.