Skip to content

feat(screencast): record AV1 mp4 video in Chromium with screencast.start - #44046

Open
Yury Semikhatsky (yury-s) wants to merge 9 commits into
microsoft:mainfrom
yury-s:fix-43999
Open

Yury Semikhatsky (yury-s) wants to merge 9 commits into
microsoft:mainfrom
yury-s:fix-43999

Conversation

@yury-s

@yury-s Yury Semikhatsky (yury-s) commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • page.screencast.start({ path }) with a .mp4 path records AV1 video with the built-in Chromium encoder (Page.startScreenRecording), without ffmpeg and without screencast frames.
  • The recorder is isolated in crVideoRecorder.ts and uses its own CDP session, because Chromium rejects recording and JPEG screencast in one session. It reads the video stream during the recording.
  • Other browsers throw Recording mp4 video is not supported in this browser. Other extensions keep the WebM recording.
  • No recordVideo option and no test runner option for mp4. The earlier recordVideo.format option is removed from this PR.

Fixes #43999

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs work!

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@yury-s Yury Semikhatsky (yury-s) changed the title feat(screencast): record AV1 mp4 video in Chromium feat(screencast): record AV1 mp4 video in Chromium with screencast.start Nov 20, 2026
Comment thread tests/library/screencast.spec.ts Resolved
Comment thread tests/library/screencast.spec.ts Resolved
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

5 failed
❌ [installation tests] › playwright-packages-install-behavior.spec.ts:40 › @playwright/browser-chromium should work @package-installations-macos-latest
❌ [installation tests] › playwright-packages-install-behavior.spec.ts:68 › playwright should work @package-installations-macos-latest
❌ [installation tests] › playwright-packages-install-behavior.spec.ts:81 › playwright should work with chromium --no-shell @package-installations-macos-latest
❌ [installation tests] › playwright-packages-install-behavior.spec.ts:90 › playwright should work with chromium --only-shell @package-installations-macos-latest
❌ [installation tests] › playwright-packages-install-behavior.spec.ts:99 › @playwright/test should work @package-installations-macos-latest

2 flaky ⚠️ [installation tests] › playwright-should-work-with-relative-browsers-path.spec.ts:20 › playwright should work with relative home path `@package-installations-macos-latest`
⚠️ [firefox-library] › library/capabilities.spec.ts:105 › CA-008 should support webgl Radoslav Kirilov (@smoke) `@firefox-playwright-x64-ubuntu24-64-core-node22`

23666 passed, 708 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5250 passed, 644 skipped


Merge workflow run.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

🟢 All five failures are download infrastructure failures

Hi, I'm the Playwright bot. I checked the failures in tests 1, run 44655818070 at 3d0976c8372d.

Details and independent failure history

The PR did not cause these failures. All five tests failed during Chromium installation with getaddrinfo ENOTFOUND cdn.playwright.dev, on the first attempt and all three retries. The PR leaves the installation tests, downloader, download hosts and browser revisions unchanged; the failures occur before the browser starts.

Pre-existing flake / infra

All five are infrastructure failures in playwright-packages-install-behavior.spec.ts, macOS job:

Line Test
40 @playwright/browser-chromium should work
68 playwright should work
81 playwright should work with chromium --no-shell
90 playwright should work with chromium --only-shell
99 @playwright/test should work

The same tests at lines 40, 68, 90 and 99 failed or flaked with the identical DNS error in the macOS job for #44227, independently of this PR. Test history records tested commit 260aedd60779 there.

No earlier identical DNS failure was found for --no-shell. Its failure here is still a confirmed download failure, not an inferred test flake: the unchanged downloader cannot resolve the same host, before reaching browser or screencast code.

The two tests marked flaky in the merged report passed on retry and are not additional failed tests. No code fix is indicated.

Checked the failures on Linux - agent run

This branch has not been deployed

No deployments
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 this pull request may close these issues.

[Feature]: Use new Page.startScreenRecording for Chromium video capture

2 participants