performace issue with multiple process

This forum is about all development around libVLC.
chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

performace issue with multiple process

Postby chubinou » 23 Jul 2015 16:17

Hi folks,

I've writen an application with libvlc wich in a loop: receive an RTP/H264 stream then grab some images. The program runs perfectly when launched once, the acquisition is really fast.
But If I start multiple instance of my program simultaneously, it becomes very delayed (esp. the time before buffering), my hardware (cpu/ram/network) is not overloaded (about 10% each)

theses slowdowns doesn't seems to be present if I start multiple isntances of libvlc_new within the *same* process (but I have other issues...)

Any idea of what my cause theses slow downs? or any options I might be missing

for information my program run on windows (2008r2) with libvlc 2.2.1,
libvlc is started with
"-I", "dummy", /* Don't use any interface */
"--ignore-config", /* Don't use VLC's config */
"--no-audio", /* we don't want audio (decoding) */
"--no-video-title-show", /* nor the filename displayed */
"--no-xlib", /* tell VLC to not use Xlib */
"--rtp-timeout=300",
"--network-caching=100", /* netword caching in ms*/
"--no-drop-late-frames",
"--extraintf=logger", //log anything
"--file-logging",
@"--logfile=C:\vlc-log.txt",
"--verbose=2",

Thanks.

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: performace issue with multiple process

Postby Jean-Baptiste Kempf » 24 Jul 2015 00:52

What if you use one libVLC but multiple MediaPlayer?
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.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: performace issue with multiple process

Postby chubinou » 29 Jul 2015 10:18

So, in the end, it seems that this was not libvlc which was causing the hangs during the buffering, but another third party component which was not working as expected in a multiprocess environment.

thanks anyway.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests