Skip to content

Latest commit

 

History

History
110 lines (87 loc) · 6.73 KB

README.md

File metadata and controls

110 lines (87 loc) · 6.73 KB

OMPL - Opinionated Music Player/Library v0.10.0

Features

  • Fully functional TUI with mouse & tty support
    • Filter and sort tags however you want. See Tagstrings and Filters
    • Blocky album art display
    • Pretty colors
  • Fully functional CLI that interacts either with the TUI or a daemon
    • Identical functionality and control in both TUI and CLI
  • Sympal backend (default)
    • + Efficient seeking and playback
    • + Supports many formats
    • - May use more memory for extremely long tracks
  • Rodio backend
    • + Possibly better platform compatibility
    • - No seeking of any kind
    • - Limited supported formats
  • Support for many audio formats
    • Sympal backend: everything Symphonia supports
      • Verified working on mp3, m4a, ogg, flac, wav
      • Symphonia often fails to identify non-audio containers such as mp4 and mkv
    • Rodio backend: [".mp3", ".flac", ".ogg", ".wav"]
    • All ID3v2 tags/frames. You may sort by either the 4-character codes (TALB, TIT2, etc) or the human names. There's no standardization for the human names, so I tried to match what other taggers & players do.
    • Vorbis comments
    • Utilizes ReplayGain (track gain only)
  • Pure Rust where possible; completely portable
  • Very fast - Handle a few thousand files effortlessly on a low power device
  • Interfaces as a media player for direct OS control

Goals for 1.0

  • Code docs
  • Stability
  • SYMPAL guest channel muxing

Installation

Manually compiled and tested binaries for Linux and Windows are provided on the releases tab

Additionally, stable release binaries are automatically compiled and uploaded for Linux, Windows, and MacOS with the Build Latest Release Tag Action while the latest unstable binaries are can be found in the Build Master Release Action

Simply pick the most recent (or otherwise) build of your choosing and download the artifact for your system. It'll arrive in a .zip file which you should be able to unpack and run anywhere.

As of OMPL 0.9, the default features do not include backend-rodio. The binaries created by Actions opt-in to including it.

If you already have Rust installed, you can install directly from source with

cargo install --git https://github.com/Beinsezii/ompl.git

Additionally, the some features are gated behind cargo flags. These are all enabled by default, but can be disabled if a lighter binary is desired.

  • media-controls : Media interface, enables the operating system to control the player directly
  • tui : Enables the TUI. Without, will always run as a daemon
  • clipboard : Enables clipboard in the TUI
  • backend-rodio : Rodio backend
  • backend-sympal : Sympal backend
  • album-art : Enables album art display in the TUI
  • jack : Set backend-sympal to use JACK instead of ALSA on Linux. Mostly intended for testing purposes.

It's recommended you add the downloaded binary or cargo install directory to your environment PATH for ease of use.

Usage

To start a simple example filtering by album and sorting by title run ompl main Path/To/Music -f album -s title

To change filters to the "Epic" genre with "Thomas Bergersen" and "Nick Phoenix" as the artists run ompl filter set 'genre=Epic' 'artist=Thomas Bergersen,Nick Phoenix'

Finally play the current track with ompl play

To view a full list of commands run ompl help

Tagstrings

OMPL can sort by literal tags or "tagstrings", a special markup language for creating 'presentable' strings given the presence or lack of specific tags.

  • To simply filter by a single tag, you may type it literally: album will result in "Album"
  • To sort by multiple tags in one filter, use angle brackets like you would other markup language tags:<genre> <album> will result in "Genre Album"
  • To check for a tag's existence, use a vertical bar separating what you wish to display: <album|<album> - ><title> will result in "Album - Title" if the album tag is present, or "Title" if no album tag is present
  • To check for a tag's absence, add an exclamation after the first bracked: <album|<album>><!album|<title>> will result in "Album" if the album tag is present, or "Title" if no album tag is present.

Extra syntactical notes:

  • ??? will be the result if a non-conditional tag such as <tag> isn't found. Use a condition if you don't wish to display this: <tag|<tag>><!tag|Tag not found!>
  • Use \ to escape characters: \<title\>: <title> will result in "<title>: Title"

Filters

Filters are just Tagstrings that can also have values assigned to them.

  • In the TUI this is done by selecting them.
  • In the CLI you may append items after an equal =, ex title=Song1,Song2 or <genre>/<album>="Spicy/Meatball"
    • Using Tagstrings directly (ie, without any items) is valid. This results in an empty filter, useful for laying out the TUI

F.A.Q.

Question Answer
Can you add support for my strange and unusual use-case? OMPL isn't designed in any way to stream Spotify/show synchronized lyrics/etc. Try quodlibet or foobar2000, they both have similar layouts to OMPL
Can you change X functionality to be more like existing standards? Maybe. Create an Issue with a good reason for the change, and ideally a source showing the standard implementation
Where is the configuration file? Every configurable setting is exposed by the CLI. Create a shortcut wherever you want and add the command line flags. If something isn't available through CLI in some way, create an Issue

SECRET KNOWLEDGE

  • Left click on a filter's tagstring to invert the selection
  • Right click on a filter's tagstring to clear the selection
  • Right click and drag to select many items
  • The symbols on the bottom of filter/sorter panes are buttons for move<- add<- edit remove add-> move->
  • Middle click a pane to highlight it without selecting anything
  • Right click in the queue to select a track without playing it
  • Right click the selected track again to center the view
  • Scroll works almost everywhere, even on the volume indicator
  • Right click the statusline or playback time to edit them directly
  • Drag the seekbar to scrub it like a SoundCloud DJ
  • Maybe more I forgot...