Skip to content

Commit 640a7cf

Browse files
authored
add movingsub
1 parent 964dc20 commit 640a7cf

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ A collection of all my scripts. Small ones are in this repo and bigger ones are
22

33
What are lua scripts? [Mpv.io lua documentation](https://mpv.io/manual/master/#lua-scripting)
44
Where should I put them? [Unix](https://mpv.io/manual/stable/#files) [Windows](https://mpv.io/manual/stable/#files-on-windows)
5-
How do I use them? Use default keybinds or bind your own in [input.conf](https://mpv.io/manual/stable/#input-conf). Some of my scripts require you to edit some settings in the head of lua files to work.
6-
7-
Some of my scripts use script-messages for control instead of script-bindings to allow more dynamic commands to be parsed from parameters. You can call script-messages from any other lua script with mp.command("msg"), [mpv-repl](https://github.com/rossy/mpv-repl) by typing or just simply bind them to a key in input.conf.
5+
How do I use them? Use default keybinds or bind your own in [input.conf](https://mpv.io/manual/stable/#input-conf).
6+
7+
Some of my scripts require you to edit some settings in the head of lua files to work as intended(usually paths).
8+
Some of my scripts use script-messages for control instead of script-bindings to allow more dynamic commands to be parsed from parameters. You can call script-messages from any other lua script with `mp.command("script-message _name_ _arg1_ _arg2_")`, [mpv-repl](https://github.com/rossy/mpv-repl) by typing or just simply bind them to a key in input.conf like this `H script-message addscrollingsub "hello world"`.
89

910
If you have problems with any of my scripts or have feature requests feel free to open an issue. Contributions are also welcome.
1011

@@ -35,6 +36,13 @@ If you have problems with any of my scripts or have feature requests feel free t
3536
`script-message trashfileonend true true` - deletefile[true, false], oneonly[true, false]
3637
`mpv --script-opts=trashfileonend-deletefile=yes` - open mpv with deletefile enabled
3738

39+
### [movingsubtitles](https://gist.github.com/jonniek/c3fed06cd7990518e8b2389f48ba3619)
40+
Experimental nicovideo style scrolling subtitles/messages. There seems to be some kind of memoryleak that crashes the script after some time. Also has some hardcoded limits and string transformations that you might want to change. Messages can be sent with script-message from mpv scripts or IPC socket from other sources.
41+
`H script-message addscrollingsub "hello world"`
42+
`$ echo 'script-message addscrollingsub "hello world"' | socat - /tmp/mpvsocket`
43+
`mp.command("script-message addscrollingsub \"hello world\"")`
44+
45+
3846
## My bigger scripts
3947
### [unseen-playlistmaker](https://github.com/donmaiq/unseen-playlistmaker)
4048
Keeps track of your watched files locally and loads unseen files from a specified directory into a playlist on keybind.
@@ -49,6 +57,6 @@ If you have problems with any of my scripts or have feature requests feel free t
4957

5058
 
5159
---
52-
>Permission to use, copy, modify, and/or distribute all of this software for any purpose with or without fee is hereby granted
60+
>Permission to use, copy, modify, and/or distribute all of the above software for any purpose with or without fee is hereby granted
5361
5462
>All of the software is provided as is and the author disclaims all warranties with regard to this software including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, direct, indirect, or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of this software.

0 commit comments

Comments
 (0)