简体   繁体   English

linux 上特定 window 的屏幕截图

[英]Screen capture of specific window on linux

I am using a simulation (Mujoco) and its video recording capability is not working.我正在使用模拟(Mujoco),它的视频录制功能不起作用。 So, a workaround would be to capture the simulation frame, make screenshots and assemble them to video.因此,一种解决方法是捕获模拟帧,制作屏幕截图并将它们组合成视频。 However, I have not been able to find a window grabber that works on linux.但是,我找不到适用于 linux 的 window 抓取器。 SO far I have tried: pygetwindow - is not supported for linux python mss - is not able to grab a frame到目前为止,我已经尝试过: pygetwindow - linux python mss 不支持 - 无法抓取帧

Could you provide me with some alternatives?你能给我提供一些替代方案吗? I would be very thankful我将非常感谢

This question is not what Stack Overflow is for - it's for fixing code.这个问题不是 Stack Overflow 的目的——它是为了修复代码。 You provide the code, we try to fix it.您提供代码,我们尝试修复它。 But, anyway -但不管怎么说 -

In our company we use OBS for recording video.在我们公司,我们使用 OBS 来录制视频。 It is free, and is advertised as working under Windows, MacOS and Linux - I can say that it works well under Windows.它是免费的,并且被宣传为在 Windows、MacOS 和 Linux 下工作 - 我可以说它在 Windows 下工作得很好。 https://obsproject.com/ https://obsproject.com/

I hope this is useful.我希望这很有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM