LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

[Request] Improve network throughput while buffering frames.

Open Osjur opened this issue 3 years ago • 1 comments

Would it be possible to increase network throughput while playing files from network drives across WAN?

If I just copy the media file from my NAS (SMB share) over VPN, I get around 50mbit/s transfer rates which would be mostly enough for 4k playback but when I open the file directly in MPC-HC, it buffers the file at rates of max 17mbits, which looks like the max throughput one can get with standard 65kbit buffer x latency of around 30ms with no tcp window auto-tuning enabled on windows.

MPC-HC dev said this is LAVFilter problem.

Osjur avatar Jan 22 '21 19:01 Osjur

SMB access uses simple windows file I/O, therefor the OS would be responsible for handling all aspects of network traffic like TCP tuning.

I have actually increased the default read buffer already to 128KiB to help with high latency file access, and it has proven to help in such cases in the past. You should check if you are using LAV Splitter Source, or LAV Splitter + File Source (Async), and potentially compare the performance of the two. Of course I only have full control over the first case.

Nevcairiel avatar Feb 26 '21 10:02 Nevcairiel