GithubHelp home page GithubHelp logo

clorax / mixr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soulprovidr/mixr

0.0 0.0 0.0 22 KB

Generate an MP3 mix from an .m3u playlist.

License: GNU Affero General Public License v3.0

Python 100.00%

mixr's Introduction

mixr

Generate an MP3 mix from an .m3u playlist.

mixr leverages the excellent pydub library to generate a mix from an M3U playlist file, with crossfading and normalization.

$ mixr -h
usage: mixr [-h] [--bitrate <bitrate=320k>] [--crossfade <seconds=2>] [--fade-out <seconds=20>] [--gain <dBFS=-10.0>] [--intro] [--output <filename>] <filename>

Generate a mix from an M3U playlist.

positional arguments:
  <filename>            Path to the playlist file.

optional arguments:
  -h, --help            show this help message and exit
  --bitrate <bitrate=320k>
                        Bitrate of output file.
  --crossfade <seconds=2>
                        Crossfade duration (in seconds).
  --fade-out <seconds=20>
                        Fade out duration (in seconds).
  --gain <dBFS=-10.0>   Target gain level for mix.
  --intro               Intro mode (i.e. don't crossfade first track).
  --output <filename>   Path to the output file.

Installation

OS X & Linux:

  1. Install Python.

  2. Run the following commands:

    $ git clone https://github.com/soulprovidr/mixr.git
    $ cd mixr
    $ pip install .
    

Usage example

playlist.m3u

#EXTM3U
#EXTINF:345,11 2Pac - Can U Get Away (Me Against The World)
/storage/Music/staging/2Pac - Me Against The World/2Pac - Can U Get Away.mp3
#EXTINF:279,9 2Pac - Dear Mama (Me Against The World)
/storage/Music/staging/2Pac - Me Against The World/2Pac - Dear Mama.mp3
#EXTINF:294,10 2Pac - It Ain't Easy (Me Against The World)
/storage/Music/staging/2Pac - Me Against The World/2Pac - It Ain't Easy.mp3
$ mixr playlist.m3u --bitrate 128k
Mix successfully exported as: Sep-04-2019-23:49:32.mp3

License

Distributed under the GNU GPLv3 license. See LICENSE for more information.

mixr's People

Contributors

soulprovidr avatar

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.