aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
Commit message (Collapse)AuthorAge
...
* stats: always print title if different from filenameGravatar Ricardo Constantino (:RiCON)2017-10-09
|
* stats: make a warning more visibleGravatar Julian2017-10-09
| | | | Print it to console and especially OSD upon each invocation
* stats: rename some functionsGravatar Julian2017-10-09
| | | | More useful names
* stats: add toggling of statsGravatar Julian2017-10-09
| | | | | | | | | | | | You can now either show the stats once or toggle their display. Both are using different key bindings which are additionally configurable now. Please bear in mind that "toggling" means "redraw every x seconds for x seconds". Therefore, this approach is prone to problems especially when something else is printing text to the OSD as well as every of these calls will overwrite each other. This is currently a limitation of mpv. Fixes #18
* stats: add hwdec-currentGravatar Ricardo Constantino (:RiCON)2017-10-09
| | | | | Fallback to hwdec-active if not available. This one will be removed in mpv 0.19.0.
* stats: add cache-speedGravatar Ricardo Constantino (:RiCON)2017-10-09
|
* stats: decrease default font sizeGravatar Julian2017-10-09
| | | | It's getting a bit cramped
* stats: add video-params/gamma propertyGravatar Niklas Haas2017-10-09
|
* stats: update frame drop diagnosticsGravatar Kevin Mitchell2017-10-09
|
* stats: add display fpsGravatar Kevin Mitchell2017-10-09
|
* stats: rename some variables for consistencyGravatar Julian2017-10-09
|
* stats: add support for video-sync=displayGravatar Niklas Haas2017-10-09
|
* stats: fix line wrappingGravatar Julian2017-10-09
| | | | | These spaces were not displayed on screen, however they were taken into account for line wrapping.
* stats: remove dead link from commentGravatar Julian2017-10-09
|
* stats: print bold text in terminalsGravatar Rostislav Pehlivanov2017-10-09
| | | | | | | | | | This simply prints ASCII codes to display any text marked as bold in the terminal. Supported by every sane terminal since 1986. For those insane, there's a check. The check has been copied from the ansicolors.lua script floating around and it checks if the directory path uses "\" instead of "/", and in case it does, it checks whether ANSICON env variable has been set (which is used to indicate the Windows terminal supports ACII escape sequences).
* stats: minor simplificationGravatar Julian2017-10-09
|
* stats: remove countless hardcoded stringsGravatar Julian2017-10-09
| | | | feels a bit better that way
* stats: document append_property return valueGravatar Julian2017-10-09
|
* stats: fix oversightGravatar Julian2017-10-09
| | | | this one slipped through my "tests"
* stats: unify redundant functionsGravatar Julian2017-10-09
| | | | | | | | | Unify both append_property* functions and greatly refactor them. Instead of thousands of arguments we now use a table. While this is in theory cleaner it does not exactly look like it. However, it's way more flexible and extendable this way. Also, since the new append_property() might look a bit confusing I felt the need to add a comment.
* stats: proper usage of imported moduleGravatar Julian2017-10-09
| | | | and comment nitpicking
* stats: add debug optionGravatar Julian2017-10-09
| | | | print a warning for properties without value
* stats: reflect latest changes to mpvGravatar Julian2017-10-09
| | | | | | Some properties were renamed recently. Of course this requires a recent mpv built (> https://github.com/mpv-player/mpv/commit/f9507f) now.
* stats: don't add superfluous EOL charactersGravatar Julian2017-10-09
| | | | | Previously we unnecessarily added newline characters at the end. Only noticeable when printed on terminal, though.
* stats: make non-ASS styling configurableGravatar Julian2017-10-09
| | | | | Also add a few convenience functions and remove the unused italic and underlined formatting functions.
* stats: make the OSD usable in audio-only modeGravatar Rostislav Pehlivanov2017-10-09
| | | | | | | | | | | | Previously, the script would throw garbage (ASS tags) at the terminal when the bound key was pressed. This changes the behaviour to _not_ print any ASS tags (and replace those which can be interpreted by the terminal) if there's no video. I cleaned the patch up since you mentioned you were busy. As I said before, there is absolutely no problem with calling mpv to display strings to the OSD without any video. They'll just go straight to the terminal just as they would with an active VO.
* stats: avoid clashing with similar named scriptsGravatar Julian2017-10-09
|
* stats: initial commitGravatar Julian2017-10-09
|
* osc: fix rare stack overflow when changing visibility modeGravatar Avi Halachmi (:avih)2017-09-23
| | | | | | | | | | | | | Under some conditions, hide_osc() was calling render(), which then called hide_osc() again, and so forth, until the stack overflows. Tracking the exact conditions where this happens (and then managing them to prevent it) is an excercise in futility. Remove the osc directly - instead of going through the entire rendering procedure just to end up rendering nothing. Fixes #4900 .
* ytdl_hook: resolve relative paths when joining segment urlsGravatar Ricardo Constantino2017-09-03
| | | | | FFmpeg/mpv don't do it automatically. See #4827
* input: merge mouse wheel and axis keycodesGravatar James Ross-Gowan2017-09-03
| | | | | | | | | | | | | | | | | | | | | | Mouse wheel bindings have always been a cause of user confusion. Previously, on Wayland and macOS, precise touchpads would generate AXIS keycodes and notched mouse wheels would generate mouse button keycodes. On Windows, both types of device would generate AXIS keycodes and on X11, both types of device would generate mouse button keycodes. This made it pretty difficult for users to modify their mouse-wheel bindings, since it differed between platforms and in some cases, between devices. To make it more confusing, the keycodes used on Windows were changed in 18a45a42d524 without a deprecation period or adequate communication to users. This change aims to make mouse wheel binds less confusing. Both the mouse button and AXIS keycodes are now deprecated aliases of the new WHEEL keycodes. This will technically break input configs on Wayland and macOS that assign different commands to precise and non-precise scroll events, but this is probably uncommon (if anyone does it at all) and I think it's a fair tradeoff for finally fixing mouse wheel-related confusion on other platforms.
* input: use mnemonic names for mouse buttonsGravatar James Ross-Gowan2017-09-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | mpv's mouse button numbering is based on X11 button numbering, which allows for an arbitrary number of buttons and includes mouse wheel input as buttons 3-6. This button numbering was used throughout the codebase and exposed in input.conf, and it was difficult to remember which physical button each number actually referred to and which referred to the scroll wheel. In practice, PC mice only have between two and five buttons and one or two scroll wheel axes, which are more or less in the same location and have more or less the same function. This allows us to use names to refer to the buttons instead of numbers, which makes input.conf syntax a lot easier to remember. It also makes the syntax robust to changes in mpv's underlying numbering. The old MOUSE_BTNx names are still understood as deprecated aliases of the named buttons. This changes both the input.conf syntax and the MP_MOUSE_BTNx symbols in the codebase, since I think both would benefit from using names over numbers, especially since some platforms don't use X11 button numbering and handle different mouse buttons in different windowing system events. This also makes the names shorter, since otherwise they would be pretty long, and it removes the high-numbered MOUSE_BTNx_DBL names, since they weren't used. Names are the same as used in Qt: https://doc.qt.io/qt-5/qt.html#MouseButton-enum
* ytdl_hook: support fragments with relative pathsGravatar Ricardo Constantino2017-08-06
| | | | | | | Unbreaks segmented DASH with the change in https://github.com/rg3/youtube-dl/commit/1141e9104 which made each segment URL only use relative path from fragment_base_url with a different key.
* ytdl_hook: add a header to support geo-bypassGravatar Jagannathan Tiruvallur Eachambadi2017-07-16
| | | | | | youtube-dl supports bypassing some geographic restrictions by setting X-Forwarded-For header when used with geo-bypass and geo-bypass-country.
* ytdl_hook: actually load the script-optsGravatar Ricardo Constantino2017-07-11
| | | | | Also, comma-separated list doesn't actually work, even quote-surrounded. Switch to using | instead.
* ytdl_hook: add option to exclude URLs from being parsedGravatar Ricardo Constantino2017-07-11
| | | | | | | | | This is more of a niche usecase than --ytdl-format and --ytdl-raw-options, so a simple script option should be enough. Either create lua-settings/ytdl_hook.conf with 'exclude=example.com,sub.example.com' option or "--script-opts=ytdl_hook-exclude=example.com,sub.example.com"
* ytdl_hook: add times for ytdl and hook running on debug-levelGravatar Ricardo Constantino2017-07-11
| | | | Not really important, but still interesting to know.
* ytdl_hook: add pre-parsed chapters, if availableGravatar Ricardo Constantino2017-07-02
| | | | Available since 2017.05.07 but only on certain extractors.
* ytdl_hook: don't override start time set by saved stateGravatar Martin D2017-06-09
| | | | This affects resuming playback from a watch_later directory so that you can resume playback even for URLs that have a start parameter.
* ytdl_hook: don't override user-set start timeGravatar Ricardo Constantino2017-06-08
|
* OSD message: "Drop files or URLs to play here."Gravatar nodiscc2017-05-31
| | | | Add "or URLs" to the default OSD message when mpv is launched without parameters. Since this works flawlessly with youtube-dl integration, the fact that you can drop URLs directly to the window should be advertised more.
* ytdl_hook: rework edl joining to use lua tablesGravatar Ricardo Constantino2017-05-04
| | | | Seems much more resource efficient than concatenating a string.
* osc: also add processing for axis_up/down eventsGravatar Ricardo Constantino2017-04-25
| | | | | | Considered semantically equivalent with mouse_btn3/4. This is a preemptive fix for upcoming changes to AXIS_* events.
* ytdl_hook: treat single-entry playlists as a single videoGravatar Ricardo Constantino2017-04-23
|
* ytdl_hook: move single video code to a separate functionGravatar Ricardo Constantino2017-04-23
|
* osc: add user_opts.boxmaxchars for box layout title limitGravatar Avi Halachmi (:avih)2017-04-19
| | | | | The default of 80 is conservative to allow relatively wide fonts, but with many common fonts a bigger number can be used without overflow.
* osc: add volume icons to osd font and use themGravatar Ricardo Constantino2017-04-19
| | | | | Glyphs taken and based on U+1F507 to U+1F50A from Symbola, which is available under public domain: http://users.teilar.gr/~g1951d/
* osc: move volume left of fullscreen buttonGravatar Ricardo Constantino2017-04-19
|
* osc: bottom/topbar: add fullscreen buttonGravatar Ricardo Constantino2017-04-19
|
* osc: add volume buttonGravatar Ricardo Constantino2017-04-19
| | | | | Click to toggle mute, mouse wheel to change volume. OSD is shown on volume change.