aws-solutions / video-on-demand-on-aws

An automated reference implementation leveraging AWS Step Functions and AWS Media Services to deploy a scalable fault tolerant Video on demand workflow
https://aws.amazon.com/solutions/video-on-demand-on-aws/
Apache License 2.0
502 stars 240 forks source link

`encode` Lambda incorrectly uses default settings #108

Closed toufali closed 3 years ago

toufali commented 4 years ago

Describe the bug encode Lambda with hard-coded defaults overwrites specified MediaConvert template settings, including CMAF segmentLength which was my particular issue.

https://github.com/awslabs/video-on-demand-on-aws/blob/f9b59fab658ce86d7f8336786a78b7063de462b9/source/encode/index.js#L60

https://github.com/awslabs/video-on-demand-on-aws/blob/f9b59fab658ce86d7f8336786a78b7063de462b9/source/encode/index.js#L119

https://github.com/awslabs/video-on-demand-on-aws/blob/f9b59fab658ce86d7f8336786a78b7063de462b9/source/encode/index.js#L219

Instead of preserving only custom template settings, the function should also preserve MediaConvert template settings. I believe this is most easily accomplished by removing the conditional and merging/preserving template settings regardless of if it's custom or set in MediaConvert. I've created a pull request for this: https://github.com/awslabs/video-on-demand-on-aws/pull/107

To Reproduce

Expected behavior

Please complete the following information about the solution:

tomnight commented 4 years ago

Again thanks for this we will review the PR in the next release.

tomgilman commented 3 years ago

Closing this ticket, this was updated in 5.2.