Skip to content

Lossless screencasts and ffmpeg customization - #118

Merged
tushuhei merged 1 commit into
tushuhei:mainfrom
azmeuk:ffmpeg-options
Jun 5, 2026
Merged

tushuhei merged 1 commit into
tushuhei:mainfrom
azmeuk:ffmpeg-options

Conversation

@azmeuk

@azmeuk azmeuk commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR depends on this upstream PR: microsoft/playwright#41007

The upstream PR adds ffmpeg options and executable path customization.

edit: the PR was refused, but there was another way to achieve it.

This PR sets sphinxcontrib-screenshot options to customize ffmpeg. Also it offers better quality defaults for screencasts.

This fixes the glitches I was seeing when building screencasts.

Capture screencast frames via the CDP screencast and encode them in a
single userland ffmpeg pass instead of Playwright's recordVideo. Adds
:ffmpeg-options:, :ffmpeg-executable:, :fps: and :output-extension:.
Default is near-lossless VP8; a system ffmpeg unlocks PNG capture and
lossless/VP9 output. Screencast recording is now chromium-only.
@tushuhei
tushuhei marked this pull request as ready for review June 5, 2026 23:24
@tushuhei
tushuhei merged commit dc0f9e2 into tushuhei:main Jun 5, 2026
11 checks passed
@azmeuk
azmeuk deleted the ffmpeg-options branch June 6, 2026 06:03
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.

2 participants