Weird buffering issue

This forum is about all development around libVLC.
VanKurt
New Cone
New Cone
Posts: 6
Joined: 11 Jan 2016 21:16

Weird buffering issue

Postby VanKurt » 29 Apr 2017 20:42

Hi,
I'm playing back some videos (nothing fancy) via libVLC. From time to time the video hangs for roughly 1 second, then continues normally. During that time neither the CPU, the GPU nor my SSD seem to be busy at all.

To get to the bottom of this, I enabled the debug log. There I found the following:
ore debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%

...BUFFERING STAYS AT 0% FOR MAAAAAANY LLINES MORE...

core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 6%
core debug: Buffering 13%
core debug: Buffering 19%
core debug: Buffering 26%
core debug: Buffering 33%
core debug: Buffering 39%
core debug: Buffering 46%
core debug: Buffering 53%
core debug: Buffering 59%
core debug: Buffering 66%
core debug: Buffering 73%
core debug: Buffering 79%
core debug: Buffering 86%
core debug: Buffering 93%
core debug: Buffering 99%
core debug: Stream buffering done (319 ms in 84 ms)
core debug: End of video preroll
core debug: Received first picture
core debug: Decoder wait done in 1146 ms
So I have three questions now:
  • Could that be related to my issue? Or could there be another explanation for the stuttering?
    What could cause this issue?
    How can I fix it? E.g. could I just increase the buffer size somehow? Or even force the full video to be buffered?

VanKurt
New Cone
New Cone
Posts: 6
Joined: 11 Jan 2016 21:16

Re: Weird buffering issue

Postby VanKurt » 03 May 2017 20:12

I still haven't found a solution :(

Today I tried various parameters:

Code: Select all

initStrings.Add("--ignore-config"); initStrings.Add("--no-snapshot-preview"); initStrings.Add("--drop-late-frames"); initStrings.Add("--skip-frames"); initStrings.Add("--ffmpeg-hurry-up"); initStrings.Add("--ffmpeg-hw"); initStrings.Add("--ffmpeg-fast"); initStrings.Add("--file-caching=5000");
I was pretty sure that increasing "file-caching" would be the solution, but it didn't change anything...

PS:
When I play the same videos with multiple instances of the VLC player, everything runs smooth and fine. Only with libVLC the freezes occur.

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: Weird buffering issue

Postby Jean-Baptiste Kempf » 11 Jun 2017 16:53

Remove the parameters until you find it work like VLC.
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.

VanKurt
New Cone
New Cone
Posts: 6
Joined: 11 Jan 2016 21:16

Re: Weird buffering issue

Postby VanKurt » 14 Jun 2017 08:42

Is there an easy way to make libvlc use the exact same settings as an installed VLC player?
Maybe pointing it to the same config file file that VLC uses?

That would help me fiddle with settings.

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: Weird buffering issue

Postby Jean-Baptiste Kempf » 16 Jun 2017 16:14

--config=
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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests