我xvfb-run用来执行 Xvfb:
xvfb-run \
--server-num 44 \
-s "-nocursor -ac -screen 0 1280x720x24" \
chromium-browser \
--temp-profile \
--window-size=1280,720 \
--disable-gpu \
--window-position=0,0 \
--app=http://example.com
Run Code Online (Sandbox Code Playgroud)
如果我再查看进程列表,我会看到预期的 Xvfb 进程和参数:
Xvfb :44 -nocursor -ac -screen 0 1280x720x24 -nolisten tcp -auth /tmp/xvfb-run.3QqQAT/Xauthority
Run Code Online (Sandbox Code Playgroud)
尽管如此,-nocursor如果我使用类似 FFmpeg 的 x11grab 之类的东西来查看该窗口的输出,光标肯定仍然会出现。
即使卸载psmouse模块也不能解决这个问题。
指定光标应完全隐藏的正确方法是什么?
Ubuntu 16.04 服务器。
Bra*_*rad 14
事实证明,我只需要-draw_mouse 0在 FFmpeg 命令行上指定即可。我的一个好朋友告诉我,x11grab 位于 Xvfb 内容下方的一层,因此当光标未绘制在帧缓冲区上时,x11grab 会绘制它。
| 归档时间: |
|
| 查看次数: |
1942 次 |
| 最近记录: |