This is a POC! It is a mpv
plugin, written in crystal, using the C plugin interface of mpv
.
MPV's C plugins interface is disabled by default, you'll need to build mpv
with --enable-cplugin
to activate it.
Follow the instructions at mpv-player/mpv to build mpv
. When asked to configure the project, run:
$ ./waj configure --enable-cplugin
Continue the other steps to compile mpv
.
Build the plugin's shared library with:
$ make
If you want to rebuild it, use:
$ make re
To clean the repository, and re-build the plugin.
Once you have your custom mpv
build and the plugin's shared library, you can run test it with:
$ /path/to/custom/mpv /path/to/media/file --script ./mpv-crystal-simple-plugin.so
- Fork it ( https://github.com/bew/mpv-crystal-simple-plugin/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- bew Benoit de Chezelles - creator, maintainer