Playing Two Video Tracks Simultaneously in the Same Window

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Heralthor
New Cone
New Cone
Posts: 8
Joined: 19 Feb 2022 04:39

Playing Two Video Tracks Simultaneously in the Same Window

Postby Heralthor » 19 Feb 2022 04:44

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!

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Playing Two Video Tracks Simultaneously in the Same Window

Postby unidan » 19 Feb 2022 22:56

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/.

Heralthor
New Cone
New Cone
Posts: 8
Joined: 19 Feb 2022 04:39

Re: Playing Two Video Tracks Simultaneously in the Same Window

Postby Heralthor » 26 Feb 2022 03:35

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playing Two Video Tracks Simultaneously in the Same Window

Postby Rémi Denis-Courmont » 26 Feb 2022 08:27

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Heralthor
New Cone
New Cone
Posts: 8
Joined: 19 Feb 2022 04:39

Re: Playing Two Video Tracks Simultaneously in the Same Window

Postby Heralthor » 26 Feb 2022 18:18

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playing Two Video Tracks Simultaneously in the Same Window

Postby Rémi Denis-Courmont » 26 Feb 2022 21:26

1) I don't think it's not that simple.
2) I mean a VLC module with vout window capability.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Lotesdelere
Cone Master
Cone Master
Posts: 10074
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Playing Two Video Tracks Simultaneously in the Same Window

Postby Lotesdelere » 28 Feb 2022 13:53

Maybe GridPlayer is what you're looking for:
https://github.com/vzhd1701/gridplayer

It is based on VLC.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 50 guests