SMPlayer multiple window control

Forum to talk about the development of SMPlayer (code, patches...).

SMPlayer multiple window control

Postby KRSESQ » Thu Sep 08, 2016 7:45 pm

Let me preface all of this by saying I know nothing about coding, not for want of trying. So any attempt to walk me through making specific source-code changes would require a LOT of hand-holding. It would be faster and easier for a knowledgeable individual to make the necessary changes oneself.

I have built a new Win10 box for a local college planetarium to control up to four independent monitors and output up to four simultaneous video streams, one to each monitor (each monitor being a projector projecting onto a planetarium dome).

I used Win10 for the sake of familiarity for both students and faculty and for the broadest possible hardware and software support since I thought we might be asking it to perform some off-the-wall tasks. It's an Intel i7 system with 16 GB RAM. Video card is a Visiontek/ATI with 2 GB RAM and six mini-displayport outputs. It is not connected to a network.

SMPlayer does most of what we need very well. We can have four different player windows open, each playing a different mpeg video and sending that video in full screen to a specific monitor. We can have the four player windows open on a hidden reference monitor and go along the line and click play on each one in rapid succession, so they can be kept within a few seconds of synchronized (frame-accurate sync is not needed at this point but eventually will be). But I think you will agree this is a cumbersome and accident prone process.

What we need is the ability to "slave" these four windows to a single "master" controller, so that all four videos can be played, paused, reversed, returned to start, fullscreened, etc. SIMULTANEOUSLY.

Also, the ability to save that configuration of player windows, video files, and monitors onto the playlist to speed loading would be very useful.

On the other hand, if these features already exist as dos shell commands, then they would have to be written into a batch file that is relatively easy to edit and run. If such a batch file can provide the ability to use the various keyboard commands for all video playback functions in all playback windows then a tutorial would be most welcome.

Then again I might be asking for a lot more than I realize.

Thank you in advance

Kevin
KRSESQ
 
Posts: 2
Joined: Fri Aug 05, 2016 11:59 pm

Re: SMPlayer multiple window control

Postby rvm » Thu Sep 08, 2016 9:13 pm

SMPlayer hasn't been designed to control several windows at the time.

Maybe you can do this by calling mplayer directly. You can create a batch file that lauches several instances of mplayer, each on a different screen, opening the same video (or a different one) and set the starting time.
rvm
Site Admin
 
Posts: 2719
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: SMPlayer multiple window control

Postby KRSESQ » Sat Sep 17, 2016 2:57 pm

rvm wrote:SMPlayer hasn't been designed to control several windows at the time.


I guess I'm wondering what would be involved in adding this capability? I envisioned something like a "wrapper" or some kind of "container" that would house the multiple SMPlayer instances and override their independent control sets.

But as I said, I'm not a coder so I don't know how this might be done or what kind of changes to the base program would be involved.

Maybe you can do this by calling mplayer directly. You can create a batch file that lauches several instances of mplayer, each on a different screen, opening the same video (or a different one) and set the starting time.


The biggest problem with batch files is that this computer will ultimately be left in the hands of users in whom I have zero confidence in their ability to use batch files.

Another open-source program we are testing is Bino 3d ( http://bino3d.org/ ). Bino can control two video streams simultaneously, but ONLY two, since Bino is designed for 3d output. With that one, I wonder if it might be possible to reprogram Bino to think the viewer has four eyes? (But this isn't the Bino forum :) )
KRSESQ
 
Posts: 2
Joined: Fri Aug 05, 2016 11:59 pm

Re: SMPlayer multiple window control

Postby rvm » Sat Sep 17, 2016 9:49 pm

Well, SMPlayer includes support for mpris2, which allows the application to be controlled remotely by other applications. You can open a file, play/pause, seek... I guess you can open several instances of SMPlayer and send them commands to all of them (untested).

https://specifications.freedesktop.org/ ... ec/latest/

However support for mpris2 has been disabled in the latest version for Windows with Qt 5. (You need version 16.4, with Qt 4). And you will probably need to install dbus on Windows. https://www.freedesktop.org/wiki/Software/dbus/
rvm
Site Admin
 
Posts: 2719
Joined: Wed Dec 23, 2009 1:25 am
Location: España


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest