Skip to content

Repository files navigation

Unlicense LinkedIn


Logo

Audio File To Opus Automatic Converter

Helps automatically convert a library of music to Opus format
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

Video Title

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.

Built With

  • Python

Getting Started

Please follow the instructions below, and/or follow along with the video guide above.

Prerequisites

  1. This must be run on a Windows Operating System
  2. Download the latest version of Python, latest version of FFmpeg, and latest version of TagEditor.
  3. Install all of the above and set them as Path Variables
  4. Install the mutagen Python library by opening command prompt or terminal and type pip install mutagen.

Installation

  1. Download my entire repo and extract it to a location that you will remember and is convenient
  2. Open a file explorer window and navigate to your music folder.
  3. Create 4 folders within your music folder: UNPROCESSED, TEMP, ARCHIVE, and COMPRESSED. It should be this type of structure:



Example Folder Structure

  1. Open main.py in an IDE or text editor
  2. 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"

  1. 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"

  1. (Optional) To have the program run automatically on startup, hit ⊞ + R at the same time to open run, and type shell:startup before pressing OK
  2. (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"

Usage

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.

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the Unlicense. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @bensummer49 - bensummer49@gmail.com

Project Link: https://github.com/JackWanamaker/Audio_File_To_Opus_Converter

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages