Page 1 of 1

Playing Two Video Tracks Simultaneously in the Same Window

Posted: 19 Feb 2022 04:44
by Heralthor
I have several videos with two video tracks, and I'd like to play both tracks side by side simultaneously. I've discovered that if I open the video file, it will play Track 1. I can then go to Video -> Video Track -> Track 2, which opens up the second track in a second window.

This is not ideal. Is there a way to play both video tracks in the same window? Is there also a way to arrange the two tracks and overlay them (say if I want a picture-in-picture type of setup)?

I would appreciate any insight the community can provide. Thanks!

Re: Playing Two Video Tracks Simultaneously in the Same Window

Posted: 19 Feb 2022 22:56
by unidan
Hi, you can use the mosaic stream filter in order to achieve this effect.

Unfortunately, there's no updated documentation for this (https://docs.videolan.me/vlc-user/3.0/e ... osaic.html) so the only resource currently is https://wiki.videolan.org/VLC_HowTo/Make_a_mosaic/.

Re: Playing Two Video Tracks Simultaneously in the Same Window

Posted: 26 Feb 2022 03:35
by Heralthor
I suppose that's one approach, but it seems like overkill. All I really need is something like this:

Image

Is there a simpler way to do it?

Re: Playing Two Video Tracks Simultaneously in the Same Window

Posted: 26 Feb 2022 08:27
by Rémi Denis-Courmont
The GUI does not support such a fringe use case. It already has more features than can be documented and remembered by a single person...

Again, you can do that with mosaic (but it's quite inefficient and awkward). Or you can implement your own window module.

Re: Playing Two Video Tracks Simultaneously in the Same Window

Posted: 26 Feb 2022 18:18
by Heralthor
It's too bad. If we can play two tracks in two windows, I imagine it would be trivial to play two tracks in one window.

What do you mean by a window module? I'd be willing to look into that more.

Also, if VLC just can't do this, are there other media players that can?

Re: Playing Two Video Tracks Simultaneously in the Same Window

Posted: 26 Feb 2022 21:26
by Rémi Denis-Courmont
1) I don't think it's not that simple.
2) I mean a VLC module with vout window capability.

Re: Playing Two Video Tracks Simultaneously in the Same Window

Posted: 28 Feb 2022 13:53
by Lotesdelere
Maybe GridPlayer is what you're looking for:
https://github.com/vzhd1701/gridplayer

It is based on VLC.