Automatically liberate music from audio and video
Nichlas Severinsen 6560adbd94 Hacks to make playlistdownloading work | 6 anni fa | |
---|---|---|
liberate | 6 anni fa | |
.gitignore | 6 anni fa | |
COPYING | 7 anni fa | |
LICENSE.txt | 6 anni fa | |
README.md | 6 anni fa | |
requirements.txt | 7 anni fa | |
setup.cfg | 6 anni fa | |
setup.py | 6 anni fa |
Liberate is a Python 3 program written to convert audio/video files to .ogg audio files.
Assuming you have ffmpeg installed.
$ git clone --depth=1 https://notabug.org/necklace/liberate.git
$ cd liberate
$ sudo python setup.py install
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
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.
Install python dependencies with sudo pip3 install -r requirements.txt
(though these will be installed automatically if setup.py was ran)
$ python3 setup.py sdist bdist_wheel
$ twine upload dist/*