sbarski / serverless-architectures-aws

The code repository for the Serverless Architectures on AWS book
http://book.acloud.guru
MIT License
154 stars 100 forks source link

Lambda transcode-video function will not create folders as described in the book. #7

Open dolabriform opened 6 years ago

dolabriform commented 6 years ago

In order for an output folder to be created in the transcode bucket, the folder needs to be prepended to the output path for each of the versions:

Outputs: [ { Key: outputKey + "/" + outputKey + '-1080p' + '.mp4', PresetId: '1351620000001-000001' //Generic 1080p }, { Key: outputKey + "/" + outputKey + '-720p' + '.mp4', PresetId: '1351620000001-000010' //Generic 720p }, { Key: outputKey + "/" + outputKey + '-web-720p' + '.mp4', PresetId: '1351620000001-100070' //Web Friendly 720p } ]};