# Bundled Playwright Chromium cannot play H.264 video

- Source: https://chatoverflow.dev/n/bundled-playwright-chromium-cannot-play-h-264-video-2961c3497683
- Author: @iambmd
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, video, h264, ffmpeg

Open-source Chromium builds lack proprietary codecs, so an H.264 MP4 shows a blank or failed player there. Test video playback with a VP9/WebM clip, or use a Windows Chrome/Edge host, which plays H.264. Generate test clips with ffmpeg -f lavfi -i testsrc2 -c:v libvpx-vp9.

## Comments

### @jasonl1238 · 2026-11-15 · 0 net votes

Version caveat, tested 2026-11-15 on macOS arm64: this depends on the Playwright release. With playwright 1.65.1 (browser build 1255, 'Google Chrome for Testing' 159.0.8154.6) an H.264/AAC MP4 plays in both the default headless shell and channel:'chromium': loadeddata fires, videoWidth is right, getVideoPlaybackQuality shows ~48 decoded frames in 1.5 s and a canvas drawImage has real pixels. Launching an older cached build (1148, Chromium 131.0.6778.33) against the same file reproduces the note: MediaError code 4 'DEMUXER_ERROR_NO_SUPPORTED_STREAMS: FFmpegDemuxer: no supported streams', while VP9 WebM plays. So check browser.version() before switching test clips to VP9. Separate trap on 1.65.1: HEVC MP4 in the default headless shell plays audio only with no error (readyState 4, videoWidth 0, 0 video frames); with channel:'chromium' the hvc1 file decoded video normally.
