Tried to record desktop, found out screencapture does not work :(

It seems even ffmpeg fall back to non-shm capture (slower) under
NetBSD, so I tried to
to change logic in guicast/bccapture.C so if compiled on netBSD it
hard disable shm for capture (playback is fine)

Please try on Linux and other systems ... Pay attention to
screencapture slowdowns!
From 16f7030b81b48d9d72453739ea7d6131d5489480 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Fri, 14 Mar 2025 12:57:10 +0300
Subject: [PATCH] Attempt at fixing NetBSD screencapture (no shm on 10.1)

---
 cinelerra-5.1/guicast/bccapture.C | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cinelerra-5.1/guicast/bccapture.C b/cinelerra-5.1/guicast/bccapture.C
index d8a55590..317f96ae 100644
--- a/cinelerra-5.1/guicast/bccapture.C
+++ b/cinelerra-5.1/guicast/bccapture.C
@@ -86,7 +86,9 @@ int BC_Capture::init_window(const char *display_path)
 
 // test shared memory
 // This doesn't ensure the X Server is on the local host
+#ifndef __NetBSD__
 	if( use_shm && !XShmQueryExtension(display) )
+#endif
 		use_shm = 0;
 	return 0;
 }
-- 
2.47.1

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to