1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00
mpv/DOCS/man
wm4 1301a90761 demux: add a demuxer thread
This adds a thread to the demuxer which reads packets asynchronously.
It will do so until a configurable minimum packet queue size is
reached. (See options.rst additions.)

For now, the thread is disabled by default. There are some corner cases
that have to be fixed, such as fixing cache behavior with webradios.

Note that most interaction with the demuxer is still blocking, so if
e.g. network dies, the player will still freeze. But this change will
make it possible to remove most causes for freezing.

Most of the new code in demux.c actually consists of weird caches to
compensate for thread-safety issues (with the previously single-threaded
design), or to avoid blocking by having to wait on the demuxer thread.

Most of the changes in the player are due to the fact that we must not
access the source stream directly. the demuxer thread already accesses
it, and the stream stuff is not thread-safe.

For timeline stuff (like ordered chapters), we enable the thread for the
current segment only. We also clear its packet queue on seek, so that
the remaining (unconsumed) readahead buffer doesn't waste memory.

Keep in mind that insane subtitles (such as ASS typesetting muxed into
mkv files) will practically disable the readahead, because the total
queue size is considered when checking whether the minimum queue size
was reached.
2014-07-16 23:25:56 +02:00
..
af.rst DOCS: remove en/ sub-directory 2014-06-20 23:01:12 +02:00
ao.rst manpage: reflect new coreaudio changes 2014-07-02 23:17:44 +02:00
changes.rst DOCS: remove en/ sub-directory 2014-06-20 23:01:12 +02:00
encode.rst DOCS: remove en/ sub-directory 2014-06-20 23:01:12 +02:00
input.rst Remove stream_pts stuff 2014-07-06 19:05:59 +02:00
lua.rst DOCS: remove en/ sub-directory 2014-06-20 23:01:12 +02:00
mpv.rst manpage: update config file locations 2014-06-28 15:55:09 +02:00
options.rst demux: add a demuxer thread 2014-07-16 23:25:56 +02:00
osc.rst DOCS: remove en/ sub-directory 2014-06-20 23:01:12 +02:00
vf.rst DOCS: remove en/ sub-directory 2014-06-20 23:01:12 +02:00
vo.rst video: Refactor rendering intent for DCP XYZ and :srgb 2014-06-22 19:02:06 +02:00