Page 1 of 1

Multi-screen video set

Posted: 10 Jan 2014 09:50
by ZeeByeZon
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 ?

Re: Multi-screen video set

Posted: 10 Jan 2014 11:39
by Jean-Baptiste Kempf
Are the videos the same format and same encoder?

Re: Multi-screen video set

Posted: 10 Jan 2014 16:23
by ZeeByeZon
Yes, same encoder, same encoding format, same framerate.
I'm not sure for the picture size.

Re: Multi-screen video set

Posted: 10 Jan 2014 17:17
by RĂ©mi Denis-Courmont
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.

Re: Multi-screen video set

Posted: 13 Jan 2014 16:15
by ZeeByeZon
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...

Re: Multi-screen video set

Posted: 12 Aug 2019 17:22
by paralion
5 years later... found a solution? Did you try SyncPlay ?