I’ve created a .vlm file to create a multi view. It’s working well when using VLC to playback. The .vlm file ingests (4)channels dvr channels from m3u combines them into one stream and outputs the stream to my network using rtp protocol. Unfortunately channels doesn’t support RTP protocol when setting up a custom source.
Would any one know how to change this line of code so that it outputs hls or TS?
#transcode{vcodec=mp4v,vb=0,fps=30,acodec=none,channels=2,sfilter=mosaic{alpha=255,width=1920,height=1080,cols=2,rows=2,position=1,order="ch1,ch2,ch3,ch4",keep-aspect-ratio=enabled,mosaic-align=0,keep-picture=1}}:bridge-in{offset=100}:rtp{dst=127.0.0.1,port=20000,mux=ts,sap,name=Multi4,ttl=10}
Can this part be changed to not use rtp?
:rtp{dst=127.0.0.1,port=20000,mux=ts,sap,name=Multi4,ttl=10}
Here it is running in VLC
@tmm1 does channels support rtp protocol?
Here is the complete .vlm file if anyone wants to play with it. Audio plays from top right box(input 2)
del all
new ch1 broadcast enabled
setup ch1 input "http://127.0.0.1:8089/devices/ANY/channels/6141/stream.mpg"
setup ch1 output #mosaic-bridge{id=ch1,width=960,height=540}
new ch2 broadcast enabled
setup ch2 input "http://127.0.0.1:8089/devices/ANY/channels/6140/stream.mpg"
setup ch2 output #duplicate{dst=mosaic-bridge{id=ch2,width=960,height=540},select=video,dst=bridge-out{id=0},select=audio}
new ch3 broadcast enabled
setup ch3 input "http://127.0.0.1:8089/devices/ANY/channels/6197/stream.mpg"
setup ch3 output #mosaic-bridge{id=ch3,width=960,height=540}
new ch4 broadcast enabled
setup ch4 input "http://127.0.0.1:8089/devices/ANY/channels/6003/stream.mpg"
setup ch4 output #mosaic-bridge{id=ch4,width=960,height=540}
new bg broadcast enabled
setup bg input "bg.jpg"
setup bg option image-duration=-1
setup bg option image-fps=60/1
setup bg output #transcode{vcodec=mp4v,vb=0,fps=60,acodec=none,channels=2,sfilter=mosaic{alpha=255,width=1920,height=1080,cols=2,rows=2,position=1,order="ch1,ch2,ch3,ch4",keep-aspect-ratio=enabled,mosaic-align=0,keep-picture=1}}:bridge-in{offset=100}:rtp{dst=127.0.0.1,port=5589,mux=ts,sap,name=Multi4,ttl=10}
control bg play
control ch1 play
control ch2 play
control ch3 play
control ch4 play
*updated to use stream.mpg instead of HLS.
Here is the background .jpg I use. ("bg.jpg")