Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording video on lambda #57

Open
yongfook opened this issue Nov 25, 2022 · 2 comments
Open

Recording video on lambda #57

yongfook opened this issue Nov 25, 2022 · 2 comments

Comments

@yongfook
Copy link

Has anyone successfully got video recording to work on lambda + playwright?

Working fine locally, but after deploying to lambda:

browserContext.newPage: Executable doesn't exist at /home/sbx_user1051/.cache/ms-playwright/ffmpeg-1007/ffmpeg-linux

Attempting to install ffmpeg via a lambda layer results in a package size that's too big for lambda.

Attempting to install ffmpeg and set the path via:

const pathToFfmpeg = require('ffmpeg-static');
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(pathToFfmpeg);

Results in the same error as above.

@yongfook
Copy link
Author

Update: I was able to deploy playwright-aws-lambda plus the ffmpeg lambda layer without a "package too big" error.

However, I still get the error as above.

Even when I try setting FFMPEG_PATH (as per this thread) to the location of the executable in the lambda layer, the error message is still the same. It seems that it wants ffmpeg to appear specifically in that location 🤔

@resdenia
Copy link

@yongfook Did you manage to find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants