VLC马赛克捕获第一帧然后冻结

时间:2018-06-27 21:07:49

标签: vlc libvlc

我正在尝试设置4个IP摄像机以在vlc上显示。我显示了4个流,但是我的问题是,它只能获取任何摄像机看到的第一帧,仅此而已。我的泳池中有人在移动,所以当我重新启动该过程时,可以看到第一帧,就是这样。

这是我的配置文件

    new channel1 broadcast enabled                                                       
        setup channel1 input "rtsp://10.20.54.13/live.sdp"
        setup channel1 output #mosaic-bridge{id=1,height=360,width=640}

new channel2 broadcast enabled                                                       
setup channel2 input "rtsp://10.20.54.13/live.sdp"
setup channel2 output #mosaic-bridge{id=2,height=360,width=640}

new channel3 broadcast enabled                                                       
setup channel3 input "rtsp://10.20.54.13/live.sdp"
setup channel3 output #mosaic-bridge{id=3,height=360,width=640}

new channel4 broadcast enabled                                                       
setup channel4 input "rtsp://10.20.54.13/live.sdp"
setup channel4 output #mosaic-bridge{id=4,height=360,width=640}

new mosaic broadcast enabled
setup mosaic input file:///home/csotc/Desktop/bg.jpg


setup mosaic option mosaic-rows=2
setup mosaic option mosaic-cols=2
setup mosaic option image-fps=15
setup mosaic option image-duration=-1
setup mosaic option mosaic-position=1

setup mosaic output #transcode{sfilter=mosaic,vcodec=mp4v,vb=10000,acodec=none,fps=30,scale=1}:bridge-in{delay=1,id_offset=100}:display

control channel1 play
control channel2 play
control channel3 play
control channel4 play
control mosaic play

这是我在终端中输入的内容

cvlc --vlm-conf /home/csotc/Desktop/cam.vlm.conf  --mosaic-position=1  --mosaic-keep-picture  --mosaic-width 1280 --mosaic-order "1,2,3,4" --mosaic-height 720

这是马赛克的屏幕截图。它是一张图片,但这就是我所看到的。没有视频= /

Mosaic VLC 1 frame

0 个答案:

没有答案