This approach requires a Docker-based solution where both ffmpeg and Playwright run within containerized environments. The key is to configure Playwright to use a custom FFmpeg path instead of its bundled version. Implementation approach: FFmpeg is inherently part of Playwright's architecture, and the standard installation automatically includes these libraries. However, you can bypass Playwright's default FFmpeg installation by directing it to use the system-available FFmpeg instead. To achieve this, you'll need to:
Create a Docker container that includes both FFmpeg and PlaywrightConfigure Playwright to skip its bundled FFmpeg installation. Provide the custom FFmpeg path to Playwright so it references the system-installed version rather than downloading or using its own libraries. Key consideration: while you cannot install Playwright completely without FFmpeg dependencies, you can control which FFmpeg instances it uses. The solution involves instructing Playwright to utilize the FFmpeg binary already present in your Docker environment, effectively overriding its default behavior.