Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd July 2017, 21:29 | #1 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
libmpv development with C#
Does anybody know if libmpv supports the OSC?
I wanted to learn Lua and thought it's nice but then I realized that I would need too much time to learn it. Now I want to try to script the player with JavaScript, does anybody know if I can rename a file or start a process that renames a file? Are there other players that are scriptable/extendable? I know VLC supports Lua scripting and Kodi supports Python scripting.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
27th July 2017, 04:47 | #2 | Link | |
Capture, Deinterlace
Join Date: Feb 2002
Location: Right there
Posts: 1,971
|
Not sure. Regardless, I think typically you'd use libmpv to embed the video content in a GUI of your own.
Quote:
Both Lua and JS in mpv support "mp.utils.readdir()" and "mp.utils.subprocess" command to execute an arbitrary program with arguments, which you could probably use to rename a file. JS in mpv also has high level functions for reading and writing (but not deleting) plain text files, so depending on your exact needs, it might be enough. See https://mpv.io/manual/master/#lua-scripting and https://mpv.io/manual/master/#javascript . |
|
27th July 2017, 12:18 | #3 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Thanks for the help, mp.utils.subprocess should work for me, I need it to write a rating to the filename of the video files.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
Thread Tools | Search this Thread |
Display Modes | |
|
|