Stutter caused by slow disk read in streaming server (1 Viewer)

blaudden

Portal Pro
November 19, 2006
68
2
Home Country
Sweden Sweden
Hi,

please read my analyze Stutter in MediPortal streaming server and comment.

Best regards
Magnus

TV-Server Version: TV Server <latest SVN>
MediaPortal Version:
MediaPortal Skin: none
Windows Version: XP SP3
CPU Type: Intel, Pentium 4, 2.60Ghz HT
HDD: various 500Gb+
Memory: 2GB
1. TV Card: TwinhanDtv Sat-CI
1. TV Card Type: DVB-S
1. TV Card Driver: 1.2.3.8 WHQL
 

blaudden

Portal Pro
November 19, 2006
68
2
Home Country
Sweden Sweden
Yes, will try to find time to write a patch.

Which solution would you prefer? Since it is some work to do, I rather aim in the right direction.

The "winsock 2 patch", that is something I have missed?
 

blaudden

Portal Pro
November 19, 2006
68
2
Home Country
Sweden Sweden
Very interesting patch, it kind of does the opposite of what I was thinking about. By doing the network write async, it seems to give more time to other processing (ie. read from disk) - if I understand the patch correct.
 

blaudden

Portal Pro
November 19, 2006
68
2
Home Country
Sweden Sweden
Right now think that the way to do this is to add a read thread to TsBuffer. That thread would then make sure the buffers in TsBUffer are filled up in advance of them being needed. That solution should work regardless of whether it's a timeshift(using MultiFileReader) or a recording(using FileReader). Currently the buffer count in TsBuffer is either 1 or 2 (when only parts of a packet is in the first buffer). It should be full! And preferably it's size should be configurable. So hopefully it is possible to write a fairly isolated patch that mostly changes TsBuffer. Does this sound ok?

Also the need to do new/delete all the time on the buffer pages should be removed.
 

Users who are viewing this thread

Top Bottom