Page 1 of 1

How are files loaded? and when?...

Posted: 06 Dec 2008 21:49
by d3x0r
I have a player, I'm using WS_LAYERED style windows and open a seperate instance, player, and media clip on its own surface. I open two of these at once, and play one. When that stops, I start the other, and release the first, and create a new player on a new surface. A few seconds into the video there is a jitter... which is shown in --verbose=2 to be accompanied by decode loading, configuring, prebuffering (of the second video?).

I added a drop prioirty on the thread that actually creates the player; this did improve the smoothness a degree. However, disconting all the extra verbose logging, there is a decoding error in these videos... which is something like 'triggering upsampling' which, since it seems to work, can't I just start with upsampling triggered?

I do note that as a result of creating a player with a media clip, several other threads are created, which do not have their priority dropped (probably)... is there a way to find these threads? Do I really have to or is the media load done in the player creation thread?

Re: How are files loaded? and when?...

Posted: 07 Dec 2008 15:38
by Jean-Baptiste Kempf
Well, did you try to increase caching ?

Re: How are files loaded? and when?...

Posted: 07 Dec 2008 21:24
by d3x0r
Oh - actually stting --file-caching=0 helpd... setting --file-caching=5000 was even worse than it started... so I went the other way and it plays quite well...