Recording video on lambda
yongfook opened this issue · 2 comments
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.
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 🤔