cache handling - immediately start playing from cache
Posted: 11 Apr 2008 14:33
i had a problem playing video files over wireless lan and increasing cache solved this problem. now i noticed that vlc does not start playing until the cache is fully loaded.
when i set cache to 10 seconds for example (i now it is much but it's an example to show what i mean) and then click play OR shift time within the same movie i always have to wait until the cache is full – in the example-case this means that i have to wait 10 seconds. it's not really a problem if i just play a file but if i want to search a specific part within the file and skip a few times it becomes very awful!
is it possible to start playback if cache is full enough to play and not to wait until cache is fully loaded (like a flash-webplayer)?!?
there are two more problems with cache-increase...
first problem: when i set the cache to 10 seconds (see example above) the video starts playing after 10 seconds and the timer is then set to 0:00:10 then the played video is at 0:00:01 (starting to play). this means that the timer does not have the same time as the displayed video because of cache-delay.
second problem: by clicking the PAUSE-button the pause-symbol is displayed but the video stops playing (pause) after cache is empty, this means after 10 seconds and if i want to replay i have to wait 10 seconds again.
things i noticed with std-cache of 300ms:
my wlan is not very strong and i sometimes have some short breaks and this causes interrupts in video-playback.
if i pause the playback and replay it after some time (a few minutes) the video does play 300ms (std-cache) and then stops and does not start again until i press STOP and PLAY and skip to the position i was before. i think that the wlan does not respond within these 300ms and then the player thinks that the file is not available anymore.
both problems can be solved with a cache-setting (file) greater then 3 seconds. with less than 3 seconds the problem still exists and with 3 and more seconds i have to live with the awful concequences i wrote earlier in this text!
so i see two problems need to be solved:
1. the cache-problem (play, pause, skip an timer - DELAYS)
2. more tolerance for files that do not immediately respond after pause/wait/play for example on slow wlans or power-save-shutdown hard drives
when i set cache to 10 seconds for example (i now it is much but it's an example to show what i mean) and then click play OR shift time within the same movie i always have to wait until the cache is full – in the example-case this means that i have to wait 10 seconds. it's not really a problem if i just play a file but if i want to search a specific part within the file and skip a few times it becomes very awful!
is it possible to start playback if cache is full enough to play and not to wait until cache is fully loaded (like a flash-webplayer)?!?
there are two more problems with cache-increase...
first problem: when i set the cache to 10 seconds (see example above) the video starts playing after 10 seconds and the timer is then set to 0:00:10 then the played video is at 0:00:01 (starting to play). this means that the timer does not have the same time as the displayed video because of cache-delay.
second problem: by clicking the PAUSE-button the pause-symbol is displayed but the video stops playing (pause) after cache is empty, this means after 10 seconds and if i want to replay i have to wait 10 seconds again.
things i noticed with std-cache of 300ms:
my wlan is not very strong and i sometimes have some short breaks and this causes interrupts in video-playback.
if i pause the playback and replay it after some time (a few minutes) the video does play 300ms (std-cache) and then stops and does not start again until i press STOP and PLAY and skip to the position i was before. i think that the wlan does not respond within these 300ms and then the player thinks that the file is not available anymore.
both problems can be solved with a cache-setting (file) greater then 3 seconds. with less than 3 seconds the problem still exists and with 3 and more seconds i have to live with the awful concequences i wrote earlier in this text!
so i see two problems need to be solved:
1. the cache-problem (play, pause, skip an timer - DELAYS)
2. more tolerance for files that do not immediately respond after pause/wait/play for example on slow wlans or power-save-shutdown hard drives