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

[BUG] ffmpeg missing when only installing one browser on Linux #557

Closed
matrey opened this issue Mar 9, 2021 · 0 comments · Fixed by microsoft/playwright#5774
Closed

Comments

@matrey
Copy link

matrey commented Mar 9, 2021

I was only interested in chromium so I used playwright install chromium
This only created ~/.cache/ms-playwright/chromium-854489/

But then when I tried to get a video trace, it failed with:

playwright._impl._api_types.Error: Failed to launch browser: Error: spawn ~/.cache/ms-playwright/ffmpeg-1005/ffmpeg-linux ENOENT

playwright install ffmpeg does not work:

Invalid browser name: 'ffmpeg'. Expecting 'chromium', 'firefox' or 'webkit'.

Note that running playwright install does download ffmpeg, the issue only exists when you just want 1 browser.

Downloading webkit v1438 - 77.2 Mb [====================] 100% 0.0s 
webkit v1438 downloaded to ~/.cache/ms-playwright/webkit-1438
Downloading firefox v1234 - 72.2 Mb [====================] 100% 0.0s 
firefox v1234 downloaded to ~/.cache/ms-playwright/firefox-1234
Downloading ffmpeg v1005 - 2.6 Mb [====================] 100% 0.0s 
ffmpeg v1005 downloaded to ~/.cache/ms-playwright/ffmpeg-1005
@yury-s yury-s changed the title ffmpeg missing when only installing one browser on Linux [BUG] ffmpeg missing when only installing one browser on Linux Mar 10, 2021
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

Successfully merging a pull request may close this issue.

1 participant