gpt4 book ai didi

FFmpeg 捕获远程屏幕

转载 作者:行者123 更新时间:2023-12-04 23:26:03 24 4
gpt4 key购买 nike

我正在尝试通过 ffmpeg 和 x11grab 捕获远程屏幕,我在我的机器上运行这个命令
xpra start-desktop :20 --start-child=fluxbox
这台机器有ip 192.168.1.15
在远程捕获中我尝试运行它

/usr/local/bin/ffmpeg -f pulse -server 192.168.1.15 -i tarjeta01.monitor -f x11grab -framerate 25 -r 25 -i 192.168.1.15:20.0 -fflags nobuffer -f rtp -c:v h264_nvenc -preset llhp -profile:v baseline -level 4 -delay 0 -b:v 1500k -threads 4 -cbr 1 -r 25 -an udp://:5008 -f rtp -vn -c:a libopus -ar 48000 -ac 2 -ab 96k -application lowdelay -compression_level 0 -frame_duration 2.5 -cutoff 20000 -vbr constrained udp://localhost:5006

我在运行 xpra 但总是收到此错误的机器上制作 xhost + 和 xhost + 192.168.1.16
[x11grab @ 0x23e4ea0] Cannot open display 192.168.1.15:20, error 1.
192.168.1.15:20: Input/output error

我尝试了 xpra、Xephyr 和 xfvb,但总是得到同样的错误

感谢所有最好的问候

最佳答案

xpra 启动的 vfb 不监听 TCP 连接。也不建议启用 TCP 连接。为了获得不错的性能,我会在运行 xpra 的同一系统上运行 ffmpeg。

即使已启用,您也需要告诉 xpra 使用 sync-vfb,详情请参阅 fix screen capture tools when used with xpra

注意:较新的版本使用私有(private)的 pulseaudio 实例,因此 ffmpeg 将无法在没有帮助的情况下找到 pulseaudio 服务器:Sound is leaking across multiple xpra sessions attached to different machines

关于FFmpeg 捕获远程屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47334221/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com