aws-solutions / media-insights-on-aws

A serverless framework to accelerate the development of applications that discover next-generation insights in your video, audio, text, and image resources by utilizing AWS Machine Learning and Media services.
Apache License 2.0
248 stars 88 forks source link

Cost estimations #23

Closed aburkleaux-amazon closed 4 years ago

aburkleaux-amazon commented 5 years ago

Make a statement like this front and center in the MIE README: "Some of the services MIE uses are not free tier. When you run MIE, you will pay. Processing lengthy movies can get expensive."

Explain methodology for estimating cost of MIE. Give some example scenarios with actual costs.

Costs should be by media type, size and duration since most ML and Media services cost models are based on these dimensions.

ianwow commented 5 years ago

NOTE: Some of the services used by MIE are not in the AWS free tier. Assume you will pay money when you run videos through MIE. It can get expensive to process videos longer than a few minutes.

Solution Pricing

Most AWS accounts include a free tier for the services used in MIE. However, if your usage exceeds the free tier allotments then you will be responsible for the cost of the AWS services used while running the MIE solution.

The cost depends on the number of and length of uploaded videos, and data transfer fees, which will vary depending on the number of users and frequency of viewing. Cost also depends on video content. For example, videos with lots of speech will incur higher costs for text operations. You will also be charged for stored media files stored in S3.

As of the date of publication, the costs for running this solution in the US East (N. Virginia) region are estimated below. Prices for services are tiered to distinguish between heavy and lite users. The estimates below are based on prices for lite users.

Video Operators

See https://aws.amazon.com/rekognition/pricing/.

Object Detection ($0.10 per min) Celebrity Recognition ($0.10 per min) Content Moderation ($0.10 per min) Face Detection ($0.10 per min) Face Search ($0.10 per min)

Audio Operators

See https://aws.amazon.com/transcribe/pricing/.

Transcribe ($.024 per min)

Text Operators

Comprehend Key Phrases ($0.000001 per character) Comprehend Entities ($0.000001 per character) Polly ($0.000004 per character) Translate ($0.000015 per character)

Data Plane and Control Plane

Elasticsearch](r4.large.elasticsearch) $0.196 per Hour S3 $0.023 per GB

The free-tier for Lambda, API Gateway, DynamoDB, and DynamoDB Streams should cover most common MIE use-cases.

Pricing Example:

The cost to analyzing 4 hours of video with 64 pages (~165k characters) of speech through every operator is $128.

This scenario is loosely based on "A Christmas Carol" by Charles Dickens, which includes ~165k characters and ~3 hours 50 min speech duration (reference).

ianwow commented 4 years ago

Cost estimations added to the README, as of https://github.com/awslabs/aws-media-insights-engine/releases/tag/v0.1.6