No description
| .gitignore | ||
| convert-library.py | ||
| LICENSE | ||
| README.md | ||
convert-library
A Python script I use personally for converting/copying my music library in preparation for putting onto devices with limited storage space.
Usage
usage: convert-library.py [-h] [-i --input] [-d --dir]
A utility for converting all music files to a lossy equivalent and to a new
location, preserving directory structure and copying album artwork..
optional arguments:
-h, --help show this help message and exit
-i --input Directory that marks the root of the library structure.
-d --dir Directory to output new library to.
This script will walk the entire directory tree of input/, use ffmpeg to convert all lossless audio files to ogg opus at 192kbps, and copy all others and album art, preserving directory structure, to dir/.
Currently, this script considers these following supported files:
Lossless audio:
- *.flac
- *.alac
- *.wav
Lossy audio:
- *.mp3
- *.m4a
- *.ogg
- *.opus
Album art filenames:
- albumart
- cover
- folder
- front
Album art file extensions:
- *.jpg
- *.png