summaryrefslogtreecommitdiffstats
path: root/DOCS
Commit message (Collapse)AuthorAgeFilesLines
* cocoa: remove OpenGL cocoa backendder richter2023-11-101-0/+1
| | | | | | the OpenGL cocoa backend was deprecated in 0.29, it has lot of bugs, is completely unmaintained and can't properly playback anything anymore on the newest macOS. it is time to remove it.
* mac: change display name retrieval to localizedName NSScreen propertyder richter2023-11-101-0/+2
| | | | | | | | | | | | | | | the old displayName property via the IODisplay API is not working anymore on ARM based macs and was broken in at least one other case. instead we use the new localizedName property introduced in 10.15 of the NSScreen. we don't need any backwards compatibility since 10.15 is the oldest version we support now. configs and scripts that use the options and properties fs-screen-name, screen-name or display-names need to be adjusted since the names could differ from the previous implementation via the IODisplay API. Fixes #9697
* DOSC/input: clarify a couple of commands where no-osd has no effectDudemanguy2023-11-091-2/+2
| | | | | This should be the intuitive expectation, but it's worth noting the deviation.
* DOCS/option: discourage the use of video-latency-hacks a bit moreDudemanguy2023-11-081-1/+2
| | | | | Who knows why this exists but maybe it's possibly useful in some obscure case. Probably worth mentioning that it could break other options.
* vo_gpu_next: add --target-gamut optionNiklas Haas2023-11-082-0/+8
| | | | Fixes: https://github.com/mpv-player/mpv/issues/12777
* sub: add --sub-stretch-durations optionMohammad AlSaleh2023-11-071-0/+8
| | | | | | | | | Stretch a subtitle duration so it ends when the next one starts. Should help with subtitles which erroneously have zero durations. I found such a subrip substitles stream in the wild. Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
* DOCS/mpv: consistent formatting of keybindingsChristoph Heinrich2023-11-071-12/+12
|
* DOCS/console: correct capitalization of keybindingsChristoph Heinrich2023-11-071-19/+19
|
* wayland: improve wl_output guessing before mpv window is mappedDudemanguy2023-11-061-0/+7
| | | | | | | | | | | | | | | | | | | | There's some geometry-related things that mpv has to calculate before the window is actually mapped onto the screen in wayland. But there's no way to know which output the window will end up on before it happens, so it's possible to calculate it using the wrong values. mpv corrects itself later when the surface event happens, but making the initial guess work better can help in certain cases. find_output is the only thing that needs to be changed here. Its main purpose is to grab the right output based on user settings when we're trying to full screen and giving a fallback in case we don't have wl->current_output yet. The x11 code already does something similar, so we're basically just copying it. Allow user settings like --screen and --screen-name to influence the initial wl_output guess. Those options won't actually place the window on that specific screen since we can't do that in wayland, but if the user knows where the window will end up beforehand it makes sense to listen to the arguments they pass. If something goes wrong, then we just fallback to 0 like before.
* DOCS/input: stop documenting vf delGuido Cella2023-11-061-7/+0
| | | | Because b56e63e2a9 removed it.
* player/command: remove hdr-metadata propertyKacper Michajłow2023-11-052-49/+10
| | | | | It is now included in video-out-params and was never released in stable version, so we can safely remove it.
* csputils: add pl_hdr_metadata to mp_colorspace and deprecate sig_peakKacper Michajłow2023-11-052-1/+30
| | | | | Note this commit does not change all uses of sig-peak, this is for future refactoring.
* ALL: use new mp_thread abstractionKacper Michajłow2023-11-051-24/+24
|
* DOCS/man/console: update type examplesGuido Cella2023-11-021-2/+6
|
* demux: make hysteresis-secs respect cache-secsNRK2023-10-302-6/+6
| | | | | | | | | | | | currently hysteresis-secs only works when the demuxer-max-bytes fills up. but it's possible for the cache-secs/demuxer-readahead-secs to be reached first. in those cases, hysteresis-secs doesn't work and keeps buffering non-stop. but the goal of this option was to save power by avoiding non-stop buffering so go ahead and make it respect cache-secs as well. additionally remove some redundant repetition from the docs.
* m_option: drop support for -del for list optionsDudemanguy2023-10-305-14/+8
| | | | | | 5f74ed58286a1339412554932f31844ec1b64280 deprecated this many years ago. The utility is questionable at best given that -remove exists and is more natural to use. Free up some code and drop it.
* options: make --screenshot-directory/--watch-later-directory aliasesDudemanguy2023-10-302-2/+6
| | | | By popular demand I guess.
* ytdl_hook: add thumbnail optionChristoph Heinrich2023-10-301-0/+7
| | | | | Opening speed could be improved with the "async" prefix, but then the tracks would be out of order.
* various: remove trailing whitespaceGuido Cella2023-10-302-2/+2
|
* DOCS/options: clarify `no-config` is a command line flagllyyr2023-10-271-0/+1
| | | | This option does nothing when put inside config files.
* javascript: use --js-memory-report option instead of MPV_LEAK_REPORTDudemanguy2023-10-263-2/+10
| | | | | | | | The MPV_LEAK_REPORT environment variable was previously read in order to determine whether or not to enable memory reporting for javascript scripts. This is kind of weird and deviates from the norm of exposing an option to the user. So let's just add --js-memory-report and disable it by default instead.
* options: rename --play-dir to --play-directionDudemanguy2023-10-252-2/+3
| | | | | | --play-dir sounds like it has something to do with directories so change it. The play_dir variable is used a bunch everywhere internally so whatever just leave it alone instead of renaming that.
* options: rename --watch-later-directory to --watch-later-dirDudemanguy2023-10-252-1/+2
| | | | Same logic as the previous commit.
* options: rename --screenshot-directory to --screenshot-dirDudemanguy2023-10-252-1/+2
| | | | | Less characters is better? Other options use -dir for directory so consistency I guess.
* options: rename --sub-ass-force-style to --sub-ass-style-overridesDudemanguy2023-10-252-3/+4
| | | | | | | This option has exactly the same semantics are other mpv options that override a particular thing with something from the user. So instead of the "force-style" name, use "-overrides" which is more consistent. The plural form is used since it's a list option.
* options: rename --override-display-fps to --display-fps-overrideDudemanguy2023-10-252-2/+3
| | | | | | Other similar options are in the form of --foo-override not --override-foo. The display-fps one was backwards so flip it around the other way for consistency reasons.
* options: rename --fps to --container-fps-overrideDudemanguy2023-10-254-8/+10
| | | | | | This better reflects what it actually does. As a bonus, script writers won't be misled into thinking that fps displays the actual video or display fps.
* options: disable --allow-delayed-peak-detect by defaultKacper Michajłow2023-10-252-1/+2
| | | | | | Peak detection greatly increases HDR experience. Performance hit of non-delayed detection is not that significant and is in line with current default settings.
* DOCS/contribute: increase hard column limit to 100Dudemanguy2023-10-221-2/+2
| | | | | | | I'm guilty of violating this, but surely I can't be the only one. 85 is pretty small and there's plenty of lines in the codebase that go well over that. Surely nobody programs on tiny screens anymore and the kernel raised the limit to 100 a few years ago so let's just copy that.
* stats.lua: disable tonemapping plot by defaultDudemanguy2023-10-221-1/+1
| | | | | | Nobody except a chosen few (I'm not one of them) even knows what it means. Multiple people thought it was actually some kind of rendering bug. Just disable it by default. Closes #12671.
* DOCS/contribute: stop pretending that C11 isn't allowedDudemanguy2023-10-211-6/+7
| | | | | Doesn't really make much of a different in practice aside from us dropping ancient legacy fallbacks but still.
* osdep: drop atomic fallbackNRK2023-10-201-2/+1
| | | | | even msvc (which mpv apparently doesn't support) supports C11 atomics now. no need to carry around fallback with subtle semantic differences.
* stream_cdda: deprecate --cdda-toc-bias and always check for offsetsDudemanguy2023-10-192-5/+1
| | | | | | | | | | | | | | | | I started going through the blame but once I got to mplayer commits from 20 years ago, I stopped bothering. This obscure option has always been disabled by default, but there's zero reason, as far as I know, to not just enable it today. Some CDs (particularly very old ones) have the first sector shifted a bit and not starting exactly at 0. This makes the logic that tries to get all the chapters completely fail and thus you can't skip through tracks. However if you just enable this obscure option, it just works. For anything that starts exactly at 0, the calculated offset is just 0 anyway so it's a no-op and works exactly the same. So basically, there's literally no reason to not just always try to correct for the offset of the first sector by default. Fixes #8777.
* DOCS/options: remove obsolete noticeGuido Cella2023-10-171-4/+0
| | | | | This may have been true 10 years ago but now reset-on-next-file can definitely reset options that weren't explicitly set.
* DOCS/mpv: fix typos in List OptionsGuido Cella2023-10-171-5/+3
|
* DOCS/interface-changes: remove redundant changeGuido Cella2023-10-171-1/+0
| | | | directory-mode's default was changed again to auto afterwards.
* af_scaletempo2: better defaultsChristoph Heinrich2023-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why a bigger search-interval is required: scaletempo2 doesn't do a good job when the signal contains frequencies less then 1/search_interval. With a search interval of 30ms that means anything below 33.333Hz sounds bad. Depending on the genre it's very for music to contain frequencies down to 30Hz, and sometimes even a little bit below that. Therefore a higher default value is needed to handle such cases. Based on that an argument can be made for a value of 50, as that should work down to 20Hz, or something even higher because movies sometimes have some infrasonic content. However the downside of big search intervals is increased CPU usage and intelligibility at higher speeds, as it effectively leads to parts of the audio being skipped. A value of 40 can handle frequencies down to 25Hz, enough for all music except very rare edge cases, while still providing decent intelligibility. Why a smaller window-size is required: Large values reduce intelligibility at high speeds and therefore small values are preferred. However when values get too small it starts to sound weird (similar to librubberband). In my testing a value of 10 already works well, but adding a small safety margin seems like a good idea, especially since it made no noticeable difference to intelligibility, which is why 12 was chosen.
* vo_gpu/vo_gpu_next: add vulkan support for macOSder richter2023-10-141-0/+14
| | | | | | | | add support for vulkan through metal and a translation layer like MoltenVK. also add the possibility to use different render timing modes for testing. i still consider this experimental atm.
* f_decoder_wrapper: change video-codec to show description or nameKacper Michajłow2023-10-141-0/+1
| | | | | | | | Not both of them. Formating it as `<name> (<desc>)` produced arguably silly string like `hevc (HEVC (High Efficiency Video Coding))`. Unpack this to show only description if available or name otherwise. Produces way nicer results in stats.lua and similar places where this name is printed.
* defaults.lua: add a disabled parameter to timer constructorsMike Will2023-10-111-2/+6
| | | | | | | | Added to the functions `mp.add_timeout` and `mp.add_periodic_timer`. If the `disabled` argument is set to `true` or a truthy value, the timer will wait to be manually started with a call to its `resume()` method.
* DOCS/options: vdpau requires GLXGuido Cella2023-10-111-1/+2
| | | | | | | Only vpdau-copy works with EGL. 2d1d815cc7 already added this to manpage, and 1c8d2246bf removed it again, but that seems to be a mistake because I can only get vdpau to work with GLX, and another user also reported that only vdpau-copy was working for him with the default EGL.
* libmpv: add mpv_time_ns()Dudemanguy2023-10-101-0/+2
| | | | | | 9606c3fca9d568dc43711017dcb35a408c0d2883 added mp_time_ns(). Since we apparently expose the mp_time_us() to clients already, there's no reason to not also expose the new nanosecond one.
* DOCS/lua: update read_options exampleGuido Cella2023-10-101-2/+2
| | | | | This still shows the old way of calling read_options even though it was deprecated 8 years in ago 327b091909e.
* console.lua: exit with with Ctrl+[Guido Cella2023-10-101-1/+1
| | | | | This binding commonly closes similar input buffers like vim's Command-line mode and dmenu.
* command: add playlist-next-playlist and playlist-prev-playlistGuido Cella2023-10-092-0/+8
| | | | | | | | | | | | playlist-prev-playlist goes to the beginning of the previous playlist because this seems more useful and symmetrical to playlist-next-playlist. It does not go to the beginning when the current playlist-path starts with the previous playlist-path, e.g. with mpv --loop-playlist foo/, which expands to foo/{1..9}.zip, the current playlist path foo/1.zip beings with the playlist-path foo/ of {2..9}.zip and thus playlist-prev-playlist goes to 9.zip rather than to 2.zip. Closes #12495.
* DOCS/input: document the full sub-propertyGuido Cella2023-10-071-0/+30
|
* console: show completion suggestions as tableChristoph Heinrich2023-10-071-2/+10
| | | | | | | | | | | | Completion suggestions are now nicely formatted into a table. Maximum width of the table is estimated based on OSD size and font size. This requires a new scaling factor option `font_hw_ratio`. A factor of 2.15 works great for me, but the default is 2.0 to avoid problems with other fonts. The space between columns is automatically adjusted to be between 2 and 8 spaces. It tries to use as few rows as possible.
* demux: change the default of metadata-codepage to autoDudemanguy2023-10-072-4/+4
| | | | | | | There's really no reason not to do this especially since sub-codepage already defaults to auto. Also change logging in charset_conv since telling us that the data is UTF-8 if the passed codepage value is "auto" or "utf-8" is really not useful information (that's the expectation).
* demux_cue: deprecate --demuxer-cue-codepage for --metadata-codepageDudemanguy2023-10-072-3/+1
| | | | | | | | | What are cue sheets not metadata or something? No reason this needs to be a separate option so just deprecate it. This does mean that the default value changes from "auto" to "utf-8" for this obscure fringe case. I really hope people don't use non-UTF-8 cuesheets, but the next commit will change the default of --metadata-codepage to "auto" so there's no actual change in behavior to users.
* charset_conv: remove ancient warning about deprecated syntaxDudemanguy2023-10-071-3/+0
| | | | | wm4 removed this in 4adfde5dd1e67775228a345cea00ea03ba6bc68f and left a warning. Nobody needs to know that enca:pl used to work.
* af_scaletempo: overlap is a factor not a percentageChristoph Heinrich2023-10-071-2/+2
|
* DOCS/mpv: update mpv.conf's documentationGuido Cella2023-10-061-17/+21
|
* af/vf-command: add ability to target a specific lavfi filterAshyni2023-10-051-8/+13
| | | | fixes: #11180
* external_files: remove duplicate from cover art whitelistGuido Cella2023-10-041-2/+2
| | | | | I made a mistake in 0070a5820e here because there were 2 separate groups of "front" filenames.
* path: don't override "cache" and "state" paths with configdirsfan52023-10-022-0/+4
| | | | | | | | | | This reverts commit 576e86bfa18a0a79e591988ad93ed009edc40849 (functionally). Right now, the --config-dir option silently causes all watch_later and cache files to be written in the --config-dir as well. This is pretty uninitutive and also not desirable in most cases so get rid of this. libmpv users will have to set the corresponding options or env vars if they want to keep the old behaviour.
* external_files: base cover-art-whitelist on cover-art-auto-extsGuido Cella2023-10-011-3/+4
| | | | | | | | | | Combine the cover art whitelist with the extensions in --cover-art-auto-exts instead of hardcoding them. This is shorter, checks for more extensions, saves us from updating the whitelist everytime we add a new image extension, and since the whitelist had gotten so big and the priority is calculated as MP_ARRAY_SIZE(cover_files) - n, files like cover.jpg were taking priority over cover art loaded by --cover-art-auto=exact.
* DOCS/interface-changes: also mention --window-affinityDudemanguy2023-10-011-0/+1
| | | | | Added in 2c738ca54b16cdd1982473672bd39068fcf8d948. I guess we seem to always mention any added option these days so might as well.
* DOCS/interface-changes: mention --backdrop-typeKacper Michajłow2023-10-011-0/+1
| | | | Added in f19ada7b583e9bf78de38d228a956c365b5c417b
* DOCS/lua: remove superfluous parameterChristoph Heinrich2023-09-301-1/+1
| | | | This seems to have been a leftover from copying the entry below it.
* command: deprecate shared-script-propertiesDudemanguy2023-09-271-0/+1
| | | | user-data is simply better.
* DOCS/options: update lavfi-complex examplesGuido Cella2023-09-271-2/+2
| | | | | Show how to stack 3 or more videos, and remove the life filter example because it should be used with av://lavfi:life.
* af_scaletempo2: raise max playback rate to 8.0llyyr2023-09-271-1/+1
| | | | | | 4.0 was too low and copied from Chromium defaults when the filter was initially written, there's no good reason for it to be so low, so double it.
* DOCS/options: add example for custom pitch correction filterllyyr2023-09-271-2/+16
|
* DOCS/mpv: update the wheel bindingsGuido Cella2023-09-271-2/+2
| | | | Update the docs to the new bindings set by 981a9372ff.
* win32: add option to change backdrop styleDeadSix2023-09-271-0/+10
|
* DOCS/options: update libplacebo-opts documentation URLNiklas Haas2023-09-261-1/+1
|
* input.conf: make `u` toggle between force and yesllyyr2023-09-251-3/+3
| | | | | | | | There was a discrepancy in what the keybind was advertised to do in the manual, and what the comment in input.conf described it to be doing. It makes very little sense to add a keybind that changes the default and doesn't allow you to get back to the default. This keybind is much more useful if it toggles between yes/force instead of no/force.
* DOCS/input: update aegisub URLGuido Cella2023-09-251-1/+1
|
* vo_gpu: remove --scaler-lut-sizeNiklas Haas2023-09-252-8/+1
| | | | | | | Pointless bloat option, hard-coded as 256 now in libplacebo and no reason not to also hard-code in mpv. See-Also: haasn/libplacebo@64d7c5aab06766a9492d3cfffd35333792052cd9
* vo_gpu: remove --scale-cutoff etcNiklas Haas2023-09-252-8/+1
| | | |