我找到了一种在 VLC 3.0.8 上正确显示来自 RTSP 摄像机的流马赛克的方法,并想分享解决方案:
将以下内容写入文件 < mosaic_vlc3.vlm >
# Comment the following line if you don't want to reset your VLM configuration
del all
new ch1 broadcast enabled
setup ch1 input "rtsp://user:pass@192.168.1.101:554/stream1"
setup ch1 output #mosaic-bridge{id=ch1,width=1280,height=512}
new ch2 broadcast enabled
setup ch2 input "rtsp://user:pass@192.168.1.102:554/stream1"
setup ch2 output #mosaic-bridge{id=ch2,width=1280,height=512}
new bg broadcast enabled
# The following background file is simply a black picture with specified dimensions, you can create one with any image editor, like mspaint, it is required …Run Code Online (Sandbox Code Playgroud)