Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(capture-linux): apply the vaMapBuffer2 guard to a forced VAAPI encoder too
EtienneLescot24c723e5244d
diff --git a/electron/native/pipewire-capture/src/encoder.rs b/electron/native/pipewire-capture/src/encoder.rsindex 8ac41049e..a2e041bfe 100644--- a/electron/native/pipewire-capture/src/encoder.rs+++ b/electron/native/pipewire-capture/src/encoder.rs@@ -248,7 +248,10 @@ impl VideoEncoder {let mut failures = Vec::new();for backend in candidates {- if backend == Backend::Vaapi && forced.is_none() && !vaapi_is_safe_to_probe() {+ // Forced too: every CPU frame on this path is uploaded, so a forced VAAPI+ // encoder on such a libva would abort on its first frame instead of+ // failing here with a readable reason.+ if backend == Backend::Vaapi && !vaapi_is_safe_to_probe() {let reason = "libva.so.2 does not export vaMapBuffer2, so this ffmpeg build \would abort inside VA-API rather than fail cleanly".to_owned();