perf(aws-lambda): build the final mp4 inside S3 with its index up front

Distributed mp4 chunks now carry their slice of the plan audio. Assemble writes
one faststart header (ftyp, a moov indexing every chunk's samples, a 64-bit mdat
header) and S3 copies each chunk's mdat payload after it with UploadPartCopy.
This commit is contained in:
Miguel Angel Simon Sierra
2026-10-17 06:12:46 -07:00
parent b18b3e958a
commit fe59e3e558
18 changed files with 1606 additions and 38 deletions
+4
View File
@@ -162,6 +162,10 @@ Resources:
Policies:
- S3CrudPolicy:
BucketName: !Ref RenderBucket
- Statement:
- Effect: Allow
Action: s3:AbortMultipartUpload
Resource: !Sub "arn:${AWS::Partition}:s3:::${RenderBucket}/*"
# CloudWatch Logs perms are covered by SAM's default
# AWSLambdaBasicExecutionRole — explicit `CloudWatchLogsFullAccess`
# would be overscope (`logs:*` on `*`, including DeleteLogGroup +