mpv/player
wm4 0b428e4482 player: redo how stream caching and pausing on low cache works
Add the --cache-secs option, which literally overrides the value of
--demuxer-readahead-secs if the stream cache is active. The default
value is very high (10 seconds), which means it can act as network
cache.

Remove the old behavior of trying to pause once the byte cache runs
low. Instead, do something similar wit the demuxer cache. The nice
thing is that we can guess how many seconds of video it has cached,
and we can make better decisions. But for now, apply a relatively
naive heuristic: if the cache is below 0.5 secs, pause, and wait
until at least 2 secs are available.

Note that due to timestamp reordering, the estimated cached duration
of video might be inaccurate, depending on the file format. If the
file format has DTS, it's easy, otherwise the duration will seemingly
jump back and forth.
2014-08-27 03:39:04 +02:00
..
lua osc: Use osd-font for playlist buttons 2014-08-22 23:50:50 +02:00
timeline demux: make start time a simple field 2014-07-05 17:07:15 +02:00
audio.c player: minor changes 2014-08-25 21:39:24 +02:00
client.c client API: directly lock playloop 2014-08-14 19:40:43 +02:00
client.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
command.c command: change OSD formatting of "speed" property 2014-08-25 00:48:55 +02:00
command.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
configfiles.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
core.h player: minor changes 2014-08-25 21:39:24 +02:00
discnav.c video: get rid of video_next_pts field 2014-08-22 14:22:06 +02:00
loadfile.c audio: minor improvements to timeline switching 2014-08-23 11:39:07 +02:00
lua.c lua: wake up the core when setting OSD 2014-08-15 23:32:31 +02:00
main.c options: compatibility hack for --slave-broken 2014-08-25 00:48:55 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
misc.c player: use virtual time for --audio-file with ordered chapters 2014-08-15 23:32:37 +02:00
osd.c terminal: some cleanups 2014-08-21 22:45:58 +02:00
playloop.c player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
screenshot.c video: move display and timing to a separate thread 2014-08-12 23:24:08 +02:00
screenshot.h
scripting.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
sub.c player: use virtual time for --audio-file with ordered chapters 2014-08-15 23:32:37 +02:00
video.c player: minor changes 2014-08-25 21:39:24 +02:00