Skip to main content
Participant
October 11, 2011
Question

How to upload a file from FMS to Amazon S3 after the record?

  • October 11, 2011
  • 1 reply
  • 2270 views

How can I upload a recorded video file from Adobe FMS running on Amazon EC2 to Amazon S3 bucket after the file is created from RTMP stream?

I can't mount an S3 bucket with a write access, since "It is not technically possible to record files to the S3 bucket".

http://help.adobe.com/en_US/flashmediaserver/amazonec2/WS6fc2df2b6d2ce2431afba23c12c3967d3ca-7ff1.html#WS0432746db30523c21e63e3d12c9b337c0c-8000

I can't use Amazon CloudFront for streaming, since it does not support custom origins with Streaming distributions.

Currently I have one FMS running on a Amazon EC2 (Adobe AMI) instance with EBS to store the content and the application is on another Amazon EC2 instance.

The whole idea is to use Amazon Elastic Load Balancing and CloudFront. FMS would be used only for creating the user contributed video content from RTMP stream.

I'm hoping there are others who have solved this issue.

This topic has been closed for replies.

1 reply

Adobe Employee
October 12, 2011

There should tools from Amazon to do such functionality - probably REST Api which they provide. I have not used any such tools or done what you plan to do - but i am pretty sure its done in past. I did some quick search and got this link : http://stackoverflow.com/questions/4038683/transfer-files-between-amazon-ec2-and-s3 (there should be other links too which migth be helpful)

janistoAuthor
Participant
October 12, 2011

Hi SE_0208!

Amazon S3 offers SOAP and REST APIs and there are many tools to upload files, but your example doesn't help since I have no idea how or when to execute that command line s3 client right after the file is created.

I have tried different solutions, but I still haven't found a proper way of solving my problem. I was really hoping to get a real world example/idea how to solve this issue, since otherwise I have to move to a different platform.

If someone has solved this issue, it is definitely not documented or posted to the internet.

Others have had the same issue in the past, but still no proper answer:

http://forums.adobe.com/message/3299702

http://stackoverflow.com/questions/7087158/using-http-from-fms-server-4-to-upload-video

Adobe Employee
October 13, 2011

If S3 provides SOAP api - is not it possible to invoke them using Webservices(http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e32SSASLR.html) or SOAPCall(http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f45SSASLR.html) functionality provided by FMS?

I mean you can watch out for stop of record and then do needed calls using above SSAS API's (i am not sure whether above API's are sufficient - but probably you can have a look at it)