<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Francisco21</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Francisco21"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Francisco21/"/>
	<updated>2026-11-04T17:17:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Make_a_mosaic&amp;diff=17073</id>
		<title>VLC HowTo/Make a mosaic</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Make_a_mosaic&amp;diff=17073"/>
		<updated>2010-09-17T07:47:13Z</updated>

		<summary type="html">&lt;p&gt;Francisco21: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto| set up a mosaic of a few videos or stream like a TV portal}}&lt;br /&gt;
&lt;br /&gt;
==VLC mosaic howto==&lt;br /&gt;
&lt;br /&gt;
This is a small example about how to use {{VLC}} to create a mosaic. What we basically want is a video mosaic mixing 3 video channels (channels 1, 2 and 3) on a background image (background.png) and streaming the resulting video on the network. Note that we will also be streaming the 3 sound tracks from channels 1, 2 and 3 in the same mpeg-ts stream.&lt;br /&gt;
&lt;br /&gt;
Starting with VLC 0.8.5-test2, the http interface features a &amp;quot;Mosaic wizard&amp;quot;. You might want to use it if you have no knowledge of VLC command line usage.&lt;br /&gt;
&lt;br /&gt;
http://people.via.ecp.fr/~dionoea/videolan/mosaic1.png&lt;br /&gt;
&lt;br /&gt;
Other neat examples :&lt;br /&gt;
&lt;br /&gt;
[http://people.via.ecp.fr/~dionoea/videolan/mosaic2.jpg 12 video mosaic]&lt;br /&gt;
&lt;br /&gt;
[http://people.via.ecp.fr/~dionoea/videolan/mos1.png 20 video mosaic]&lt;br /&gt;
&lt;br /&gt;
[http://people.via.ecp.fr/~dionoea/videolan/mos2.png 20 video mosaic]&lt;br /&gt;
&lt;br /&gt;
===Step 0===&lt;br /&gt;
&lt;br /&gt;
Read the VLC streaming howto (chapters 3 and 5 concerning command line and vlm usage in VLC) : http://videolan.org/doc/&lt;br /&gt;
&lt;br /&gt;
===Step 1===&lt;br /&gt;
&lt;br /&gt;
Get VLC 0.8.4-test1 or newer and install it on your computer.&lt;br /&gt;
&lt;br /&gt;
===Step 2===&lt;br /&gt;
&lt;br /&gt;
You now have to get a background image. Many image formats are supported (JPEG, PNG ...).&lt;br /&gt;
&lt;br /&gt;
You can also test it with VLC to see if it displays locally :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./vlc --fake-file background.png --fake-aspect-ratio &amp;quot;4:3&amp;quot; fake:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In 0.9.6&amp;lt; on windows and linux the arrangement and addition of the // must be included.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vlc.exe fake:// --fake-file background.png --fake-aspect-ratio &amp;quot;4:3&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Step 3===&lt;br /&gt;
&lt;br /&gt;
You now need to configure VLC to get the 3 source streams and blend them on the background image.&lt;br /&gt;
&lt;br /&gt;
The vlm configuration file looks like :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
new channel1 broadcast enabled                                                       &lt;br /&gt;
setup channel1 input udp://@239.255.2.60:1234                                        &lt;br /&gt;
setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=144,width=180},select=video,dst=bridge-out{id=1},select=audio}                                                         &lt;br /&gt;
                                                                                &lt;br /&gt;
new channel2 broadcast enabled&lt;br /&gt;
setup channel2 input udp://@239.255.10.200:1234&lt;br /&gt;
setup channel2 output #duplicate{dst=mosaic-bridge{id=2,height=144,width=180},select=video,dst=bridge-out{id=2},select=audio}                                                         &lt;br /&gt;
&lt;br /&gt;
new channel3 broadcast enabled&lt;br /&gt;
setup channel3 input udp://@239.255.6.9:1234&lt;br /&gt;
setup channel3 output #duplicate{dst=mosaic-bridge{id=3,height=144,width=180},select=video,dst=bridge-out{id=3},select=audio}                                                         &lt;br /&gt;
&lt;br /&gt;
new background broadcast enabled&lt;br /&gt;
setup background input fake:&lt;br /&gt;
setup background output #transcode{sfilter=mosaic,vcodec=mp2v,vb=10000,scale=1}:bridge-in{delay=400,id-offset=100}:standard{access=udp,mux=ts,url=239.255.12.42,sap,name=&amp;quot;mosaic&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
control background play&lt;br /&gt;
control channel1 play&lt;br /&gt;
control channel2 play&lt;br /&gt;
control channel3 play&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the source streams are network streams, which is likely to be the case if you&#039;re considering doing a mosaic.&lt;br /&gt;
&lt;br /&gt;
===Step 4===&lt;br /&gt;
&lt;br /&gt;
And now, the right command to launch vlc :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./vlc --color -I telnet --vlm-conf ../mosaic.vlm.conf --ttl 12 \&lt;br /&gt;
 --fake-file background.png --fake-aspect-ratio &amp;quot;4:3&amp;quot; \&lt;br /&gt;
 --mosaic-width 360 --mosaic-height 288 --udp-caching 800 \&lt;br /&gt;
 --mosaic-keep-picture --mosaic-rows 2 --mosaic-cols 2 \&lt;br /&gt;
 --mosaic-position 1 --mosaic-order 1,2,3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other examples ==&lt;br /&gt;
&lt;br /&gt;
=== Dual webcam with alphamask ===&lt;br /&gt;
&lt;br /&gt;
http://people.videolan.org/~dionoea/mosaic/dual-webcam.png&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;new isight broadcast&lt;br /&gt;
setup isight input v4l2:///dev/video0:width=320:height=240:audio-method=0&lt;br /&gt;
setup isight option v4l2-brightness=90&lt;br /&gt;
setup isight output #mosaic-bridge{chroma=YUVA,vfilter=alphamask{mask=../mask.png},width=320,height=240}&lt;br /&gt;
setup isight enabled&lt;br /&gt;
&lt;br /&gt;
new logitech broadcast&lt;br /&gt;
setup logitech input v4l2:///dev/video1:width=640:height=480:audio-method=0&lt;br /&gt;
setup logitech output #transcode{vcodec=mp4v,vb=1024,sfilter=&amp;quot;mosaic:marq{marquee=&#039;VLC dual webcam setup&#039;,position=8}&amp;quot;}:bridge-in:display&lt;br /&gt;
setup logitech enabled&lt;br /&gt;
&lt;br /&gt;
new audio broadcast enabled&lt;br /&gt;
setup audio input v4l:///dev/dsp1&lt;br /&gt;
setup audio output #transcode{acodec=mp4a,ab=128}:bridge-out&lt;br /&gt;
&lt;br /&gt;
control isight play&lt;br /&gt;
#control audio play&lt;br /&gt;
control logitech play&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then launch it with:&lt;br /&gt;
 vlc --vlm-conf ../dual-webcam.conf --no-media-library --plugin-path modules -v --no-video-title --mosaic-keep-picture&lt;br /&gt;
&lt;br /&gt;
The mask.png file is used to set transparency values on the isight camera (uses the png alpha plane). An example file to use is available at http://people.videolan.org/~dionoea/mosaic/.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [http://people.via.ecp.fr/~dionoea/videolan/mosaic-diagram.png Small Diagram That Might Help]&lt;br /&gt;
* [http://people.videolan.org/~dionoea/mosaic/ VLC Mosaic related resources]&lt;br /&gt;
* [[MosaicExampleSetup | Example set-up of conference web-streaming with two grabber cards]]&lt;br /&gt;
&lt;br /&gt;
==Appendix==&lt;br /&gt;
* [[Documentation:Modules/mosaic]]&lt;br /&gt;
* [[Documentation:Modules/mosaic-bridge]]&lt;br /&gt;
* [[Documentation:Modules/bridge-out]]&lt;br /&gt;
* [[Documentation:Modules/bridge-in]]&lt;br /&gt;
===Mosaic specific video filters===&lt;br /&gt;
* [[Documentation:Modules/alphamask]]&lt;br /&gt;
* [[Documentation:Modules/bluescreen]]&lt;br /&gt;
&lt;br /&gt;
*[http://www.unbeatable.co.uk/pages/Electronics/TV-and-Video/Flat-Panel-Televisions/&#039;&#039;&#039;lcd tv&#039;&#039;&#039;]&lt;/div&gt;</summary>
		<author><name>Francisco21</name></author>
	</entry>
</feed>