title: AWS Lambda for MPEG-DASH transcoding
body: <p>I'm a bit confused.  I'm setting up a lambda for transcoding an MP4 into a MPEG-Dash for adaptive steaming. </p>
  
  <p>There are 4 presents for this </p>
  
  <pre><code>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
  </code></pre>
  
  <p>I was following this <a href="https://gist.github.com/askilondz/d618fb2e39f481fd19bf3f8b0476a3b6" rel="nofollow noreferrer">example</a>, where the author appears to create 4 outputs and a playlist via the pipeline. </p>
  
  <p>I'm trying to work out how to set this up in the createJob function. </p>
  
  <pre><code>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);
      });
  };
  </code></pre>
  
  <p>Here there is only one output and no playlist. </p>
  
  <p>Can someone explain what I need for adaptive streaming, i.e. I assume all the outputs and the playlist file? </p>