Video Mosaic With VLC

preview_player
Показать описание
# Sample vlm config file

del all

new ch1 broadcast enabled
setup ch1 input "rtp://239.1.5.1:20000"
setup ch1 output #mosaic-bridge{id=ch1,width=960,height=540}

new ch2 broadcast enabled
setup ch2 input "rtp://239.1.5.2:20000"
setup ch2 output #duplicate{dst=mosaic-bridge{id=ch2,width=960,height=540},select=video,dst=brid
ge-out{id=0},select=audio}

new ch3 broadcast enabled
setup ch3 input "rtp://239.1.5.3:20000"
setup ch3 output #mosaic-bridge{id=ch3,width=960,height=540}

new ch4 broadcast enabled
setup ch4 input "rtp://239.1.5.6:20000"
setup ch4 output #mosaic-bridge{id=ch4,width=960,height=540}

new bg broadcast enabled
setup bg option image-duration=-1
setup bg option image-fps=25/1
setup bg output #transcode{vcodec=mp4v,vb=0,fps=25,acodec=none,channels=2,sfilter=mosaic{alpha=2
55,width=1920,height=1080,cols=2,rows=2,position=1,order="ch1,ch2,ch3,ch4",keep-aspect-ratio=ena
bled,mosaic-align=0,keep-picture=1}}:bridge-in{offset=100}:rtp{dst=239.1.2.3,port=20000,mux=ts,s
ap,name=Mosaic,ttl=10}

control bg play
control ch1 play
control ch2 play
control ch3 play
control ch4 play
Рекомендации по теме
Комментарии
Автор

Thanks, using for security cameras, worked like a charm! Thanks again!

JWoelpl
Автор

I just did that a few weeks ago! Awesome! Thanks for the content!

veckia
Автор

Exactly what I was looking for with my cameras. Thanks!

TheMemcon
Автор

Mate, this is pretty cool. I didn't know VLC could do that.

velociraptor
Автор

Great, I can finally watch TV like Adrian Veidt! Thanks!

GeoDelGonzo
Автор

Really useful tutorial. Again. Thanks a lot!

MrDukeLeto
Автор

So just how much CPU grunt do you need to merge 25 video feeds?

pquodling
Автор

Could the audio pan left or right for two sources of audio? For example: ch2 is left and ch 3 is right? 🤔
If that is possible, wonder if it could sent through separate channels for a 5.1 setup ... 🤔

themaconeau
Автор

As you say, the heavy resource usage aspect can make this approach quite prohibitive. Other than that it is quite an elegant solution. Many cctv DVR systems (eg Hikvision) have a "channel 0" which basically does this on a hardware level (combines all the incoming video streams into a matrix output) BUT with very low power consumption. I'm guessing there must be some kind of hardware encoders out there (more-so on the chinese market perhaps?) that are designed specifically to take a configured HD rtsp stream and re-encode into several lower-quality sub-streams and do this for several input channels with the option of muxing them all into a a combined mosaic? Also something I'm very interested in and have spent many hours on. From what you said in the video, it sounds like you've already tried to do the mosaic encoding on a pi. Was that with the h264_omx onboard hardware encoder? I've only managed to get that to work with ffmpeg... perhaps getting vlc to play nice with h264_omx could be the subject of another interesting video, especially if that opens up the possibility of encoding these types of matrix video collages. Budget RPi DVR's anyone? XD

DimitriPappas
Автор

what kind of compute power would you need for say, 4 or 5 1920 x 1080 streams on the streaming machine?

sebastiaanstoffels
Автор

Exactly what I was looking for, but after several hours still no success. How to play the mosaic to the local host without multicast? Also, what specific settings in VLC are necessary for this to work. Haven't given up yet, but ...

garyshive
Автор

WOW! thanks for explaining the magic of rtp !!

aa_
Автор

I assume this should also work on a windows machine with pre-recorded TS files. I tried to set it up and adjusted the VML config a bit to point to the files instead of RTP streams but I dont get it to work. Anyone can advice here?

patrick.denessen
Автор

Where are the source RTP feeds from? I’d like to have a 2x2 or 3x3 with news running but so far I’m just using 4 Roku devices and it’s a pain in the butt 😂

JasonMeredith
Автор

is it possible to stream a cropped rtsp source into mosaic?

michelelodi
Автор

Very useful video.
Thanks a lot. Building my own mosaic now :-)

joir
Автор

How can we get the input video ? Great use of VLC - just learnt about cvlc - will definetely give it a try with IP camera streams. How powerful does the transcoding machine needs to be ?

madmaiike
Автор

Hello, good morning. thank you very much for your video. I have a question if you can help me. I want to set up a videowall with 4 monitors (2x2), in VLC I see that it has the option "Image Wall" in Preferences- Video- Splitters- Image Wall, there you can choose the number of monitors in columns and rows, but I can't get it to work. Please could you tell me if it is possible to configure it?
Thank you.

dhgiudice
Автор

Pretty cool. I could see using this at work with some security cameras.

honestbob
Автор

G'day bro, could this also be used on rtsp streams?
I'm wondering if it would be able to display 'n' streams from IP cameras, I know lots of people that are always asking about being able to have a 'remote' view on a TV of their cameras without resorting to bodges or android/ip boxes.
That and some smart TV's have or can install VLC :)

SilasHack