gpt4 book ai didi

vlc - RTSP 流马赛克 VLC 3.0.8

转载 作者:行者123 更新时间:2023-12-04 12:00:48 29 4
gpt4 key购买 nike

我找到了一种在 VLC 3.0.8 上正确显示来自 RTSP 摄像机的流马赛克的方法,并想分享解决方案:
将以下内容写入文件 < 马赛克_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 for proper mosaic size
setup bg input "bg_1280x1024.jpg"
setup bg option image-duration=-1
setup bg output #transcode{vcodec=mp4v,vb=0,fps=0,acodec=none,channels=2,sfilter=mosaic{alpha=255,width=1280,height=1080,cols=1,rows=2,position=1,order="ch1,ch2",keep-aspect-ratio=enabled,mosaic-align=0,keep-picture=1}}:bridge-in{offset=100}:display

control bg play
control ch1 play
control ch2 play

# end of mosaic batch

放置两个文件 < 马赛克_vlc3.vlm > 和 < bg_1280x1024.jpg > 旁边 vlc.exe 在您的 VLC 安装文件夹中。
启动很简单:
将以下字符串写入文件 < VLC_Mosaic.cmd > vlc.exe --vlm-conf mosaic_vlc3.vlm您还可以使用与上述相同的参数创建快捷链接。

如果您的 RTSP 流不稳定,您可以尝试更改 VLC 配置,如下面的屏幕截图所示:

Codec Settings 1

Codec Settings 2

最佳答案

回答评论中的一个问题:

  • 是的,可以添加声音。甚至可以通过鼠标滚动来控制一般音量,非常方便。只需添加select=audio正确,如下例所示。
    它可以添加到一个或多个 channel ,这将导致所有声道的混合。就个人而言,我更喜欢只启用一个音频 channel 。
  • new ch1 broadcast enabled
    setup ch1 input "rtsp://login:pass@192.168.1.2:80/stream1.mp4"
    setup ch1 output #duplicate{dst=mosaic-bridge{id=ch1,width=1024,height=640},select=video,dst=bridge-out{id=0},select=audio}

    关于vlc - RTSP 流马赛克 VLC 3.0.8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59180160/

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