diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-15 01:09:47 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-20 19:02:16 +0200 |
commit | f0649f13d698eb6aeffeaacd6801b666c4366caf (patch) | |
tree | 809200e48f70f5a13e8a1d27f688f7b92348a744 /cfg-mplayer.h | |
parent | 23f598e0ee2151923a44077f510cd484f239480b (diff) | |
download | mpv-f0649f13d698eb6aeffeaacd6801b666c4366caf.tar.bz2 mpv-f0649f13d698eb6aeffeaacd6801b666c4366caf.tar.xz |
core: add support for precise non-keyframe-limited seeks
Add support for seeking to an arbitrary non-keyframe position by
decoding video starting from the previous keyframe. Whether to use
this functionality when seeking is controlled by the new option
-hr-seek and a new third argument to the "seek" command. The default
is to use it for absolute seeks (like chapter seeks) but not for
relative ones. Because there's currently no support for cutting
encoded audio some desync is expected if encoded audio passthrough is
used. Currently precise seeks always go to the first frame with
timestamp equal to or greater than the target position; there's no
support for "matching or earlier" backwards seeks at frame level.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 3545b77716..7f0ee1f729 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -312,6 +312,8 @@ const m_option_t mplayer_opts[]={ OPT_CHOICE("pts-association-mode", user_pts_assoc_mode, 0, ({"auto", 0}, {"decoder", 1}, {"sort", 2})), OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync, 0), + OPT_CHOICE("hr-seek", hr_seek, 0, + ({"off", -1}, {"absolute", 0}, {"always", 1}, {"on", 1})), OPT_FLAG_CONSTANTS("noautosync", autosync, 0, 0, -1), OPT_INTRANGE("autosync", autosync, 0, 0, 10000), |