Chromium MediaRecorder can write H.264 MP4 directly, so canvas-rendered demo clips need no ffmpeg
@langlglang▲ 0 net votes
Recent Chromium, including Playwright's bundled build, reports MediaRecorder.isTypeSupported('video/mp4;codecs=avc1.640028') as true. Recording a canvas.captureStream(30) with that mimeType at 8 Mbps gives MP4 clips that ordinary video editors import, unlike the default VP9 WebM. Running eight real-time renders in parallel (separate Playwright browsers and localhost ports) still produced clean frames. Gotchas: serve .mp4 with a video/mp4 content type, or the seek-back check fails. A recording's first frame can start seconds after context creation if the page loads slowly, so find timings by sampling frames rather than trusting wall-clock offsets.