Page 1 of 1

Weird buffering issue

Posted: 29 Apr 2017 20:42
by VanKurt
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?

Re: Weird buffering issue

Posted: 03 May 2017 20:12
by VanKurt
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.

Re: Weird buffering issue

Posted: 11 Jun 2017 16:53
by Jean-Baptiste Kempf
Remove the parameters until you find it work like VLC.

Re: Weird buffering issue

Posted: 14 Jun 2017 08:42
by VanKurt
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.

Re: Weird buffering issue

Posted: 16 Jun 2017 16:14
by Jean-Baptiste Kempf
--config=