Page 1 of 1

Resize and position multiple VLC windows

Posted: 19 Nov 2019 10:29
by hermel
Hi,

I'm writing several scripts for managing multiple VLC windows (by telnet vlc cli commands),
and trying to open 4 different videos (with different resolutions) on 4 vlc instances.

The windows sizes should be equal, no matter the original video file resolution.
Also, the positions should be set to the 4 quarters of the screen (top left, top right, bottom left, bottom right).

I tried to use the flags:
video-x, video-y for position on screen
and flags:
width, height for window size.

I think the width / height doesn't work as documented.

Also, I'm not quite sure how to determine the sizes by the window size and not by the videos?

Any assitance would be appreciated :)

Re: Resize and position multiple VLC windows

Posted: 19 Nov 2019 15:17
by unidan
Hi, what version of VLC are your using first ? What do you plan to do with the windows ? There might be a better way to achieve this.

Re: Resize and position multiple VLC windows

Posted: 20 Nov 2019 08:34
by hermel
Hi, what version of VLC are your using first ? What do you plan to do with the windows ? There might be a better way to achieve this.
I'm using VLC 3.0.8.
The plan is to use the VLC telnet api in order to create an option for playing simultaneously and syncing 4 different videos.
The result would be a splitted screen with 4 windows and another external timeline manager bar (with play/pause/timeline seeker..) that controls the synced videos remotly by sending commands through telnet

Re: Resize and position multiple VLC windows

Posted: 20 Nov 2019 17:02
by unidan
Hi, is there a reason why you avoid VLM and the HTTP API interface then ? It seems to match your needs a lot better than RC telnet and multiple VLC instances.

Re: Resize and position multiple VLC windows

Posted: 21 Nov 2019 08:56
by hermel
Hi, is there a reason why you avoid VLM and the HTTP API interface then ? It seems to match your needs a lot better than RC telnet and multiple VLC instances.
Yes, I wrapped the telnet api by using a certain NodeJS package that is very convenient for developing over this API.

EDIT: If I will change the way my code works and use the VLM + HTTP API, is it possible to open several Instances of WEB VLC and insert them into HTML?
(If I could place the web VLCs inside HTML I could arrange them properly with some css).