0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/options
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
..
m_config.c player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
m_config.h options: remove a global variable 2014-06-11 00:39:14 +02:00
m_option.c options: fix key-value-list options 2014-08-05 02:24:45 +02:00
m_option.h options: support setting start time relative to start PTS 2014-06-29 20:39:49 +02:00
m_property.c command: redo the property type 2014-06-13 02:11:39 +02:00
m_property.h command: redo the property type 2014-06-13 02:11:39 +02:00
options.c player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
options.h player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
parse_commandline.c options: fix "-" (stdin) input 2014-05-06 01:06:07 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c config: adjust config parser messages 2014-07-13 20:11:46 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c config: use the same signature for win32/OSX specific path functions 2014-06-26 19:56:45 +02:00
path.h Basic xdg directory implementation 2014-06-26 19:37:25 +02:00