Helps automatically convert a library of music to Opus format
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
This project is built to automatically convert your lossless audio albums to Opus with no hassle! Perfect for people who want to build their own music libraries, but are tired of sacrificing space, sound quality, and time.
Please follow the instructions below, and/or follow along with the video guide above.
- This must be run on a Windows Operating System
- Download the latest version of Python, latest version of FFmpeg, and latest version of TagEditor.
- Install all of the above and set them as Path Variables
- Install the mutagen Python library by opening command prompt or terminal and type
pip install mutagen.
- Download my entire repo and extract it to a location that you will remember and is convenient
- Open a file explorer window and navigate to your music folder.
- Create 4 folders within your music folder: UNPROCESSED, TEMP, ARCHIVE, and COMPRESSED. It should be this type of structure:
- Open
main.pyin an IDE or text editor - Set MAIN_PATH, FLAC_FOLDER, OPUS_FOLDER, SYNC_FOLDER, and TEMP_FOLDER as C:/Users/MyUser/Music (or location of your music folder), ARCHIVE, COMPRESSED, UNPROCESSED, and TEMP. Here is an example:
MAIN_PATH = r"C:\Users\MyUser\Music"
FLAC_FOLDER = r"ARCHIVE"
OPUS_FOLDER = r"COMPRESSED"
SYNC_FOLDER = "UNPROCESSED"
TEMP_FOLDER = "TEMP"
- Set the location of the json and log files for the JSON_PATH and LOG_PATH variables. Here is an example if you put my repo in your documents:
JSON_PATH = r"C:\Users\MyUser\Documents\Audio_File_to_Opus_Converter\data.json"
LOG_PATH = r"C:\Users\MyUser\Documents\Audio_File_to_Opus_Converter\log.txt"
- (Optional) To have the program run automatically on startup, hit ⊞ + R at the same time to open run, and type
shell:startupbefore pressing OK - (Optional) Create a batch script with these contents changed to match the location of your Python install and my repo:
@echo off
start "" "PATH_TO_PYTHON_INSTALL" "PATH_TO_MAIN_PYTHON_FILE"
To get the most out of the automatice converter, I use SyncThing so I can download albums to my phone, have them synced to my PC, and have my program automatically compress them for me. Afterwards, it sends the newly compressed files to my phone, and deletes the lossless files off, all while saving the lossless files in a separate folder on the PC.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the Unlicense. See LICENSE.txt for more information.
Your Name - @bensummer49 - bensummer49@gmail.com
Project Link: https://github.com/JackWanamaker/Audio_File_To_Opus_Converter

