fix(video): prioritize h264 codec and fix pixi render blur

This commit is contained in:
Raj Tiwari
2026-04-11 13:07:07 +05:30
parent 68295b21ec
commit 90d04c734e
2 changed files with 14 additions and 3 deletions
+6 -2
View File
@@ -118,11 +118,15 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
}, []);
const selectMimeType = () => {
// H.264 first: hardware-accelerated on all modern devices, gives sharp
// real-time output. AV1/VP9 are great for distribution but too
// CPU-intensive for live 60 fps capture — they produce blurry frames
// when the software encoder can't keep up.
const preferred = [
"video/webm;codecs=av1",
"video/webm;codecs=h264",
"video/webm;codecs=vp9",
"video/webm;codecs=vp8",
"video/webm;codecs=vp9",
"video/webm;codecs=av1",
"video/webm",
];