Giter Club home page Giter Club logo

mpv-scripts's Introduction

Various mpv Lua scripts:

(These were initially written to "scratch my own itch", but I hope they can be useful to other people as well. Feedback is most welcome!)

  • tree-profiles (documentation) (source)

    Automatically apply profiles to certain directories or files.

  • sub-fonts-dir-auto (documentation) (source)

    Automatically look for fonts directories to use with sub-fonts-dir.

  • audio-file-keys (documentation) (source)

    Automatically apply key bindings when playing audio files.

  • brace-expand (documentation) (source)

    Perform Bash-style brace expansion on a string.

    Not technically a mpv script, but used by tree-profiles.

mpv-scripts's People

Contributors

fbriere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dimon1p0 erickyun

mpv-scripts's Issues

scanning subfolders #13

is there any way to enable scanning of subfolders in this script?
using the example of the fuzzydir.lua script
so that you can set --sub-fonts-dir=** and forget about prescribing paths to the fonts folder
or could you modify your sub-fonts-dir-auto.lua and add a parameter =**
using the code from fuzzydir.lua
because in the current implementation there is little sense from your script when you can't just run the video and not prescribe paths or copy the folder with the drifts to the video. Although I am very grateful for the work that you have done, but there is just not enough scanning of subfolders.

sub-fonts-dir

where can I download an already compiled exe with sub-fonts-dir?

Get an error that it cant find a bunch of posix directories

[tree_profiles] Lua error: /home/cha/.config/mpv/scripts/tree-profiles.lua:235: module 'posix' not found: [tree_profiles] no field package.preload['posix'] [tree_profiles] no file '/usr/local/share/lua/5.2/posix.lua' [tree_profiles] no file '/usr/local/share/lua/5.2/posix/init.lua' [tree_profiles] no file '/usr/local/lib/lua/5.2/posix.lua' [tree_profiles] no file '/usr/local/lib/lua/5.2/posix/init.lua' [tree_profiles] no file '/usr/share/lua/5.2/posix.lua' [tree_profiles] no file '/usr/share/lua/5.2/posix/init.lua' [tree_profiles] no file './posix.lua' [tree_profiles] no file '/home/cha/.config/mpv/scripts/posix.lua' [tree_profiles] no file '/usr/local/lib/lua/5.2/posix.so' [tree_profiles] no file '/usr/lib/x86_64-linux-gnu/lua/5.2/posix.so' [tree_profiles] no file '/usr/lib/lua/5.2/posix.so' [tree_profiles] no file '/usr/local/lib/lua/5.2/loadall.so' [tree_profiles] no file './posix.so'

I installed lua 5.2 and luarocks hoping it would install the necessary dependencies but no luck.

List option actions no longer work

Profile gets applied correctly but the glsl shader line fails.

[anime]
profile-desc="tree:F:\Videos\Anime"

fullscreen=no
glsl-shader = E:/Softwares/Video Player/mpv.net-portable-x64-5.4.8.0/shaders/Anime4K_3.0_Upscale_CNN_M_x2_Deblur.glsl
fbo-format = rgba16hf
[tree_profiles] Loading lua script E:\Softwares\Video Player\mpv.net-portable-x64-5.4.8.0\portable_config\scripts/tree-profiles.lua...
[tree_profiles] loading mp.defaults
[tree_profiles] loading file E:\Softwares\Video Player\mpv.net-portable-x64-5.4.8.0\portable_config\scripts/tree-profiles.lua
[tree_profiles] brace-expand.lua not found -- brace expansion disabled 
[tree_profiles] luaposix not found -- falling back on alternatives 
[tree_profiles] Searching for parent profile of F:\Videos\Anime\One Punch Man\One Punch Man Season 2\5.mkv 
[tree_profiles] Trying anime (F:\Videos\Anime) 
[tree_profiles] Profile matches as a parent
[tree_profiles] Applying profile anime 
[tree_profiles] Locally applying profile "anime" (depth 1) 
[tree_profiles] Locally setting fullscreen = "no" 
[cplayer] Set property: file-local-options/fullscreen="no" -> 1
[tree_profiles] Locally setting glsl-shader = "E:/Softwares/Video Player/mpv.net-portable-x64-5.4.8.0/shaders/Anime4K_3.0_Upscale_CNN_M_x2_Deblur.glsl" 
[cplayer] Set property: file-local-options/glsl-shader="E:/Softwares/Video Player/mpv.net-portable-x64-5.4.8.0/shaders/Anime4K_3.0_Upscale_CNN_M_x2_Deblur.glsl" -> -3
[tree_profiles] Locally setting fbo-format = "rgba16hf" 

The same glsl shader path works in mpv.conf but not under tree-profiles.lua. Using windows 10.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.