I'm a bit confused. I'm setting up a lambda for transcoding an MP4 into a MPEG-Dash for adaptive steaming.
There are 4 presents for this
MPEG-DASH Video 600 k 1351620000001-500050
MPEG-DASH Video 1200 k 1351620000001-500040
MPEG-DASH Video 2400 k 1351620000001-500030
MPEG-DASH Video 4800 k 1351620000001-500020
I was following this example, where the author appears to create 4 outputs and a playlist via the pipeline.
I'm trying to work out how to set this up in the createJob function.
transcoder.createJob({
PipelineId: process.env.PIPELINE_ID,
Input: {
Key: srcKey,
FrameRate: 'auto',
Resolution: 'auto',
AspectRatio: 'auto',
Interlaced: 'auto',
Container: 'auto'
},
Output: {
Key: id + '_4m.mpd',
ThumbnailPattern: '',
PresetId: '1351620000001-500020',
Rotate: 'auto'
}
}, function(err, data){
if(err){
console.log('Something went wrong:',err)
}else{
console.log('Converting is done');
}
callback(err, data);
});
};
Here there is only one output and no playlist.
Can someone explain what I need for adaptive streaming, i.e. I assume all the outputs and the playlist file?