| ... | ... |
@@ -6,6 +6,38 @@ Rotate [`mpv`][] videos by [arbitrary angles on the GPU][]. |
| 6 | 6 |
[`mpv`]: https://mpv.io |
| 7 | 7 |
[arbitrary angles on the GPU]: https://github.com/mpv-player/mpv/issues/3434#issuecomment-275195855 |
| 8 | 8 |
|
| 9 |
+## Installation |
|
| 10 |
+ |
|
| 11 |
+Copy or [symlink][] the following file into the [`mpv` configuration |
|
| 12 |
+directory][], preserving subdirectories: |
|
| 13 |
+ |
|
| 14 |
+- [`scripts/gpu_rotate.lua`][] |
|
| 15 |
+ |
|
| 16 |
+Example usage configuration can be found in: |
|
| 17 |
+ |
|
| 18 |
+- [`mpv.conf.example`][] |
|
| 19 |
+- [`input.conf.example`][] |
|
| 20 |
+ |
|
| 21 |
+On Unix-likes, creating symlinks can be done automatically by [`stow`][] by |
|
| 22 |
+running the following from the repository root: |
|
| 23 |
+ |
|
| 24 |
+```sh |
|
| 25 |
+stow --no-folding --ignore='\.example$' --target="$HOME/.config/mpv" . |
|
| 26 |
+``` |
|
| 27 |
+ |
|
| 28 |
+[symlink]: https://en.wikipedia.org/wiki/Symbolic_link |
|
| 29 |
+[`mpv` configuration directory]: https://mpv.io/manual/master/#files |
|
| 30 |
+[`scripts/gpu_rotate.lua`]: scripts/gpu_rotate.lua |
|
| 31 |
+[`mpv.conf.example`]: mpv.conf.example |
|
| 32 |
+[`input.conf.example`]: input.conf.example |
|
| 33 |
+[`stow`]: https://www.gnu.org/software/stow/ |
|
| 34 |
+ |
|
| 35 |
+## Contributing |
|
| 36 |
+ |
|
| 37 |
+Lint with [`luacheck`][]. |
|
| 38 |
+ |
|
| 39 |
+[`luacheck`]: https://github.com/mpeterv/luacheck |
|
| 40 |
+ |
|
| 9 | 41 |
## License |
| 10 | 42 |
|
| 11 | 43 |
Licensed under the [ISC License][] unless otherwise noted, see the |
| ... | ... |
@@ -5,3 +5,11 @@ Rotate [`mpv`][] videos by [arbitrary angles on the GPU][]. |
| 5 | 5 |
[`mpv-gpu-rotate`]: https://git.rcrnstn.net/rcrnstn/mpv-gpu-rotate |
| 6 | 6 |
[`mpv`]: https://mpv.io |
| 7 | 7 |
[arbitrary angles on the GPU]: https://github.com/mpv-player/mpv/issues/3434#issuecomment-275195855 |
| 8 |
+ |
|
| 9 |
+## License |
|
| 10 |
+ |
|
| 11 |
+Licensed under the [ISC License][] unless otherwise noted, see the |
|
| 12 |
+[`LICENSE`][] file. |
|
| 13 |
+ |
|
| 14 |
+[ISC License]: https://choosealicense.com/licenses/isc |
|
| 15 |
+[`LICENSE`]: LICENSE |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,7 @@ |
| 1 |
+# [`mpv-gpu-rotate`][] |
|
| 2 |
+ |
|
| 3 |
+Rotate [`mpv`][] videos by [arbitrary angles on the GPU][]. |
|
| 4 |
+ |
|
| 5 |
+[`mpv-gpu-rotate`]: https://git.rcrnstn.net/rcrnstn/mpv-gpu-rotate |
|
| 6 |
+[`mpv`]: https://mpv.io |
|
| 7 |
+[arbitrary angles on the GPU]: https://github.com/mpv-player/mpv/issues/3434#issuecomment-275195855 |