summaryrefslogtreecommitdiffstats
path: root/DOCS
Commit message (Collapse)AuthorAgeFilesLines
* DOCS/options: fix --image-display-duration's documentationGuido Cella2023-12-251-6/+6
| | | | | | - --image-display-duration does not hide the OSC. - Saying "Setting --image-display-duration" makes no sense because it is not a boolean and it cannot be unset.
* DOCS/interface-changes: add --secondary-sub-ass-overrideJohhanSam2023-12-241-0/+1
| | | | Option added in b563b2ae
* mac: add support for --auto-window-resize optionder richter2023-12-231-1/+0
| | | | Fixes #9325
* osc: allow disabling special mouse wheel behaviorDudemanguy2023-12-211-0/+7
| | | | | | | | When hovering certain elements over the OSC, using the mouse wheel can result in special commands (such as seeking, changing audio tracks, etc.) Not everyone neccessarily wants this feature, so add an option to make it possible to disable all of it. Maybe more fine-tuned control would be more ideal, but probably not worth it. Fixes #13096.
* options: add --secondary-sub-ass-overridedyphire2023-12-181-0/+6
| | | | Default: strip. preserve the old behavior
* command: support passing scale to `keypress`sfan52023-12-171-3/+5
|
* DOCS/options: fix documentation for replaygain-clipDudemanguy2023-12-161-2/+2
| | | | | | | f1c4d20e6577f32018e20efc4ab9da7d4e1ab4ac added this option, but the documentation is actually backwards. --replaygain-clip allows clipping. Having it disabled, the default, prevents it. Keep the behavior the same, but change the documentation to reflect reality. Closes #13111.
* mac: add support for drag-and-drop optionder richter2023-12-151-1/+0
|
* console.lua: implement case-insensitive completionGuido Cella2023-12-151-0/+5
| | | | | | This is useful for completing files and more rarely for profiles. It will also be useful to third-party scripts interacting with the console once the API to do it is merged.
* options: add --secondary-sub-poskarelrooted2023-12-131-2/+6
| | | | The default value is 0 (on the top of the screen)
* Revert "OSC: Remove merriment"Niklas Haas2023-12-131-0/+5
| | | | | This reverts commit af2635d8c9389504cb0b07a78f3999096d80a1ab, and restores feature parity with VLC.
* OSC: Remove merrimentMia Herkt2023-12-131-5/+0
| | | | | | | | | | | | | I honestly don’t care either way but I also don’t believe this innocent and cute hat is worth repeatedly having people show up on the issue tracker to aggressively virtue signal and then shit-talk the project elsewhere when their “concerns” are ignored and made fun of. For the record, I approve of neither brand of childish nonsense. If your workflow depends on December festivities, feel free to use an alternative OSC implementation. Fixes #13082 and #9548
* filter_sdh: add full width parentheses to the enclosures stringDudemanguy2023-12-081-3/+4
| | | | | Since these are technically parentheses, we'll treat them the same way as normal parenthesis. Fixes #11155.
* filter_sdh: add --sub-filter-sdh-enclosures optionDudemanguy2023-12-082-2/+15
| | | | | | | | | | | This filter is a bit complicated, but one of the essential parts of it is removing text enclosed by particular set of characters (e.g. text inbetween []). This was previously hardcoded to only take into account parenthesis and brackets, but people may want to filter more things so make this customizable. The option only takes "left hand characters" so the right pair is mapped internally if applicable. If not, then we just use the same character. Fixes #8268 since the unicode character in question can just be passed to this option.
* player/command: add ability to scale overlayGraham Booker2023-12-081-1/+6
|
* console.lua: cycle through completionsGuido Cella2023-12-061-1/+5
|
* console: automatically determine the font_hw_ratioChristoph Heinrich2023-12-061-1/+2
| | | | | | | | | | | A simplified version of the text width estimation code from uosc. An osd_overlay is created with compute_bounds=true for measuring the width of the lower case alphabet at what's estimated to be the largest font size possible without clipping. The lower case alphabet was chosen to get decent results for proportional fonts, even if they aren't officially supported.
* DOCS/interface-changes: document renaming of MP_KEY_BACKnanahi2023-12-061-0/+1
| | | | The navigation key is renamed to avoid conflict with MP_KEY_FORWARD.
* image_writer: default to lossless AVIF screenshotsKacper Michajłow2023-12-042-3/+4
| | | | | Also change the example to crf=23. crf=32 is pretty bad quality, don't give users bad usage ideas.
* image_writer: use common format selection for AVIF screenshotsKacper Michajłow2023-12-042-3/+3
| | | | --screenshot-avif-pixfmt no longer defaults to yuv420p.
* DOCS/options: clarify --spirv-compilersfan52023-11-271-3/+3
|
* options: add --osd-bar-border-sizeGuido Cella2023-11-272-0/+7
| | | | | Closes #1484. The default size is smaller than the previous --osd-border-size default value of 3 with the default --osd-bar-h.
* DOCS/mpv: quotes in mpv.conf don't escape backslashGuido Cella2023-11-271-2/+3
| | | | | I don't know why I thought they did in 7798881360, but single quotes disable escape sequences only in input.conf commands.
* options: add secondary-sub-delayRipose2023-11-262-1/+6
| | | | | | | | | | | | | Add --secondary-sub-delay option and decouple --sub-delay from secondary subtitles. This produces desirable behavior in most cases as secondary and primary subtitles tracks tend to be timed independently of one another. This feature is implemented by turning the sub_delay field in mp_subtitle_opts into an array of 2 floats. From here the track index is either passed around or derived when sub_delay is needed. There are some cases in dec_sub.c where it is possible for dec_sub.order (equivalent to track index) to be -1. In these cases, sub_delay is inferred as 0.
* DOCS/options: remove the mention of cocoa and its removed backendder richter2023-11-251-8/+6
| | | | | | | | the cocoa backend was removed and all functionality is either available on all macOS backends or explicitly only with cocoa-cb. the manual should properly reflect that change. also remove the last mention of the old cocoa backend.
* player: remove shared-script-properties propertyDudemanguy2023-11-222-24/+2
| | | | | | | | | | | | This property was never encouraged. The manual even stated that "You should avoid using it, unless you absolutely have to." Since we now have user-data which is superior in every single way and replaces this, delete this property. The manual also has threatened people for years with the line "It's a makeshift solution which could go away any time (for example, when a better solution becomes available)." We were nice and deprecated it in 1d00aee8e191c9689a20e67e3d6dfd2af6ad2588 for a while to give script authors some time to update. Let's remove it for good now.
* vaapi: add support for vaapi-win32Kacper Michajłow2023-11-221-2/+5
| | | | | | | | | | | Only vaapi-copy variant as nothing can map D3D12 resources currently. And even if we would add resource sharing to D3D11 it would invoke copy at some point, so there is no point really. Maybe in the future when libplacebo get smarter about resource sharing on Windows, but practical advantages are really small. I've tested it with Vulkan <-> D3D11 sharing and GPU <-> GPU copy is still invoked. Better than CPU memcpy, something for the future.
* Release 0.37.0v0.37.0release/0.37sfan52023-11-211-4/+2
|
* DOCS/options: admonish users for touching --3dlut-sizeNiklas Haas2023-11-201-2/+5
| | | | | | | | | | | | The "auto" logic is vastly better than setting a specific size. This option amounts to "allow users to shoot themselves in the foot" flag, given that the vast majority of ICC profiles in the wild are fine on 17x17x17 or even smaller 3DLUTs. Setting stupidly high --3dlut-size is the main source of ICC-related slow startup issues, and there is absolutely no conceivably benefit to going above the defaults except for pixel peeping and chasing tiny PSNR increments.
* DOCS/options: reword cache optionsNiklas Haas2023-11-201-11/+11
| | | | | | D3D11 is actually the main platform that suffers from slow shader compilation, typical Vulkan/GL drivers are either very fast to begin with, or already internally cache.
* DOCS: properly document --force-window-position for sdl vonanahi2023-11-181-1/+1
| | | | The behavior is also the case for SDL vo, so document it.
* command: export storage aspect ratio (sar) propertiesnanahi2023-11-141-0/+6
| | | | | | | | | Display aspect ratio (aspect) and pixel aspect ratio (par) are already exported, but storage aspect ratio (sar) isn't. This value is needed to display the storage aspect ratio for non-square pixel sources in stats.lua. This exports two new properties: video-params/sar and video-params/sar-name. Docmentation is updated accordingly.
* DOCS/options: update watch-later-options docsKacper Michajłow2023-11-122-5/+9
|
* options: add more properties to default watch-later-optionsKacper Michajłow2023-11-121-0/+1
| | | | | | | | | | | | | | | | | | | Adds: --secondary-sub-visibility --video-aspect-method --video-unscaled --video-pan-x --video-pan-y --video-rotate --video-crop --video-zoom --video-scale-x --video-scale-y --video-align-x --video-align-y Those properties are related to playback state and are likely expected to be restored when resuming playback.
* options: remove not relevant props from default watch-later-optionsKacper Michajłow2023-11-121-0/+2
| | | | | | | | | | | | Removes: --border --fullscreen --ontop --osd-level --pause Those options are not really content related. I don't see much gain to save them per each watch later entry.
* DOCS/options: osd-shadow is ignored with osd-back-colorGuido Cella2023-11-121-6/+5
| | | | The back color overrides the shadow, not the border.
* 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-