2015-05-22 17:00:13 +00:00
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
2016-01-23 10:41:28 +00:00
|
|
|
mpv provides access to its internals via the following means:
|
2015-05-22 17:00:13 +00:00
|
|
|
|
|
|
|
- options
|
|
|
|
- commands
|
|
|
|
- properties
|
|
|
|
- events
|
|
|
|
|
|
|
|
All of these are important for interfacing both with end users and API users
|
|
|
|
(which include Lua scripts, libmpv, and the JSON IPC). As such, they constitute
|
|
|
|
a large part of the user interface and APIs.
|
|
|
|
|
|
|
|
This document lists changes to them. New changes are added to the top.
|
|
|
|
|
|
|
|
Interface changes
|
|
|
|
=================
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-08-31 14:45:58 +00:00
|
|
|
--- mpv 0.21.0 ---
|
2016-09-17 18:48:22 +00:00
|
|
|
- setting certain options at runtime will now take care of updating them
|
|
|
|
property (see for example issue #3281). On the other hand, it will also
|
|
|
|
do runtime verification and reject option changes that do not work
|
|
|
|
(example: setting the "vf" option to a filter during playback, which fails
|
|
|
|
to initialize - the option value will remain at its old value). In general,
|
|
|
|
"set name value" should be mostly equivalent to "set options/name value"
|
|
|
|
in cases where the "name" property is not deprecated and "options/name"
|
|
|
|
exists - deviations from this are either bugs, or documented as caveats
|
|
|
|
in the "Inconsistencies between options and properties" manpage section.
|
2016-09-05 19:07:03 +00:00
|
|
|
- deprecate _all_ --vo and --ao suboptions. Generally, all suboptions are
|
|
|
|
replaced by global options, which do exactly the same. For example,
|
|
|
|
"--vo=opengl:scale=nearest" turns into "--scale=nearest". In some cases,
|
2016-09-13 08:02:27 +00:00
|
|
|
the global option is prefixed, e.g. "--vo=opengl:pbo" turns into
|
|
|
|
"--opengl-pbo".
|
2016-09-06 18:10:05 +00:00
|
|
|
Most of the exact replacements are documented here:
|
|
|
|
https://github.com/mpv-player/mpv/wiki/Option-replacement-list
|
2016-09-13 08:02:27 +00:00
|
|
|
- remove --vo=opengl-hq. Set --profile=opengl-hq instead. Note that this
|
|
|
|
profile does not force the VO. This means if you use the --vo option to
|
|
|
|
set another VO, it won't work. But this also means it can be used with
|
|
|
|
opengl-cb.
|
|
|
|
- remove the --vo=opengl "pre-shaders", "post-shaders" and "scale-shader"
|
|
|
|
sub-options: they were deprecated in favor of "user-shaders"
|
|
|
|
- deprecate --vo-defaults (no replacement)
|
|
|
|
- remove the vo-cmdline command. You can set OpenGL renderer options
|
|
|
|
directly via properties instead.
|
2016-09-05 19:07:30 +00:00
|
|
|
- deprecate the device/sink options on all AOs. Use --audio-device instead.
|
2016-09-05 19:07:34 +00:00
|
|
|
- deprecate "--ao=wasapi:exclusive" and "--ao=coreaudio:exclusive",
|
|
|
|
use --audio-exclusive instead.
|
2016-08-31 14:45:58 +00:00
|
|
|
- subtle changes in how "--no-..." options are treated mean that they are
|
|
|
|
not accessible under "options/..." anymore (instead, these are resolved
|
|
|
|
at parsing time). This does not affect options which start with "--no-",
|
|
|
|
but do not use the mechanism for negation options.
|
2016-08-31 15:28:42 +00:00
|
|
|
(Also see client API change for API version 1.23.)
|
2016-09-01 18:01:02 +00:00
|
|
|
- rename the following properties
|
|
|
|
- "demuxer" -> "current-demuxer"
|
|
|
|
- "fps" -> "container-fps"
|
|
|
|
- "idle" -> "idle-active"
|
2016-09-02 07:42:19 +00:00
|
|
|
- "cache" -> "cache-percent"
|
2016-09-21 14:19:56 +00:00
|
|
|
the old names are deprecated and will change behavior in mpv 0.22.0.
|
2016-09-01 18:01:29 +00:00
|
|
|
- remove deprecated "hwdec-active" and "hwdec-detected" properties
|
2016-09-03 10:46:26 +00:00
|
|
|
- deprecate the ao and vo auto-profiles (they never made any sense)
|
2016-09-05 19:05:31 +00:00
|
|
|
- deprecate "--vo=direct3d_shaders" - use "--vo=direct3d" instead.
|
|
|
|
Change "--vo=direct3d" to always use shaders by default.
|
2016-09-18 11:38:45 +00:00
|
|
|
- deprecate --playlist-pos option, renamed to --playlist-start
|
player: more option/property consistency fixes
Some properties had a different type from their equivalent options (such
as mute, volume, deinterlace, edition). This wasn't really sane, as raw
option values should be always within their bounds. On the other hand,
these properties use a different type to reflect runtime limits (such as
range of available editions), or simply to improve the "UI" (you don't
want to cycle throuhg the completely useless "auto" value when cycling
the "mute" property).
Handle this by making them always return the option type, but also
allowing them to provide a "constricted" type, which is used for UI
purposes. All M_PROPERTY_GET_CONSTRICTED_TYPE changes are related to
this.
One consequence is that you can set the volume property to arbitrary
high values just like with the --volume option, but using the "add"
command it still restricts it to the --volume-max range.
Also deprecate --chapter, as it is grossly incompatible to the chapter
property. We pondered renaming it to --chapters, or introducing a more
powerful --range option, but concluded that --start --end is actually
enough.
These changes appear to take care of the last gross property/option
incompatibilities, although there might still be a few lurking.
2016-09-18 14:06:12 +00:00
|
|
|
- deprecate the --chapter option, as it is redundant with --start/--end,
|
|
|
|
and conflicts with the semantics of the "chapter" property
|
2016-09-09 15:39:22 +00:00
|
|
|
- incompatible change to cdda:// protocol options: the part after cdda://
|
|
|
|
now always sets the device, not the span or speed to be played. No
|
|
|
|
separating extra "/" is needed. The hidden --cdda-device options is also
|
|
|
|
deleted (it was redundant with the documented --cdrom-device).
|
2016-09-12 17:58:06 +00:00
|
|
|
- deprecate --vo=rpi. It will be removed in mpv 0.22.0. Its functionality
|
|
|
|
was folded into --vo=opengl, which now uses RPI hardware decoding by
|
|
|
|
treating it as a hardware overlay (without applying GL filtering). Also
|
|
|
|
to be changed in 0.22.0: the --fs flag will be reset to "no" by default
|
|
|
|
(like on the other platforms).
|
2016-09-18 09:58:24 +00:00
|
|
|
- deprecate --mute=auto (informally has been since 0.18.1)
|
2016-09-16 12:24:31 +00:00
|
|
|
- deprecate "resume" and "suspend" IPC commands. They will be completely
|
|
|
|
removed in 0.22.0.
|
|
|
|
- deprecate mp.suspend(), mp.resume(), mp.resume_all() Lua scripting
|
|
|
|
commands, as well as setting mp.use_suspend. They will be completely
|
|
|
|
removed in 0.22.0.
|
2016-09-13 08:02:27 +00:00
|
|
|
- add almost all options to the property list, meaning you can change
|
|
|
|
options without adding "options/" to the property name (a new section
|
|
|
|
has been added to the manpage describing some conflicting behavior
|
|
|
|
between options and properties)
|
|
|
|
- implement changing sub-speed during playback
|
2016-09-19 22:59:54 +00:00
|
|
|
- make many previously fixed options changeable at runtime (for example
|
|
|
|
--terminal, --osc, --ytdl, can all be enable/disabled after
|
|
|
|
mpv_initialize() - this can be extended to other still fixed options
|
|
|
|
on user requests)
|
2016-08-17 20:45:44 +00:00
|
|
|
--- mpv 0.20.0 ---
|
|
|
|
- add --image-display-duration option - this also means that image duration
|
|
|
|
is not influenced by --mf-fps anymore in the general case (this is an
|
|
|
|
incompatible change)
|
2016-08-15 14:16:17 +00:00
|
|
|
--- mpv 0.19.0 ---
|
2016-07-17 17:21:28 +00:00
|
|
|
- deprecate "balance" option/property (no replacement)
|
2016-06-29 16:10:15 +00:00
|
|
|
--- mpv 0.18.1 ---
|
|
|
|
- deprecate --heartbeat-cmd
|
2016-07-09 16:31:18 +00:00
|
|
|
- remove --softvol=no capability:
|
|
|
|
- deprecate --softvol, it now does nothing
|
2016-07-10 12:30:02 +00:00
|
|
|
- --volume, --mute, and the corresponding properties now always control
|
2016-07-09 16:31:18 +00:00
|
|
|
softvol, and behave as expected without surprises (e.g. you can set
|
|
|
|
them normally while no audio is initialized)
|
|
|
|
- rename --softvol-max to --volume-max (deprecated alias is added)
|
|
|
|
- the --volume-restore-data option and property are removed without
|
|
|
|
replacement. They were _always_ internal, and used for watch-later
|
|
|
|
resume/restore. Now --volume/--mute are saved directly instead.
|
|
|
|
- the previous point means resuming files with older watch-later configs
|
|
|
|
will print an error about missing --volume-restore-data (which you can
|
|
|
|
ignore), and will not restore the previous value
|
|
|
|
- as a consequence, volume controls will no longer control PulseAudio
|
|
|
|
per-application value, or use the system mixer's per-application
|
|
|
|
volume processing
|
|
|
|
- system or per-application volume can still be controlled with the
|
|
|
|
ao-volume and ao-mute properties (there are no command line options)
|
2016-06-25 10:39:08 +00:00
|
|
|
--- mpv 0.18.0 ---
|
2016-04-21 20:15:17 +00:00
|
|
|
- now ab-loops are active even if one of the "ab-loop-a"/"-b" properties is
|
|
|
|
unset ("no"), in which case the start of the file is used if the A loop
|
2016-05-23 16:43:49 +00:00
|
|
|
point is unset, and the end of the file for an unset B loop point
|
2016-04-30 12:25:23 +00:00
|
|
|
- deprecate --sub-ass=no option by --ass-style-override=strip
|
|
|
|
(also needs --embeddedfonts=no)
|
2016-05-04 14:55:26 +00:00
|
|
|
- add "hwdec-interop" and "hwdec-current" properties
|
|
|
|
- deprecated "hwdec-active" and "hwdec-detected" properties (to be removed
|
2016-06-25 10:39:08 +00:00
|
|
|
in mpv 0.20.0)
|
2016-05-04 15:37:54 +00:00
|
|
|
- choice option/property values that are "yes" or "no" will now be returned
|
|
|
|
as booleans when using the mpv_node functions in the client API, the
|
|
|
|
"native" property accessors in Lua, and the JSON API. They can be set as
|
|
|
|
such as well.
|
2016-05-20 21:21:43 +00:00
|
|
|
- the VO opengl fbo-format sub-option does not accept "rgb" or "rgba"
|
|
|
|
anymore
|
2016-06-10 12:35:09 +00:00
|
|
|
- all VO opengl prescalers have been removed (replaced by user scripts)
|
2016-02-29 19:55:44 +00:00
|
|
|
--- mpv 0.17.0 ---
|
|
|
|
- deprecate "track-list/N/audio-channels" property (use
|
|
|
|
"track-list/N/demux-channel-count" instead)
|
2016-03-09 22:34:04 +00:00
|
|
|
- remove write access to "stream-pos", and change semantics for read access
|
2016-03-18 21:03:04 +00:00
|
|
|
- Lua scripts now don't suspend mpv by default while script code is run
|
2016-03-20 18:48:55 +00:00
|
|
|
- add "cache-speed" property
|
2016-03-24 18:24:40 +00:00
|
|
|
- rename --input-unix-socket to --input-ipc-server, and make it work on
|
|
|
|
Windows too
|
2016-04-03 11:55:37 +00:00
|
|
|
- change the exact behavior of the "video-zoom" property
|
2016-04-10 15:26:32 +00:00
|
|
|
- --video-unscaled no longer disables --video-zoom and --video-aspect
|
|
|
|
To force the old behavior, set --video-zoom=0 and --video-aspect=0
|
2016-01-20 16:12:08 +00:00
|
|
|
--- mpv 0.16.0 ---
|
|
|
|
- change --audio-channels default to stereo (use --audio-channels=auto to
|
|
|
|
get the old default)
|
2016-01-20 16:14:04 +00:00
|
|
|
- add --audio-normalize-downmix
|
|
|
|
- change the default downmix behavior (--audio-normalize-downmix=yes to get
|
|
|
|
the old default)
|
2016-01-25 19:24:41 +00:00
|
|
|
- VO opengl custom shaders must now use "sample_pixel" as function name,
|
|
|
|
instead of "sample"
|
2016-01-25 20:35:39 +00:00
|
|
|
- change VO opengl scaler-resizes-only default to enabled
|
2016-01-27 20:07:17 +00:00
|
|
|
- add VO opengl "interpolation-threshold" suboption (introduces new default
|
|
|
|
behavior, which can change e.g. ``--video-sync=display-vdrop`` to the
|
|
|
|
worse, but is usually what you want)
|
2016-01-26 14:12:42 +00:00
|
|
|
- make "volume" and "mute" properties changeable even if no audio output is
|
|
|
|
active (this gives not-ideal behavior if --softvol=no is used)
|
|
|
|
- add "volume-max" and "mixer-active" properties
|
2016-02-04 22:01:15 +00:00
|
|
|
- ignore --input-cursor option for events injected by input commands like
|
|
|
|
"mouse", "keydown", etc.
|
2015-12-21 21:04:53 +00:00
|
|
|
--- mpv 0.15.0 ---
|
|
|
|
- change "yadif" video filter defaults
|
2015-11-13 21:48:32 +00:00
|
|
|
--- mpv 0.14.0 ---
|
2015-11-29 12:07:04 +00:00
|
|
|
- vo_opengl interpolation now requires --video-sync=display-... to be set
|
|
|
|
- change some vo_opengl defaults (including changing tscale)
|
|
|
|
- add "vsync-ratio", "estimated-display-fps" properties
|
2015-11-16 21:47:17 +00:00
|
|
|
- add --rebase-start-time option
|
|
|
|
This is a breaking change to start time handling. Instead of making start
|
|
|
|
time handling an aspect of different options and properties (like
|
|
|
|
"time-pos" vs. "playback-time"), make it dependent on the new option. For
|
|
|
|
compatibility, the "time-start" property now always returns 0, so code
|
|
|
|
which attempted to handle rebasing manually will not break.
|
2015-11-09 19:49:30 +00:00
|
|
|
--- mpv 0.13.0 ---
|
|
|
|
- remove VO opengl-cb frame queue suboptions (no replacement)
|
2015-09-23 20:43:27 +00:00
|
|
|
--- mpv 0.12.0 ---
|
2015-10-24 17:09:35 +00:00
|
|
|
- remove --use-text-osd (useless; fontconfig isn't a requirement anymore,
|
|
|
|
and text rendering is also lazily initialized)
|
2015-10-16 14:16:10 +00:00
|
|
|
- some time properties (at least "playback-time", "time-pos",
|
|
|
|
"time-remaining", "playtime-remaining") now are unavailable if the time
|
|
|
|
is unknown, instead of just assuming that the internal playback position
|
|
|
|
is 0
|
2015-10-05 16:53:02 +00:00
|
|
|
- add --audio-fallback-to-null option
|
2015-09-29 19:12:26 +00:00
|
|
|
- replace vf_format outputlevels suboption with "video-output-levels" global
|
|
|
|
property/option; also remove "colormatrix-output-range" property
|
2015-09-23 20:43:27 +00:00
|
|
|
- vo_opengl: remove sharpen3/sharpen5 scale filters, add sharpen sub-option
|
2015-09-11 21:04:02 +00:00
|
|
|
--- mpv 0.11.0 ---
|
|
|
|
- add "af-metadata" property
|
2015-09-10 12:08:10 +00:00
|
|
|
--- mpv 0.10.0 ---
|
2015-08-30 21:01:46 +00:00
|
|
|
- add --video-aspect-method option
|
2015-08-22 20:08:17 +00:00
|
|
|
- add --playlist-pos option
|
2015-08-10 16:43:25 +00:00
|
|
|
- add --video-sync* options
|
|
|
|
"display-sync-active" property
|
|
|
|
"vo-missed-frame-count" property
|
|
|
|
"audio-speed-correction" and "video-speed-correction" properties
|
2015-08-05 21:38:23 +00:00
|
|
|
- remove --demuxer-readahead-packets and --demuxer-readahead-bytes
|
2015-08-05 21:41:29 +00:00
|
|
|
add --demuxer-max-packets and --demuxer-max-bytes
|
|
|
|
(the new options are not replacement and have very different semantics)
|
2015-08-05 19:29:09 +00:00
|
|
|
- change "video-aspect" property: always settable, even if no video is
|
|
|
|
running; always return the override - if no override is set, return
|
|
|
|
the video's aspect ratio
|
2015-08-03 21:33:03 +00:00
|
|
|
- remove disc-nav (DVD, BD) related properties and commands
|
2015-07-23 20:59:04 +00:00
|
|
|
- add "option-info/<name>/set-locally" property
|
2015-07-22 21:38:45 +00:00
|
|
|
- add --cache-backbuffer; change --cache-default default to 75MB
|
|
|
|
the new total cache size is the sum of backbuffer and the cache size
|
|
|
|
specified by --cache-default or --cache
|
2015-07-03 00:33:54 +00:00
|
|
|
- add ``track-list/N/audio-channels`` property
|
2015-07-18 16:33:54 +00:00
|
|
|
- change --screenshot-tag-colorspace default value
|
2015-07-18 12:36:17 +00:00
|
|
|
- add --stretch-image-subs-to-screen
|
2015-07-10 19:22:35 +00:00
|
|
|
- add "playlist/N/title" property
|
2015-07-10 16:04:34 +00:00
|
|
|
- add --video-stereo-mode=no to disable auto-conversions
|
2015-07-08 20:04:35 +00:00
|
|
|
- add --force-seekable, and change default seekability in some cases
|
2015-07-08 13:14:38 +00:00
|
|
|
- add vf yadif/vavpp/vdpaupp interlaced-only suboptions
|
|
|
|
Also, the option is enabled by default (Except vf_yadif, which has
|
|
|
|
it enabled only if it's inserted by the deinterlace property.)
|
2015-07-07 12:53:58 +00:00
|
|
|
- add --hwdec-preload
|
2015-07-03 17:21:22 +00:00
|
|
|
- add ao coreaudio exclusive suboption
|
2015-06-28 11:23:16 +00:00
|
|
|
- add ``track-list/N/forced`` property
|
2015-06-25 17:10:24 +00:00
|
|
|
- add audio-params/channel-count and ``audio-params-out/channel-count props.
|
2015-06-24 12:40:03 +00:00
|
|
|
- add af volume replaygain-fallback suboption
|
|
|
|
- add video-params/stereo-in property
|
2015-06-10 23:56:56 +00:00
|
|
|
- add "keypress", "keydown", and "keyup" commands
|
2015-06-05 20:35:43 +00:00
|
|
|
- deprecate --ad-spdif-dtshd and enabling passthrough via --ad
|
|
|
|
add --audio-spdif as replacement
|
2015-05-27 16:08:02 +00:00
|
|
|
- remove "get_property" command
|
2015-05-27 16:01:26 +00:00
|
|
|
- remove --slave-broken
|
2015-05-27 09:28:21 +00:00
|
|
|
- add vo opengl custom shader suboptions (source-shader, scale-shader,
|
|
|
|
pre-shaders, post-shaders)
|
2015-05-25 19:44:48 +00:00
|
|
|
- completely change how the hwdec properties work:
|
|
|
|
- "hwdec" now reflects the --hwdec option
|
|
|
|
- "hwdec-detected" does partially what the old "hwdec" property did
|
|
|
|
(and also, "detected-hwdec" is removed)
|
|
|
|
- "hwdec-active" is added
|
2015-05-23 13:26:55 +00:00
|
|
|
- add protocol-list property
|
2015-05-22 18:28:20 +00:00
|
|
|
- deprecate audio-samplerate and audio-channels properties
|
|
|
|
(audio-params sub-properties are the replacement)
|
2015-05-22 18:23:47 +00:00
|
|
|
- add audio-params and audio-out-params properties
|
2015-05-22 18:05:04 +00:00
|
|
|
- deprecate "audio-format" property, replaced with "audio-codec-name"
|
2015-05-22 18:03:14 +00:00
|
|
|
- deprecate --media-title, replaced with --force-media-title
|
2015-05-22 18:02:47 +00:00
|
|
|
- deprecate "length" property, replaced with "duration"
|
2015-05-22 17:00:13 +00:00
|
|
|
- change volume property:
|
|
|
|
- the value 100 is now always "unchanged volume" - with softvol, the
|
|
|
|
range is 0 to --softvol-max, without it is 0-100
|
|
|
|
- the minimum value of --softvol-max is raised to 100
|
|
|
|
- remove vo opengl npot suboption
|
|
|
|
- add relative seeking by percentage to "seek" command
|
|
|
|
- add playlist_shuffle command
|
|
|
|
- add --force-window=immediate
|
|
|
|
- add ao coreaudio change-physical-format suboption
|
|
|
|
- remove vo opengl icc-cache suboption, add icc-cache-dir suboption
|
|
|
|
- add --screenshot-directory
|
|
|
|
- add --screenshot-high-bit-depth
|
|
|
|
- add --screenshot-jpeg-source-chroma
|
|
|
|
- default action for "rescan_external_files" command changes
|
2015-09-10 12:08:10 +00:00
|
|
|
--- mpv 0.9.0 ---
|