mpv/stream
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
..
resolve quvi: add option to not fetch subtitles 2014-01-05 23:07:34 +01:00
ai_alsa1x.c Kill all tabs 2014-04-13 18:03:01 +02:00
ai_oss.c Kill all tabs 2014-04-13 18:03:01 +02:00
ai_sndio.c Kill all tabs 2014-04-13 18:03:01 +02:00
audio_in.c Kill all tabs 2014-04-13 18:03:01 +02:00
audio_in.h
cache.c stream: hack-fix rtmp-level seeking 2014-07-30 02:21:51 +02:00
cache_file.c cache_file: fix operation if stream size is unknown 2014-07-12 19:18:21 +02:00
cookies.c Kill all tabs 2014-04-13 18:03:01 +02:00
cookies.h options: move network related options to MPOpts 2013-12-22 13:11:22 +01:00
discnav.h player: rename dvdnav to discnav 2014-03-30 11:42:49 +09:00
dvb_tune.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
dvb_tune.h stream: mp_msg conversions 2013-12-21 21:43:16 +01:00
dvbin.h stream_dvb: restore --dvbin-file option 2014-08-06 20:30:48 +02:00
frequencies.c stream_pvr: remove global option variables 2014-06-11 00:34:42 +02:00
frequencies.h stream_pvr: remove global option variables 2014-06-11 00:34:42 +02:00
rar.c Revert "build: avoid defining _GNU_SOURCE" 2014-07-10 09:25:37 +02:00
rar.h stream: mp_msg conversions 2013-12-21 21:43:16 +01:00
stream.c player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
stream.h stream: hack-fix rtmp-level seeking 2014-07-30 02:21:51 +02:00
stream_avdevice.c Add more const 2014-06-11 00:39:14 +02:00
stream_bluray.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
stream_cdda.c build: deal with endian mess 2014-07-10 00:58:56 +02:00
stream_dvb.c stream_dvb: restore --dvbin-file option 2014-08-06 20:30:48 +02:00
stream_dvd.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
stream_dvd_common.c Add more const 2014-06-11 00:39:14 +02:00
stream_dvd_common.h stream_dvd: minor cleanups 2014-06-11 00:39:13 +02:00
stream_dvdnav.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
stream_edl.c Add more const 2014-06-11 00:39:14 +02:00
stream_file.c Add more const 2014-06-11 00:39:14 +02:00
stream_lavf.c Improve setting AVOptions 2014-08-02 03:12:33 +02:00
stream_memory.c Add more const 2014-06-11 00:39:14 +02:00
stream_mf.c Add more const 2014-06-11 00:39:14 +02:00
stream_null.c Add more const 2014-06-11 00:39:14 +02:00
stream_pvr.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
stream_rar.c Add more const 2014-06-11 00:39:14 +02:00
stream_smb.c Add more const 2014-06-11 00:39:14 +02:00
stream_tv.c Add more const 2014-06-11 00:39:14 +02:00
tv.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
tv.h tv: move demuxer parts to separate file 2014-07-05 17:07:15 +02:00
tvi_def.h Kill all tabs 2014-04-13 18:03:01 +02:00
tvi_dummy.c tv: remove printing of useless comment information 2014-06-11 00:34:42 +02:00
tvi_v4l2.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00