Page 1 of 1

starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 13 Jul 2011 14:05
by Wolfson
Hello,

I have a question:
Is it possible to start two instances of the vlc-player simultaneosly? -> on two monitors
The target is to have 2 monitors connected to the same computer and each monitor shows one video. Both videos have exactely the same length and should be looped until stopped and should be synchron. To ensure that the videos are synchron I want to start them out of the command line if possible ;) Is there any way to do that?
I guess it is possible with a network and 3 computers, but I want to keep it as simple as possible...

Thanks in advance for every help!

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 13 Jul 2011 17:32
by VLC_help
netsync for sync
http://wiki.videolan.org/Documentation:Modules/netsync

and start vlc in batch file for videos

Code: Select all

start "first VLC" vlc.exe --video-x=10 first.avi start "second VLC" vlc.exe --video-x=2000 second.avi

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 13 Jul 2011 20:57
by Wolfson
hey thanks a lot for your help!

I could get a batch-file start the videos (it is the 1st time I've written a batch file). But honestly I don't really know how to synchronize them. They start one after the other. The link to "netsync" seems to me like I would need a network?! But I want to do all this with only one computer and two monitors connected ;) Is this possible? Could I for example just a some commands to the batch-file in order to start the two movies simultaneously?

And how could I get them running in a loop?

Thanks a lot in advance!

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 13 Jul 2011 23:55
by Wolfson
In the meanwhile I found a solution which is close to what I need:

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" --loop "d:\Videos\movie1.avi" --input-slave="d:\Videos\movie2.avi" PAUSE
The only problem that remains is that I have to manually drag the 2 windows with the mouse to the desired monitors and make them beeing in fullsize. This would not be a problem if I would have to do that ones, but as the loop continues the windows are in the start position again :(

-> does anyone knows a solution how I can tell the video to start in fullscreen mode on one monitor or on the second one?

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 14 Jul 2011 09:08
by Wolfson
I post the solution that I found in case somebody will look for the same possibility ;)

Open an editor, create a new file and save it as <Name>.bat
Then just insert the following:

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" --loop --fullscreen "d:\video1.avi" --input-slave="d:\video2.avi"
and of course replace the path and filenames "d:\video1.avi" with yours :)

It seems to only work with *.avi videos, but it's perfectly synchronized :mrgreen:

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 14 Jul 2011 17:08
by VLC_help
You can use netsync on loopback address, eg. 127.0.0.1

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 15 Nov 2011 03:39
by pearlvr4
Hello,

VLC is great. I have been able to get two different videos synchronized on one pc, and maximized on two different monitors. The only thing I can't seem to fix is the second monitor window always shows the top title/menu bar. The primary one maximizes hiding all but the video. Is there a setting that I am missing?

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 15 Nov 2011 16:07
by VLC_help
You can run with dummy interface(-I dummy) and without decorations in case you don't want any additional stuff

Code: Select all

--video-deco, --no-video-deco Window decorations (default enabled) VLC can avoid creating window caption, frames, etc... around the video, giving a "minimal" window. (default enabled)

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 15 Nov 2011 19:46
by pearlvr4
Thank you for your help. I will try this when I get home tonight. I do have one other question. Through the advanced play tab I was able to get the 2'nd video to synchronize (I noticed as slave.) Within the choice of the 2'nd video it has another option to synchronize (which I assume allows a 3'rd video,etc...) After selecting a 3'rd video I hit play, but it only opens the 1'st and 2'ndI videos, but not the 3'rd. Is the 3'rd synchronized video an option? If it is is there something else I can do? Thanks for your time.

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 16 Nov 2011 15:49
by VLC_help
AFAIK one can't chain slave-inputs.

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 09 Jan 2012 23:01
by lolz
Hello,

anyone a clue how to force vlc to play video1 on main display and video2 on 2nd display ?

thx

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 10 Jan 2012 17:17
by VLC_help
Single vlc.exe or multiple ones?

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 02 Feb 2012 23:19
by thebroll
I was also wondering if I can force vlc to play video 1 on main display and video 2 on 2nd display using one instance of vlc.exe. I can drag them over and get them to play in sync but after one or two loops they start to reorient themselves. Any suggestions? Also wondering if we have any other forum topic that shows the batch file needed to have two separate instances of vlc.exe running and sync'd. Thanks in advance.

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 03 Feb 2012 19:16
by VLC_help
Netsync might work better in your case.

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 12 Oct 2012 17:27
by giggleface
i tried this and this works

Code: Select all

start "first VLC" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" filename1.mp4 --no-qt-fs-controller --qt-start-minimized --qt-fullscreen-screennumber=1 --video-x=0 --video-y=0 --no-embedded-video --fullscreen --video-on-top --no-video-title-show start "second VLC" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" filename2.mp4 --no-qt-fs-controller --qt-start-minimized --qt-fullscreen-screennumber=2 --video-x=1030 --video-y=100 --no-embedded-video --fullscreen --video-on-top --no-video-title-show

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 09 Apr 2013 19:58
by Da Mann
I am looking to do something similar for a conference. 1 pc running two iterations of VLC each running a separate video that needs to be synced on two monitors. I'd like to set them up in advance and use a bat file or command line to fire both at the same time... Any thoughts?

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 08 Mar 2016 11:06
by GogolBordello
start "first VLC" "C:\Program Files\VideoLAN\VLC\vlc.exe" C:\Users\acer\Desktop\a.mov --no-embedded-video --directx-device="\\.\DISPLAY1" --fullscreen --loop
start "second VLC" "C:\Program Files\VideoLAN\VLC\vlc.exe" C:\Users\acer\Desktop\b.mov --no-embedded-video --directx-device="\\.\DISPLAY2" --fullscreen --loop

it will distribute the Clips on each Display and play fullscreen

Re: starting 2 videos on 2 monitors (1 PC) simultaneously

Posted: 10 Jun 2016 11:13
by pmi_apv
Did anyone tried to such thing on Windows 10? I need to run three insctances of VLC on three projectors connected to one PC. I prepared such script:

Code: Select all

start "first VLC" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\Users\User1\Desktop\Mov_v001.mp4" --no-qt-fs-controller --qt-start-minimized --qt-fullscreen-screennumber=1 --video-x=0 --video-y=0 --no-embedded-video --fullscreen --video-on-top --no-video-title-show start "second VLC" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\Users\User1\Desktop\Mov_v002.mp4" --no-qt-fs-controller --qt-start-minimized --qt-fullscreen-screennumber=2 --video-x=2000 --video-y=100 --no-embedded-video --fullscreen --video-on-top --no-video-title-show start "third VLC" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\Users\User1\Desktop\Mov_v003.mp4" --no-qt-fs-controller --qt-start-minimized --qt-fullscreen-screennumber=3 --video-x=4000 --video-y=100 --no-embedded-video --fullscreen --video-on-top --no-video-title-show
When I ran it on Windows 7 it worked fine, but on Windows 10 x64 with Matrox M9148 LP PCIe x16 card, all VLC windows are on one screen. Did anyone had such problem?