<commit_before># MediaConvertAdapter


To use active_encode with MediaConvert, you will need:

* An AWS account that has access to create MediaConvert jobs
* An AWS [IAM service role that has access to necessary AWS resources](https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html).
* An S3 bucket to store source files
* An S3 bucket to store derivatives (recommended to be separate)
* Existing [MediaConvert Output presets](https://docs.aws.amazon.com/mediaconvert/latest/ug/creating-preset-from-scratch.html) to define your outputs (eg desired HLS adaptive variants)
* EventBridge/Cloudfront setup to store output (can be automatically created by code we include here)
* You have to add these gems to your project Gemfile, that are required for
 the mediaconvert adapter but not included as active_encode dependencies:
 * aws-sdk-cloudwatchevents
 * aws-sdk-cloudwatchlogs
 * aws-sdk-mediaconvert
 * aws-sdk-s3

You may find this tutorial helpful to create the AWS resources you need, or debug the process: https://github.com/aws-samples/aws-media-services-simple-vod-workflow (mainly the firsst two modules).

## Note: No Technical Metadata

This adapter does _not_ perform input characterization or fill out technical metadata in the encoding job `input` object. technical metadata in `encode.input` such as `width`, `duration`,
or `video_codec` will be nil.

## CloudWatch and EventBridge setup, optionally with setup!

[AWS Elemental MediaConvert](https://aws.amazon.com/mediaconvert/) doesn't provide detailed
output information in the job description that can be pulled directly from the service.
Instead, it provides that information in a job status notification when the job
status changes to `COMPLETE`. The only way to capture that notification is through an [Amazon
Eventbridge](https://aws.amazon.com/eventbridge/) rule that forwards the status change
notification to another service for capture and/or handling -- for instance a CloudWatch Logs]
(https://aws.amazon.com/cloudwatch/) log group.
<commit_msg>Fix list indent in MediaConvert guide docs<commit_after># MediaConvertAdapter


To use active_encode with MediaConvert, you will need:

* An AWS account that has access to create MediaConvert jobs
* An AWS [IAM service role that has access to necessary AWS resources](https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html).
* An S3 bucket to store source files
* An S3 bucket to store derivatives (recommended to be separate)
* Existing [MediaConvert Output presets](https://docs.aws.amazon.com/mediaconvert/latest/ug/creating-preset-from-scratch.html) to define your outputs (eg desired HLS adaptive variants)
* EventBridge/Cloudfront setup to store output (can be automatically created by code we include here)
* You have to add these gems to your project Gemfile, that are required for
 the mediaconvert adapter but not included as active_encode dependencies:
  * aws-sdk-cloudwatchevents
  * aws-sdk-cloudwatchlogs
  * aws-sdk-mediaconvert
  * aws-sdk-s3

You may find this tutorial helpful to create the AWS resources you need, or debug the process: https://github.com/aws-samples/aws-media-services-simple-vod-workflow (mainly the firsst two modules).

## Note: No Technical Metadata

This adapter does _not_ perform input characterization or fill out technical metadata in the encoding job `input` object. technical metadata in `encode.input` such as `width`, `duration`,
or `video_codec` will be nil.

## CloudWatch and EventBridge setup, optionally with setup!

[AWS Elemental MediaConvert](https://aws.amazon.com/mediaconvert/) doesn't provide detailed
output information in the job description that can be pulled directly from the service.
Instead, it provides that information in a job status notification when the job
status changes to `COMPLETE`. The only way to capture that notification is through an [Amazon
Eventbridge](https://aws.amazon.com/eventbridge/) rule that forwards the status change
notification to another service for capture and/or handling -- for instance a CloudWatch Logs]
(https://aws.amazon.com/cloudwatch/) log group.

{'fraction_non_alphanumeric': 0.07318858258111735, 'fraction_numerical': 0.001463771651622347, 'mean_word_length': 4.950653120464441, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '948067', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1053, 'n_words': 484}