Automatically liberate music from audio and video

Nichlas Severinsen 6560adbd94 Hacks to make playlistdownloading work před 6 roky
liberate 6560adbd94 Hacks to make playlistdownloading work před 6 roky
.gitignore b15e4b1ad4 Release 0.1.7 před 6 roky
COPYING 4f00c4b776 Added copying/license file před 7 roky
LICENSE.txt 10129ec4de Added to PyPI, updated to version 0.1.1 před 6 roky
README.md fb9d5adbf1 Release 0.1.8 před 6 roky
requirements.txt 1a96d58293 Initial commit před 7 roky
setup.cfg 10129ec4de Added to PyPI, updated to version 0.1.1 před 6 roky
setup.py ca31d176ff Release 0.1.9 For youtube_dl api changes před 6 roky

README.md

Liberate

Liberate is a Python 3 program written to convert audio/video files to .ogg audio files.

Quick install

Assuming you have ffmpeg installed.

$ git clone --depth=1 https://notabug.org/necklace/liberate.git
$ cd liberate
$ sudo python setup.py install

Examples

Convert a single existing file (any format, video or audio):

liberate file_to_convert.ext

Convert a whole directory of files (not recursive, will only take files in directory):

liberate path/to/directory/

Download from an external source (like youtube or soundcloud) using youtube-dl and convert:

liberate https://example.com/audio.mp3

Liberate doesn't delete the downloaded file by default, if you only want to keep the converted .ogg file:

liberate https://example.com/audio.mp3 --remove

Dependencies

  • ffmpeg
  • youtube-dl (python)
  • colorama (python)
  • unix based system

This script is not tested on Windows, and most likely won't work at all on any version of Windows. Feel free to add support and send me a pull request, though.

Development

Install python dependencies with sudo pip3 install -r requirements.txt (though these will be installed automatically if setup.py was ran)

Deploy

$ python3 setup.py sdist bdist_wheel
$ twine upload dist/*