Page 1 of 1

Video playback not smooth. How to increase read-buffer size?

Posted: 14 Aug 2014 08:10
by shashaanktulsyan
Hi,

The size of a filesystem read request of VLC is very very small.
I am playing a file from a virtual filesystem which has a certain overhead.

Difference between VLC and MPC
A mediaplayer like MPC, has a big buffer size, so let's it needs 1MB of some video.
MPC makes requests such as (just an example) 200KB, 200KB, 200KB, 200KB & 200KB (5 X 200KB<-- just an example)
VLC makes request such as (just an example) 20KB, 20KB, 20KB .... 20KB & 20KB (50 X 20KB <-- just an example)

The problem is, that the virtual filesystem overhead is same, irrespective of the read buffer size.
So the video playback in VLC is jerky.

1 method to sort of fix this is to increase the file input cache (ms) to 5000ms.
What this does is, the read requests are same, very small in size, but they are buffered in RAM before playing the the video. This is a slightly better experience, but the video playback is still jerky.
Image

I have 3 solutions as of now
  1. Optimize the Virtual Filesystem code; this is the thing I am working on http://neembuu.com/now ; there are certain limitation in this method, and I have not succeeded in fixing it.
  2. Switch to MPC ; Can't do it, I need something cross platform and nice like VLC.
  3. Somehow increase VLC's read buffer size : Please guide me if and how this may be done
Thanks :)