dropping frame(computer too slow?)

This forum is about all development around libVLC.
ykish
New Cone
New Cone
Posts: 2
Joined: 30 Jul 2013 11:47

dropping frame(computer too slow?)

Postby ykish » 30 Jul 2013 11:57

How can I solve this problem? - avdecoder error : more tahn 5 seconds of late video -> dropping frame(computer too slow ?)
I use the one source for multi channel view.
I made one vlc instance and multiple libvlc_media_player_new for multi channel to show.
but I assigned the one rtsp camera url for them.
So I am not sure that the problem went from the server or my source code.
How can I solve this dropping frame problem?
I am new to this field.
I hope that I can get even small clue.
Thank you so much.

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

Re: dropping frame(computer too slow?)

Postby Rémi Denis-Courmont » 30 Jul 2013 16:51

Get a faster computer...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Agron
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Jul 2013 15:48
Operating System: Linux

Re: dropping frame(computer too slow?)

Postby Agron » 30 Jul 2013 19:55

ykish,
I am having a similar problem on a 4 GHz AMD FX-8350 8-Core Black Edition. The VLC program works fine, but libVLC is terribly slow. As if the VLC program is not made from libVLC.
How is the VLC program working for you, is it good? Start a few VLC programs at the same time and play different channels.

I noticed on RTSP "--network-caching=333" helps a little bit but does not fix the problem.

Anyway I am still waiting for a hint from someone here.
Here's my post:
viewtopic.php?f=32&t=112574

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

Re: dropping frame(computer too slow?)

Postby Rémi Denis-Courmont » 30 Jul 2013 21:18

If VLC works and a LibVLC-based app running with the same LibVLC sucks, then you have to look at the app... Most common problem is suboptimal video parameters when using video callbacks. A variant may be poor choice of window handle when using a custom drawable, e.g. indirectly-rendered/composited window or pixmap.

And then, there are all the ways you can screw up the libvlc_new() parameters. Don't use parameters there.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ykish
New Cone
New Cone
Posts: 2
Joined: 30 Jul 2013 11:47

Re: dropping frame(computer too slow?)

Postby ykish » 31 Jul 2013 02:54

I only use simple parameters like below.
const char *vlc_argv[] =
{
"--no-audio", /* skip any audio track */
"--no-xlib" /* tell VLC to not use Xlib */
};
My CPU is comparatively up-to-date. Intel Core i7-3770K CPU @ 3.50GHz (RAM 8G) Win7 64bit
CPU usage rate also doesn't go over 30% with 15 channel camaras.
Even only using 2 channels, same problem happens.
I can show the code if anyone wants, it is simple for test. console based VLC + SDL.

I can't find out what to do with ur post, remi.

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

Re: dropping frame(computer too slow?)

Postby Rémi Denis-Courmont » 01 Aug 2013 13:45

--no-xlib does cause performance degradation. It is exactly as I already wrote. I will leave at that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 36 guests