https://github.com/kefabean/lambda-transcoder/blob/master/transcoder/transcode.js