Currently video recording has only mode and size options, it's not possible to configure quality. For chromium-based browsers target bitrate = 1Mbit/s is hardcoded here https://github.com/microsoft/playwright/blob/47fb9a080d9dd4c1dff062c56060b86b621485ac/packages/playwright-core/src/server/chromium/videoRecorder.ts#L101 , also it's limited to one thread and target cpu usage is 50% (8/16).
My tested system is video recording/playback platform so when I record in 1280x720, quality is very poor (because it plays video and requires more cpu, more bitrate for better quality)
In firefox and webkit it's done without ffmpeg, but video recording quality-related parameters are not available to playwright user.
I propose to expose quality controls (like bitrate, threads, speed for ffmpeg and similar thing for firefox/webkit) as test video options (like size option)
Example
No response
Motivation
Playwright will be able to record videos where you can read the text and see what is happening that might be useful if tested system playbacks/generates video (like video player, video editor, 3d design systems and so on)
π Feature Request
Currently video recording has only mode and size options, it's not possible to configure quality. For chromium-based browsers target bitrate = 1Mbit/s is hardcoded here https://github.com/microsoft/playwright/blob/47fb9a080d9dd4c1dff062c56060b86b621485ac/packages/playwright-core/src/server/chromium/videoRecorder.ts#L101 , also it's limited to one thread and target cpu usage is 50% (8/16). My tested system is video recording/playback platform so when I record in 1280x720, quality is very poor (because it plays video and requires more cpu, more bitrate for better quality) In firefox and webkit it's done without ffmpeg, but video recording quality-related parameters are not available to playwright user. I propose to expose quality controls (like bitrate, threads, speed for ffmpeg and similar thing for firefox/webkit) as test video options (like size option)
Example
No response
Motivation
Playwright will be able to record videos where you can read the text and see what is happening that might be useful if tested system playbacks/generates video (like video player, video editor, 3d design systems and so on)