playwright/browser_patches/ffmpeg/README.md
2020-09-14 15:12:35 -07:00

1.3 KiB

Playwright and FFMPEG

Playwright requires FFMPEG to produce screncast and bundles FFMPEG binaries for Mac , Linux and Windows.

Configuration

We compile libvpx and ffmpeg only. Their source versions and build configurations are defined in //browser_patches/ffmpeg/CONFIG.sh.

Building ffmpeg-linux

Compilation scripts are based on:

Prerequisites:

  • Mac or Linux
  • Docker

Building:

~/playwright$ ./browser_patches/ffmpeg/build.sh --linux

Building ffmpeg-mac

Compilation scripts are based on:

Prerequisites:

  • Mac
  • xcode command line tools: xcode-select --install
  • homebrew

Building:

~/playwright$ ./browser_patches/ffmpeg/build.sh --mac

Building ffmpeg-win*

Cross-compilation scripts are based on:

Prerequisites:

Building:

~/playwright$ ./browser_patches/ffmpeg/build.sh --cross-compile-win32
~/playwright$ ./browser_patches/ffmpeg/build.sh --cross-compile-win64