Page 1 of 1

How to Duplicate 1 souce for multiply windows on same display

Posted: 09 Mar 2015 18:03
by Wiljan
I have 1 source file 1920x1080 where I have to only show different parts of the video (eg 200x200) in small windows on the same screen.
controlled from cmdline.

What I do right now are to multicast the file
vlc E:\media\test.mpg --loop --sout=udp://239.0.0.1:1234

Then I can run 3 x multicast reciever
VLC.exe udp://@239.0.0.1:1234 --width=270 --height=540 --video-x=570 --video-y=270 --no-autoscale --no-embedded-video --no-video-deco --loop --video-on-top --video-filter=croppadd --croppadd-croptop=100 --croppadd-cropleft=300
VLC.exe udp://@239.0.0.1:1234 --width=270 --height=540 --video-x=840 --video-y=270 --no-autoscale --no-embedded-video --no-video-deco --loop --video-on-top --video-filter=croppadd --croppadd-croptop=200
VLC.exe udp://@239.0.0.1:1234 --width=270 --height=540 --video-x=1110 --video-y=270 --no-autoscale --no-embedded-video --no-video-deco --loop --video-on-top --video-filter=croppadd --croppadd-croptop=300

And by the location --video-x=570 --video-y=270 set where on the screen I do want the window and in the crop I can define what part of the source to show

It does work.... but I need 20 windows and this use a lot of CPU (to much) to decode all the streams
So there must be a way to duplicate the file 20 times on the same screen?

Please advise

Thank you

Re: How to Duplicate 1 souce for multiply windows on same display

Posted: 09 Mar 2015 20:39
by Rémi Denis-Courmont
You can duplicate the video with the clone video splitter. But you cannot position and duplicate the video from the CLI at the same time.

Re: How to Duplicate 1 souce for multiply windows on same display

Posted: 10 Mar 2015 11:47
by Wiljan
Thank you for feedback

I tried vlc E:\media\test.mpg --loop --video-filter=clone --clone-vout-list "caca,glx" --clone-count 2
And qoute som combination of this, but I never got more than 1 output.

I did test on VLC 2.1.5 on Win7

Could you please show the cmdline for this?

Re: How to Duplicate 1 souce for multiply windows on same display

Posted: 10 Mar 2015 13:37
by Rémi Denis-Courmont
splitter, not filter.

Re: How to Duplicate 1 souce for multiply windows on same display

Posted: 10 Mar 2015 20:04
by Wiljan
Got it to work, thank you.

Have testet with Clone, Duplicate and Wall all same result
You are right I can't position and crop each window individualy :(

Do you have any idea other than the way I do with 1 stream and many decoders?

Re: How to Duplicate 1 souce for multiply windows on same display

Posted: 10 Mar 2015 22:31
by Rémi Denis-Courmont
I don´t know any simple solution.