Multi-screen video set

This forum is about all development around libVLC.
ZeeByeZon
New Cone
New Cone
Posts: 6
Joined: 09 Jan 2014 18:03

Multi-screen video set

Postby ZeeByeZon » 10 Jan 2014 09:50

Hi

I would like to develop a video player based on libVlc to display several videos (up to 5) with frame accurate synchronization. It is something like using the --input-slave option of the VLC command line. I do not find how to do this using the libVlc API. For example using libvlc_media_player_set_media will only allow one media to be used...
Do I need several libVLC instances ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Multi-screen video set

Postby Jean-Baptiste Kempf » 10 Jan 2014 11:39

Are the videos the same format and same encoder?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ZeeByeZon
New Cone
New Cone
Posts: 6
Joined: 09 Jan 2014 18:03

Re: Multi-screen video set

Postby ZeeByeZon » 10 Jan 2014 16:23

Yes, same encoder, same encoding format, same framerate.
I'm not sure for the picture size.

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

Re: Multi-screen video set

Postby Rémi Denis-Courmont » 10 Jan 2014 17:17

VLC can theoretically do it, though the CPU and/or GPU may not be able to keep up... However, there are no provisions for more than one embedded video frame in the current LibVLC API. Patch welcome.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ZeeByeZon
New Cone
New Cone
Posts: 6
Joined: 09 Jan 2014 18:03

Re: Multi-screen video set

Postby ZeeByeZon » 13 Jan 2014 16:15

Thank you for your answers.

I tried just launching several media player, each with its own media. I observed lacks of synchronization after a few minutes.

So you say I need to patch libVLC to achieve synchronous reading. I'm completely new to libVLC, I use vlc-qt from Tadej Novak. I think I'm gonna have to patch it too, but this will be the easy part I guess :-)
I think I will really need some help to get started.

I tried to find out how this is done with vlc --input-slave but I'm stuck...

paralion
New Cone
New Cone
Posts: 4
Joined: 11 Aug 2019 17:45

Re: Multi-screen video set

Postby paralion » 12 Aug 2019 17:22

5 years later... found a solution? Did you try SyncPlay ?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests