{"id":21570403,"url":"https://github.com/arirusso/mmplayer","last_synced_at":"2025-06-20T02:32:54.791Z","repository":{"id":30739829,"uuid":"34296230","full_name":"arirusso/mmplayer","owner":"arirusso","description":"Control MPlayer with MIDI","archived":false,"fork":false,"pushed_at":"2017-06-08T21:01:29.000Z","size":76,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T10:55:37.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arirusso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-21T01:20:09.000Z","updated_at":"2017-03-10T23:11:34.000Z","dependencies_parsed_at":"2022-09-09T00:02:16.306Z","dependency_job_id":null,"html_url":"https://github.com/arirusso/mmplayer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arirusso/mmplayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fmmplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fmmplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fmmplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fmmplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arirusso","download_url":"https://codeload.github.com/arirusso/mmplayer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fmmplayer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260865548,"owners_count":23074654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T11:12:32.479Z","updated_at":"2025-06-20T02:32:49.782Z","avatar_url":"https://github.com/arirusso.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mmplayer\n\n![image](http://i.imgur.com/Te9nymX.png)\n\nControl [MPlayer](http://en.wikipedia.org/wiki/MPlayer) with MIDI\n\nMPlayer is a free, cross-platform, command-line driven, highly configurable, (often) GUI-less open-source media player.\n\nEnabling MPlayer to be controlled by MIDI opens up a host of possibilities for live video performance, media automation and more\n\nThis project provides a Ruby DSL to define realtime interactions between MIDI input and MPlayer\n\n## Install\n\nYou'll need to install MPlayer before using this.  That can usually be accomplished with a package manager eg `brew install mplayer` depending on what OS you're using.\n\nThis project itself can be installed as a Ruby Gem using\n\n`gem install mmplayer`\n\nOr if you're using Bundler, add this to your Gemfile\n\n`gem \"mmplayer\"`\n\n## Usage\n\n```ruby\nrequire \"mmplayer\"\n\n@input = UniMIDI::Input.gets\n\n@player = MMPlayer.new(@input, :mplayer_flags =\u003e \"-fs\") do\n\n  rx_channel 0\n\n  system(:start) { play(\"1.mov\") }\n\n  note(1) { play(\"2.mov\") }\n  note(\"C2\") { play(\"3.mov\") }\n\n  cc(1) { |value| volume(:set, value) }\n  cc(20) { |value| seek(to_percent(value), :percent) }\n\n  eof { puts \"finished\" }\n\nend\n\n@player.start\n\n```\n\nAn annotated breakdown of this example can be found [here](https://github.com/arirusso/mmplayer/blob/master/examples/simple.rb)\n\n[The MPlayer Man Page](http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html#GENERAL%20OPTIONS) has a full list of MPlayer startup flags\n\nAll MPlayer runtime commands enabled by the [mplayer-ruby](https://rubygems.org/gems/mplayer-ruby) project are available here too. (eg `seek` and `volume` in the example above).  [The RDOC for mplayer-ruby](http://mplayer-ruby.rubyforge.org/mplayer-ruby/index.html) has a full list of runtime commands\n\n## License\n\nApache 2.0, See LICENSE file\n\nCopyright (c) 2015-2017 [Ari Russo](http://arirusso.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farirusso%2Fmmplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farirusso%2Fmmplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farirusso%2Fmmplayer/lists"}