Git Product home page Git Product logo

cplay's Introduction

Description:

        cplay is a curses front-end for various audio players. It aims
        to provide a power-user-friendly interface with simple filelist
        and playlist control. cplay is written in Python and can use
        either pyncurses or the standard curses module.

Requirements:

    - python                  http://www.python.org/
    - pyalsaaudio (optional)  http://pyalsaaudio.sourceforge.net/
                                For Alsa mixer support
    - mutagen     (optional)  http://code.google.com/p/mutagen/
                                For metadata support (IDv3 etc.)
    - magic       (optional)  http://www.darwinsys.com/file/
                                For better filetype recognition

For playback either install mplayer (recommended): http://www.mplayerhq.hu/
or one or more of the following players:

    - mpg321                  http://sourceforge.net/projects/mpg321/
    - ogg123                  http://www.vorbis.com/
    - mpg123                  http://www.mpg123.org/
    - splay                   http://splay.sourceforge.net/
    - madplay                 http://www.mars.org/home/rob/proj/mpeg/
    - mikmod                  http://www.mikmod.org/
    - xmp                     http://xmp.sf.net/
    - sox                     http://sox.sf.net/
    - speex                   http://www.speex.org/

Installation:

        make install

Usage:

        cplay [-d <filename>] [-n] [-r] -[R] [ file | dir | playlist ] ...

        -d  Enable debugging output to <filename>.

        -n  Start in restricted mode: No shell commands, changing directory,
            goto, or saving playlists.

        -r  Start in repeat mode.

        -R  Start in random mode.


        When in doubt, press 'h' for a friendly help page.

Configuration:

        If you would like to change options passed to the actual players
        just edit the PLAYERS list in the cplay script or put the PLAYERS
        definition in either ~/.cplayrc or /etc/cplayrc. If one of these
        files is available, it is executed by cplay before initialization.

        Macros are defined using the MACRO dictionary, where the key is
        a key and the value is a string of cplay input. For example, the
        following would make ,d delete tagged (or current) files:

                MACRO['d'] = '!rm "$@"\n'

        Note, there is currently no version control for the rc-file!

Miscellaneous:

        A playlist can contain URLs, but the playlist itself will
        have to be local. For mpeg streaming, splay is recommended.

        It is also possible to pipe a playlist to cplay, as stdin
        will be reopened on startup unless it is attached to a tty.

        Remote control is available via /var/tmp/cplay_control-$USER.
        Create this with mkfifo and see lircrc for examples.

        The shell command gets the full path of either all tagged
        items or the current item as positional arguments.

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.