Giter VIP home page Giter VIP logo

dizi's Introduction

Linux build

MacOS build

dizi

Server-client music player written in Rust

The goal of this project is to create a modern version of mocp in Rust.

Alt text

Motivation

mocp currently interfaces with ALSA to play audio. This doesn't play well with pipewire's pipewire-alsa plugin; whenever mocp is playing music, other audio/video apps stop working and vice versa.

Dependencies

  • A system supporting UNIX sockets
  • cargo
  • rustc
  • Jack or Alsa or any other audio system cpal supports
  • file command for audio file detection

Building

~$ cargo build

Installation

For single user

~$ cargo install --path=. --force

System wide

~# cargo install --path=. --force --root=/usr/local     # /usr also works

Usage

~ $ dizi-server     # starts server
~ $ RUST_LOG=debug dizi-server      # starts server with debug messages enabled
~ $ dizi            # starts server if not already started, then starts frontend

Configuration

Check out docs for details and config for examples

  • client configurations
  • for keybindings for client
  • color customizations for client
  • server configurations

Contributing

See docs

Features/Bugs

Please create an issue :)

TODOs

Server-side

  • play/pause support
  • get audio duration (requires rodio and symphonia to work together on this)
  • volume support
  • fast forward/rewind
  • directory playing
    • shuffle
    • repeat
    • next
    • sorting
  • playlist support
    • add/delete/update songs
    • recursively add songs in a directory
    • shuffle
    • repeat
    • next
    • loading
    • clearing
    • save on exit
  • show music progress
  • configurable audio system
  • querying
    • file name
    • file path
    • show audio metadata (title, artists, genre, album, etc)
    • playlist index and length
  • on song change hook

Client-side

  • show hidden files
  • searching
    • glob search
    • case-insensitive search
    • skim search (fzf)
  • show player progression
  • playlist support
    • show playlist
    • add/delete/update songs
    • shuffle
    • repeat
    • next
    • clearing
  • show audio metadata (artists, genre, album, etc)
  • theming support
  • custom layout support

dizi's People

Contributors

kamiyaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dizi's Issues

Migration to cpal, symphonia

Motivation

Currently, dizi uses rodio for audio playback. While this works great for fast development, it lacks certain features that I would like to add to dizi.
Most notably:

  • Audio formats are limited
  • Symphonia backend can't detect duration of audio file
  • Can't seek audio
  • API produces busy waiting when audio is paused
    • API is a bit hard to use in general

Migrating to cpal + symphonia should allow us to address all of these issues.
However, this will be significantly more complicated because we have to manage audio streams, packets, sampling, etc. in-house.

feat: image previews for song/album covers

i'm currently using a wrapper script i wrote for ncmpcpp using zellij in order to get a preview of the cover of the currently playing song, and it's a wacky workaround that i don't like. having native image preview support in a TUI music player is the only thing missing for me in order to switch to it. here is an image of what it looks like:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.