-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lua script not working #41
Comments
I was able to reproduce this. The problem seems to be that mpv loads the lua scripts from the |
That will work! Right now when I pass script to MPV constructor it won't complain, but nothing happens either. Is this already supported? |
I'll have to look into this some more. I just tested it and the lua script gets loaded properly, but the |
I was able to reproduce that the Due to a change in the options API you will also have to rename the script option in your python source code to scripts . I'll close this issue for now. If there is anything left unclear, please go ahead and repoen it. |
Just tried setting script property to a lua script:
player['script'] = "/path/to/test.lua"
It gives me this error:
RuntimeError: ('Generic error getting or setting mpv property', -11, (<MpvHandle object at 0x7f7e33d78a60>, b'options/script', b'/path/to/test.lua'))
It works by running mpv directly: mpv input.mov --script=/path/to/test.lua
The lua script is simply the one from mpv docs:
The text was updated successfully, but these errors were encountered: