Difference between revisions of "VLC HowTo/Make a mosaic"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Reverted edits by 1149486730 (Talk); changed back to last version by Dionoea)
Line 198: Line 198:
 
           Specifies the deinterlace module to use.
 
           Specifies the deinterlace module to use.
 
</pre>
 
</pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<div  style="display:none">
 
[We are delicate. We do not delete your content.]
 
[l_sp24]
 
 
 
[http://blog.moddingplanet.it/?w=formalpromdresses Formal Prom Dresses]
 
[http://blog.moddingplanet.it/?w=sexypromdress Sexy Prom Dress]
 
[http://blog.moddingplanet.it/?w=cocktaildresses cocktail dresses]
 
[http://flyfone.blox.pl/resource/flyfonevoip.htm flyfone voip]
 
[http://blog.moddingplanet.it/?w=hooterscasinolas Hooters Casino Las Vegas]
 
[http://blog.moddingplanet.it/?w=grandcasinomille grand casino mille lacs]
 
[http://blog.moddingplanet.it/?w=lasvegascasino las vegas casino coupons]
 
[http://blog.moddingplanet.it/?w=onlinepokeraide online poker aide]
 
 
[http://blog.moddingplanet.it/?w=rtgcasinobonus rtg casino bonus]
 
[http://blog.moddingplanet.it/?w=grandcasinocoushat grand casino coushatta]
 
[http://blog.moddingplanet.it/?w=grandcasinohinckle grand casino hinckley]
 
[http://blog.moddingplanet.it/?w=isleofcapricasino isle of capri casino]
 
[http://blog.moddingplanet.it/?w=mohegansuncasino mohegan sun casino]
 
[http://blog.moddingplanet.it/?w=palacasino pala casino]
 
[http://blog.moddingplanet.it/?w=roulettewheels roulette wheels]
 
[http://blog.moddingplanet.it/?w=winstarcasino winstar casino]
 
[http://blog.moddingplanet.it/?w=cheappromdresses Cheap Prom Dresses]
 
[http://blog.moddingplanet.it/?w=informalweddingdre informal wedding dresses]
 
[http://blog.moddingplanet.it/?w=oscardresses oscar dresses]
 
[http://blog.moddingplanet.it/?w=eveninggowns evening gowns]
 
 
[http://vvvvvv.blox.pl/resource/throat_pokers.htm throat pokers]
 
[http://vvvvvv.blox.pl/resource/online_poker_assistant.htm online poker assistant]
 
[http://vvvvvv.blox.pl/resource/online_poker_tracker.htm online poker tracker]
 
[http://vvvvvv.blox.pl/resource/online_poker_aide.htm online poker aide]
 
[http://vvvvvv.blox.pl/resource/party_poker_bonus.htm party poker bonus]
 
[http://vvvvvv.blox.pl/resource/party_poker_bonus_code.htm party poker bonus code]
 
[http://vvvvvv.blox.pl/resource/bonus_code_party_poker.htm bonus code party poker]
 
[http://vvvvvv.blox.pl/resource/bonus_code_deposit_party_poker.htm bonus code deposit party poker]
 
[http://vvvvvv.blox.pl/resource/party_poker_bonus_codes.htm party poker bonus codes]
 
[http://vvvvvv.blox.pl/resource/carnival_cruises.htm carnival cruises]
 
[http://vvvvvv.blox.pl/resource/carnival_game_rentals.htm carnival game rentals]
 
[http://vvvvvv.blox.pl/resource/fuzzydice.htm fuzzy dice]
 
[http://vvvvvv.blox.pl/resource/bingodaubers.htm bingo daubers]
 
[http://vvvvvv.blox.pl/resource/bingoblowers.htm bingo blowers]
 
[http://vvvvvv.blox.pl/resource/motor_scooters.htm motor scooters]
 
[http://vvvvvv.blox.pl/resource/mini_harley_chopper_scooter.htm mini harley chopper scooter]
 
[http://blog.moddingplanet.it/?w=fakerolex fake rolex]
 
 
[http://blog.moddingplanet.it/?w=bextravioxx bextra vioxx]
 
[http://blog.moddingplanet.it/?w=zocor zocor]
 
[http://blog.moddingplanet.it/?w=zithromax zithromax]
 
[http://blog.moddingplanet.it/?w=bextralawyernew bextra lawyer new hampshire]
 
[http://blog.moddingplanet.it/?w=akanesoma akane soma]
 
[http://blog.moddingplanet.it/?w=kyosoma kyo soma]
 
[http://blog.moddingplanet.it/?w=prozacnation prozac nation]
 
[http://blog.moddingplanet.it/?w=prozacwithdrawal prozac withdrawal]
 
[http://blog.moddingplanet.it/?w=simslots sim slots]
 
[http://blog.moddingplanet.it/?w=pachisloslotmachine pachislo slot machines]
 
[http://blog.moddingplanet.it/?w=programcherries program cherries wild slot machine]
 
[http://blog.moddingplanet.it/?w=slotcarracing slot car racing]
 
[http://blog.moddingplanet.it/?w=hoslotcars ho slot cars]
 
 
[http://blog.moddingplanet.it/?w=bingocages bingo cages]
 
[http://blog.moddingplanet.it/?w=bingodaubers bingo daubers]
 
[http://blog.moddingplanet.it/?w=bingoblowers bingo blowers]
 
[http://blog.moddingplanet.it/?w=bingobags bingo bags]
 
[http://blog.moddingplanet.it/?w=baccaratcrystal baccarat crystal]
 
[http://blog.moddingplanet.it/?w=nexium nexium]
 
[http://blog.moddingplanet.it/?w=onlinepaigowpoker online pai gow poker]
 
[http://blog.moddingplanet.it/?w=leighkeno leigh keno]
 
 
[http://www.privetparis.com/blog/tramadol50mg/ tramadol 50mg]
 
[http://www.privetparis.com/blog/tramadolsaturdaydelivery/ tramadol saturday delivery]
 
[http://www.privetparis.com/blog/tramadoler/ tramadol er]
 
[http://www.privetparis.com/blog/tramadolsales/ tramadol sales]
 
[http://www.privetparis.com/blog/tramadolhcl50mg/ tramadol hcl 50 mg]
 
[http://www.privetparis.com/blog/120tramadoll/ 120 tramadol]
 
[http://www.privetparis.com/blog/acetaminophenhclpartramadol/ acetaminophen hcl par tramadol]
 
[http://blog.moddingplanet.it/?w=plussizemother plus size mother of the bride dresses]
 
[http://blog.moddingplanet.it/?w=cheapflowergirl cheap flower girl dresses]
 
[http://blog.moddingplanet.it/?w=discountflowergirl discount flower girl dresses]
 
[http://blog.moddingplanet.it/?w=infantflowergirl infant flower girl dresses]
 
[http://blog.moddingplanet.it/?w=bridalflowergirl bridal flower girl dresses]
 
 
[http://blog.moddingplanet.it/?w=discountbridesmaid discount bridesmaid dresses]
 
[http://blog.moddingplanet.it/?w=juniorbridesmaid junior bridesmaid dresses]
 
[http://blog.moddingplanet.it/?w=cheapbridesmaid cheap bridesmaid dresses]
 
[http://blog.moddingplanet.it/?w=plussizebridesmaid plus size bridesmaid dresses]
 
[http://blog.moddingplanet.it/?w=weddingbridesmaid wedding bridesmaid dresses]
 
[http://blog.moddingplanet.it/?w=maternitybridesmaid maternity bridesmaid dresses]
 
 
[http://vvvvvv.blox.pl/resource/Rascal_Flatts_Me_And_My_Gang.htm Rascal Flatts Me And My Gang]
 
[http://vvvvvv.blox.pl/resource/NeYo__In_My_Own_Words.htm Ne-Yo  In My Own Words]
 
[http://vvvvvv.blox.pl/resource/Kelly_Clarkson_Breakaway.htm Kelly Clarkson Breakaway]
 
 
[http://blog.moddingplanet.it/?w=biaxin biaxin]
 
[http://blog.moddingplanet.it/?w=biaxinxl biaxin xl]
 
[http://blog.moddingplanet.it/?w=atenololsideeffect atenolol side effects]
 
[http://blog.moddingplanet.it/?w=flexeril flexeril]
 
[http://blog.moddingplanet.it/?w=diflucan diflucan]
 
[http://blog.moddingplanet.it/?w=glucophage glucophage]
 
[http://blog.moddingplanet.it/?w=tenuatedospan tenuate dospan]
 
[http://blog.moddingplanet.it/?w=zanaflex zanaflex]
 
[http://mysite.com.ua/xdem8264/pagesxdem8264/1_1.html cheap tramadol] 
 
[http://mysite.com.ua/xdem8264/pagesxdem8264/2_1.html tramadol online] 
 
[http://mysite.com.ua/xdem8264/pagesxdem8264/1_2.html buy xanax online] 
 
[http://mysite.com.ua/xdem8265/pagesxdem8265/1_1.html Buy Viagra Online] 
 
[http://mysite.com.ua/xdem8265/pagesxdem8265/2_1.html Cheap Viagra]
 
[http://blog.moddingplanet.it/?w=acyclovirzovirax acyclovir zovirax]
 
[http://blog.moddingplanet.it/?w=cyclobenzaprine cyclobenzaprine hcl]
 
[http://blog.moddingplanet.it/?w=clonazepamside clonazepam side effects]
 
[http://blog.moddingplanet.it/?w=testosteronecream testosterone cream]
 
[http://blog.moddingplanet.it/?w=celebrexvsvioxx celebrex vs vioxx]
 
[http://kilobax.eblog.pl/ infant flower girl dresses]
 
[http://www.junior-bridesmaid-dresses.eblog.pl/ junior bridesmaid dresses]
 
 
[http://blog.moddingplanet.it/?w=eroticgamesstrip erotic games strip poker]
 
[http://blog.moddingplanet.it/?w=strippokerstories strip poker stories]
 
[http://blog.moddingplanet.it/?w=adultstrippoker adult strip poker]
 
[http://blog.moddingplanet.it/?w=claypokerchips clay poker chips]
 
[http://blog.moddingplanet.it/?w=woodenpokerchip wooden poker chip cases]
 
[http://blog.moddingplanet.it/?w=custompokerchips custom poker chips]
 
[http://blog.moddingplanet.it/?w=pokerchiptricks poker chip tricks]
 
[http://blog.moddingplanet.it/?w=custommadepoker custom made poker chips]
 
[http://blog.moddingplanet.it/?w=throatpokers throat pokers]
 
[http://blog.moddingplanet.it/?w=pokerhandrankings poker hand rankings]
 
[http://blog.moddingplanet.it/?w=paigowpoker pai gow poker]
 
[http://blog.moddingplanet.it/?w=caribbeanstudpoker caribbean stud poker]
 
[http://blog.moddingplanet.it/?w=onlinepokerassista online poker assistant]
 
[http://blog.moddingplanet.it/?w=onlinepokertracker online poker tracker]
 
</div>
 

Revision as of 09:42, 5 June 2006

VLC mosaic howto

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.

Starting with VLC 0.8.5-test2, the http interface features a "Mosaic wizard". You might want to use it if you have no knowledge of VLC command line usage.

mosaic1.png

Other neat examples :

12 video mosaic

20 video mosaic

20 video mosaic

Step 0

Read the VLC streaming howto (chapters 3 and 5 concerning command line and vlm usage in VLC) : http://videolan.org/doc/

Step 1

Get VLC 0.8.4-test1 or newer and install it on your computer.

Step 2

You now have to get a background image. Many image formats are supported (JPEG, PNG ...).

You can also test it with VLC to see if it displays locally :

./vlc --fake-file background.png --fake-aspect-ratio "4:3" fake:

Step 3

You now need to configure VLC to get the 3 source streams and blend them on the background image.

The vlm configuration file looks like :

new channel1 broadcast enabled                                                       
setup channel1 input udp://@239.255.2.60:1234                                        
setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=144,width=180},select=video,dst=bridge-out{id=1},select=audio}                                                         
                                                                                
new channel2 broadcast enabled
setup channel2 input udp://@239.255.10.200:1234
setup channel2 output #duplicate{dst=mosaic-bridge{id=2,height=144,width=180},select=video,dst=bridge-out{id=2},select=audio}                                                         

new channel3 broadcast enabled
setup channel3 input udp://@239.255.6.9:1234
setup channel3 output #duplicate{dst=mosaic-bridge{id=3,height=144,width=180},select=video,dst=bridge-out{id=3},select=audio}                                                         

new background broadcast enabled
setup background input fake:
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="mosaic"}

control background play
control channel1 play
control channel2 play
control channel3 play

Note that the source streams are network streams, which is likely to be the case if you're considering doing a mosaic.

Step 4

And now, the right command to launch vlc :

./vlc --color -I telnet --vlm-conf ../mosaic.vlm.conf --ttl 12 \
 --fake-file background.png --fake-aspect-ratio "4:3" \
 --mosaic-width 360 --mosaic-height 288 --udp-caching 800 \
 --mosaic-keep-picture --mosaic-rows 2 --mosaic-cols 2 \
 --mosaic-position 1 --mosaic-order 1,2,3

Small Diagram That Might Help

Small Diagram That Might Help

Appendix

Mosaic video sub filter

The full set of mosaic commands is :

 Mosaic video sub filter
      --mosaic-alpha <integer>   Alpha blending
          Alpha blending (0 -> 255). Default is 255
      --mosaic-height <integer>  Height in pixels
          Height in pixels
      --mosaic-width <integer>   Width in pixels
          Width in pixels
      --mosaic-align {0 (Center), 1 (Left), 2 (Right), 4 (Top), 8 (Bottom), 5 (Top-Left), 6 (Top-Right), 9 (Bottom-Left), 10 (Bottom-Right)}
                                 Mosaic alignment
          Mosaic alignment
      --mosaic-xoffset <integer> Top left corner x coordinate
          Top left corner x coordinate
      --mosaic-yoffset <integer> Top left corner y coordinate
          Top left corner y coordinate
      --mosaic-vborder <integer> Vertical border width in pixels
          Vertical border width in pixels
      --mosaic-hborder <integer> Horizontal border width in pixels
          Horizontal border width in pixels
      --mosaic-position {0 (auto), 1 (fixed)}
                                 Positioning method
          Positioning method. auto : automatically
          choose the best number of rows and columns.
          fixed : use the user-defined number of rows
          and columns.
      --mosaic-rows <integer>    Number of rows
          Number of rows
      --mosaic-cols <integer>    Number of columns
          Number of columns
      --mosaic-keep-aspect-ratio, --no-mosaic-keep-aspect-ratio
                                 Keep aspect ratio when resizing (default
                                 disabled)
          Keep aspect ratio when resizing (default
          disabled)
      --mosaic-keep-picture, --no-mosaic-keep-picture
                                 Keep original size (default disabled)
          Keep original size (default disabled)
      --mosaic-order <string>    Order as a comma separated list of
                                 picture-id(s)
          Order as a comma separated list of
          picture-id(s)
      --mosaic-delay <integer>   Delay
          Pictures coming from the picture video
          outputs will be delayed accordingly (in
          milliseconds). For high values you will need
          to raise file-caching and others.

Mosaic bridge stream output

The full set of mosaic bridge stream output commands is :

 Mosaic bridge stream output
      --sout-mosaic-bridge-id <string>
                                 ID
          Specify an identifier string for this
          subpicture
      --sout-mosaic-bridge-width <integer>
                                 Video width
          Allows you to specify the output video width.
      --sout-mosaic-bridge-height <integer>
                                 Video height
          Allows you to specify the output video height.

Bridge stream output

The full set of bridge stream output commands is :

 Bridge stream output
      --sout-bridge-out-id <integer>
                                 ID
          Specify an identifier integer for this
          elementary stream
      --sout-bridge-in-delay <integer>
                                 Delay
          Pictures coming from the picture video
          outputs will be delayed accordingly (in
          milliseconds, >= 100 ms). For high values you
          will need to raise file-caching and others.
      --sout-bridge-in-id-offset <integer>
                                 ID Offset
          Offset to add to the stream IDs specified in
          bridge_out to obtain the stream IDs bridge_in
          will register.

Fake input module

The full set of the fake input options is :

 Fake video decoder
      --fake-file <string>       Image file
          Path of the image file when using the fake
          input.
      --fake-width <integer>     Video width
          Allows you to specify the output video width.
      --fake-height <integer>    Video height
          Allows you to specify the output video height.
      --fake-keep-ar, --no-fake-keep-ar
                                 Keep aspect ratio (default disabled)
          If selected, width and height will be
          considered as maximum values. (default
          disabled)
      --fake-aspect-ratio <string>
                                 Background aspect ratio
          Aspect ratio of the image file (4:3, 16:9).
          Default is square pixels.
      --fake-deinterlace, --no-fake-deinterlace
                                 Deinterlace video (default disabled)
          Allows you to deinterlace the image after
          loading. (default disabled)
      --fake-deinterlace-module {deinterlace,ffmpeg-deinterlace}
                                 Deinterlace module
          Specifies the deinterlace module to use.