Skip to content

bew/mpv-crystal-simple-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Writing a simple MPV plugin in Crystal

This is a POC! It is a mpv plugin, written in crystal, using the C plugin interface of mpv.

Installation

MPV's C plugins interface is disabled by default, you'll need to build mpv with --enable-cplugin to activate it.

Build mpv

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

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.

Usage

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

Contributing

  1. Fork it ( https://github.com/bew/mpv-crystal-simple-plugin/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • bew Benoit de Chezelles - creator, maintainer

About

A simple MPV C plugin written in crystal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published