stream_file: option to close fd after use -> fdclose://

fdclose://123 will instruct mpv to close the file descriptor
when it is no longer needed (usually when playing finishes).
This commit is contained in:
sfan5
2017-06-16 22:40:42 +02:00
committed by wm4
parent 986e10901d
commit 2a0028aa13
2 changed files with 13 additions and 5 deletions

View File

@@ -769,6 +769,11 @@ PROTOCOLS
Read data from the given file descriptor (for example 123). This is similar
to piping data to stdin via ``-``, but can use an arbitrary file descriptor.
``fdclose://123``
Like ``fd://``, but the file descriptor is closed after use. When using this
you need to ensure that the same fd URL will only be used once.
``edl://[edl specification as in edl-mpv.rst]``
Stitch together parts of multiple files and play them.