mpv/demux
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
..
codec_tags.c demux: add "BIKb" FourCC 2014-04-08 22:59:53 +02:00
codec_tags.h demux: remove gsh field from sh_audio/sh_video/sh_sub 2013-11-23 21:37:56 +01:00
demux.c player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
demux.h player: redo how stream caching and pausing on low cache works 2014-08-27 03:39:04 +02:00
demux_cue.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
demux_disc.c demux: fix timestamp type for seek calls 2014-07-21 19:29:58 +02:00
demux_edl.c timeline: reject mplayer2 EDL files, change EDL header 2013-11-21 15:59:00 +01:00
demux_lavf.c demux: always use AVPacket 2014-08-25 00:46:26 +02:00
demux_libass.c demux_libass: change how external ASS subtitles are loaded 2014-03-15 22:17:51 +01:00
demux_mf.c demux_mf: allow seeking past the end 2014-07-30 00:23:16 +02:00
demux_mkv.c demux: fix timestamp type for seek calls 2014-07-21 19:29:58 +02:00
demux_playlist.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
demux_raw.c demux: fix timestamp type for seek calls 2014-07-21 19:29:58 +02:00
demux_subreader.c demux: fix timestamp type for seek calls 2014-07-21 19:29:58 +02:00
demux_tv.c demux: minor simplification 2014-07-06 19:02:21 +02:00
ebml.c demux: minor cleanups 2014-07-01 21:53:23 +02:00
ebml.h demux: minor cleanups 2014-07-01 21:53:23 +02:00
matroska.h demux_mkv: add S_DVBSUB 2014-06-17 22:44:27 +02:00
mf.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
mf.h demux: mp_msg conversions 2013-12-21 21:43:16 +01:00
ms_hdr.h demux: rename Windows symbols 2013-11-02 15:14:12 +01:00
packet.c demux: always use AVPacket 2014-08-25 00:46:26 +02:00
packet.h demux: always use AVPacket 2014-08-25 00:46:26 +02:00
stheader.h demux: add a demuxer thread 2014-07-16 23:25:56 +02:00