The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

R0B (1) [Avatar] Offline
#1
I could not get the code sample to work without making modifications.
I modified the code snippet based on additional information from this blog https://read.acloud.guru/easy-video-transcoding-in-aws-7a0abaaab7b8#.ptuh7z5na which is by the author of this book.
Peter Sbarski (18) [Avatar] Offline
#2
Thank you for your feedback!

Could you share with us: what was the problem & what modification did you have to make to get it to work?
Rails4G (19) [Avatar] Offline
#3
see below
Rails4G (19) [Avatar] Offline
#4
Rails4G wrote:Transcoder returning error for PresetId failed regular expression.

Function:
elasticTranscoder.createJob(params, function(error, data) {
if(error) {
callback(error); // 7
}
});

Values passed:
PipelineId: '1472652925055-nbt6kn',
OutputKeyPrefix: 'IMG5606/',
Input: { Key: 'IMG5606.mov' },
Outputs: [
{ Key: 'IMG5606-1080p.mp4', PresetId: '1351620000001-000001' },
{ Key: 'IMG5606-720p.mp4', PresetId: '1351620000001-000010' },
{ Key: 'IMG5606-web-720p.mp4', PresetId: '1351620000001-100070' } ] }

Error:
Value '1351620000001-000001' at 'outputs.1.member.presetId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^\\d{13}-\\w{6}$;
Value '1351620000001-000010' at 'outputs.2.member.presetId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^\\d{13}-\\w{6}$;
Value '1351620000001-100070' at 'outputs.3.member.presetId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^\\d{13}-\\w{6}$