Playwright cannot find ffmpeg when using the /playwright endpoint

This issue has been tracked since 2022-06-30.

Describe the bug
When I connect to the browserless chrome container via the /playwright endpoint it's not possible to record videos as Playwright cannot find ffmpeg.

Error message:
Executable doesn't exist at /usr/src/app/ffmpeg-1007/ffmpeg-linux

To Reproduce
I described the issue here: microsoft/playwright#15265

Expected behavior
A video can be recorded

Additional context
As stated here you need to install chromium + ffmpeg via the Playwright CLI as part of your image build to make it work.

OLibutzki wrote this answer on 2022-07-07

After adding this line to the docker file the error does not occur anymore.
npx playwright install;

Unfortunately no video is saved after closing the context.

OLibutzki wrote this answer on 2022-07-07

Ah, by using com.microsoft.playwright.Video.saveAs(Path) I can download the recording.

Long story short: If you install playwright using the cli like mentioned before it is possible to record the videos.

rwoll wrote this answer on 2022-07-07

See microsoft/playwright#15265 (comment) for further info/explanation. Installing just ffmpeg into the container (but using CR that's already in the Browserless container will do) via Playwright CLI: npx playwright install ffmpeg.

More Details About Repo
Owner Name browserless
Repo Name chrome
Full Name browserless/chrome
Language TypeScript
Created Date 2017-11-17
Updated Date 2023-03-22
Star Count 5309
Watcher Count 47
Fork Count 516
Issue Count 29

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date