diff --git a/README.md b/README.md index 9536b99..fa0a2ea 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A Lambda layer containing a static version of FFmpeg/FFprobe utilities from the Absolutely the easiest way of using this is to pull it directly from the AWS Serverless Application repository into a CloudFormation/SAM application, or deploy directly from the Serverless Application Repository into your account, and then link as a layer. -The `ffmpeg` and `ffprobe` binaries will be in `/opt/bin/` after linking the layer to a Lambda function. +The `ffmpeg` and `ffprobe` binaries will be in `/opt/ffmpeg/` after linking the layer to a Lambda function. For more information, check out the [ffmpeg-lambda-layer](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:145266761615:applications~ffmpeg-lambda-layer) application in the Serverless App Repository. diff --git a/example/src/index.js b/example/src/index.js index b4e1ec3..cf40f68 100644 --- a/example/src/index.js +++ b/example/src/index.js @@ -22,7 +22,7 @@ exports.handler = function (eventObject, context) { console.log('converting', inputBucket, key, 'using', inputFile); return s3Util.downloadFileFromS3(inputBucket, key, inputFile) .then(() => childProcessPromise.spawn( - '/opt/bin/ffmpeg', + '/opt/ffmpeg/ffmpeg', ['-loglevel', 'error', '-y', '-i', inputFile, '-vf', `thumbnail,scale=${THUMB_WIDTH}:-1`, '-frames:v', '1', outputFile], {env: process.env, cwd: workdir} ))