Help with Mosaic RTSP setup on Raspberry Pi 4
Posted: 09 Feb 2020 19:07
Good day,
I've been working on trying to get a VLM configuration created for my new raspberry PI 4 4GB setup.
The goal is to show 4 RTSP camera streams in a mosaic view shown in the picture below.
The documentation for VLM is hard to come by and in some cases not fully complete.
Browsing the internet and these forums I've been able to create parts of what I feel should work however I am getting the following error
Here is what my VLM file looks like
I am then running the vlm with the following command when trying to run it. Keep in mind I am running a headless version of Raspbian Buster
I am able to stream a single rtsp via the following command without any issues. Would someone be able to shine some light on how I can get past this issue?
I've been working on trying to get a VLM configuration created for my new raspberry PI 4 4GB setup.
The goal is to show 4 RTSP camera streams in a mosaic view shown in the picture below.
The documentation for VLM is hard to come by and in some cases not fully complete.
Browsing the internet and these forums I've been able to create parts of what I feel should work however I am getting the following error
Code: Select all
[b273b160] chain filter error: Too high level of recursion (3)
[b2717ad0] main filter error: Failed to create video converter
[b273b160] chain filter error: Too high level of recursion (3)
[b2717ad0] main filter error: Failed to create video converter
[b232a478] chain filter error: Too high level of recursion (3)
[b232a1c8] main filter error: Failed to create video converter
[b273b160] chain filter error: Too high level of recursion (3)
[b2717ad0] main filter error: Failed to create video converter
[b232a478] chain filter error: Too high level of recursion (3)
[b232a1c8] main filter error: Failed to create video converter
[b273b160] chain filter error: Too high level of recursion (3)
[b2717ad0] main filter error: Failed to create video converter
[b232a478] chain filter error: Too high level of recursion (3)
[b232a1c8] main filter error: Failed to create video converter
[b232a478] chain filter error: Too high level of recursion (3)
[b232a1c8] main filter error: Failed to create video converter
mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL
mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xb2617120) (EINVAL)
[b2613f90] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL)
[b2600da0] mosaic_bridge stream out error: image conversion failed
mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL
mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xb2617120) (EINVAL)
[b2613f90] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL)
[b2600da0] mosaic_bridge stream out error: image conversion failed
mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL
mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xb2617120) (EINVAL)
[b2613f90] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL)
[b2600da0] mosaic_bridge stream out error: image conversion failed
Code: Select all
# Comment the following line if you don't want to reset your VLM configuration
del all
# Background options
new bg broadcast enabled
setup bg input /home/pi/black.png
setup bg option image-duration=-1
setup bg output #transcode{sfilter=mosaic{width=1440,height=900,cols=3,rows=2,position=1,order="1,2,3,4",keep-aspect-ratio=enabled,mosaic-align=5},vcodec=h264,vb=2000,fps=15}:duplicate{dst=display}
# Input options
new 1 broadcast enabled
setup 1 input "rtsp://username:password@x.x.x.x:554/cam/realmonitor?channel=1&subtype=2"
setup 1 option dshow-fps=15
setup 1 option dshow-size="720x450"
setup 1 output #duplicate{dst=mosaic-bridge{id=1,width=720,height=450},select=video,dst=bridge-out{id=0}}
new 2 broadcast enabled
setup 2 input "rtsp://username:password@x.x.x.x:554/cam/realmonitor?channel=2&subtype=1"
setup 2 option dshow-fps=15
setup 2 option dshow-size="720x450"
setup 2 output #duplicate{dst=mosaic-bridge{id=2,width=720,height=450},select=video,dst=bridge-out{id=1}}
new 3 broadcast enabled
setup 3 input "rtsp://username:password@x.x.x.x:554/cam/realmonitor?channel=3&subtype=1"
setup 3 option dshow-fps=15
setup 3 option dshow-size="720x450"
setup 3 output #duplicate{dst=mosaic-bridge{id=3,width=720,height=450},select=video,dst=bridge-out{id=2}}
new 4 broadcast enabled
setup 4 input "rtsp://username:password@x.x.x.x:554/cam/realmonitor?channel=6&subtype=1"
setup 4 option dshow-fps=15
setup 4 option dshow-size="720x450"
setup 4 output #duplicate{dst=mosaic-bridge{id=4,width=720,height=450},select=video,dst=bridge-out{id=3}}
# Launch everything
control bg play
control 1 play
control 2 play
control 3 play
control 4 play
# end of mosaic batch
Code: Select all
vlc --vlm-conf'="cameras.vlm"
Code: Select all
vlc "rtsp://username:password@x.x.x.x:554/cam/realmonitor?channel=6&subtype=1"