From 0f5aed9c62cb29a53dc1039df786207a2bd80d85 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 3 Aug 2014 20:25:03 +0200 Subject: player: some further playloop cleanups Handle --term-playing-msg at a better place. Move MPV_EVENT_TICK hack into a separate function. Also add some words to the client API that you shouldn't use it. (But better leave breaking it for later.) Handle --frames and frame_step differently. Remove the mess from the playloop, and do it after frame display. Give up on the weird semantics for audio-only mode (they didn't make sense anyway), and adjust the manpage accordingly. --- DOCS/man/input.rst | 2 +- DOCS/man/options.rst | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 04c1dc16fb..dd20d825fc 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -106,7 +106,7 @@ List of Input Commands ``revert_seek`` command itself. ``frame_step`` - Play one frame, then pause. + Play one frame, then pause. Does nothing with audio-only playback. ``frame_back_step`` Go back by one frame, then pause. Note that this can be very slow (it tries diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index e3cef52f99..17257844b5 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -919,11 +919,14 @@ OPTIONS Practical use of this feature is questionable. Disabled by default. ``--frames=`` - Play/convert only first ```` video frames, then quit. For audio - only, run ```` iteration of the playback loop, which is most likely - not what you want. (This behavior also applies to the corner case when there - are fewer video frames than ````, and audio is longer than the - video.) + Play/convert only first ```` video frames, then quit. + + ``--frames=0`` loads the file, but immediately quits before initializing + playback. (Might be useful for scripts which just want to determine some + file properties.) + + For audio-only playback, any value greater than 0 will quit playback + immediately after initialization. The value 0 works as with video. ``--fullscreen``, ``--fs`` Fullscreen playback. -- cgit v1.2.3