A Python program that started as a quick project and grew out of scope, for converting audio files from a format to another using FFMPEG.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-11 18:13:41 +02:00
src Overwrite files on conversion, add missing docstring to function convert_track 2026-10-11 18:13:41 +02:00
.gitignore Fix: actually commit all changes 2026-10-08 19:45:37 +02:00
README.md Update README.md, create requirements.txt to facilitate the installation of Python dependencies 2026-10-11 17:41:19 +02:00
requirements.txt Update README.md, create requirements.txt to facilitate the installation of Python dependencies 2026-10-11 17:41:19 +02:00

audio-converter

A Python program that started as a quick project and grew out of scope, for converting audio files from a format to another using FFMPEG.

The program features a user-friendly interactive interface for selecting which tracks are to be converted using a numbered list.

Dependencies

  • Python (written and tested in v3.13.5)

  • FFMPEG installed and available in PATH

  • ffmpeg-python (to be removed in the future in order to improve power-user UX)

Install

  1. Get the source code.

Using Git: $ git clone https://code.queersynergy.com/VioletMillie/audio-converter.git

Or download the source code as a ZIP file and extract it using your program of preference.

Using 7z: $ 7z x audio-converter-main.zip

  1. cd into the cloned/extracted directory: $ cd audio-converter

  2. Install the Python packages: $ python3 -m pip install -r requirements.txt

  3. Run the program $ python3 ./src/index.py -h, the flag -h will print the help message.

Converting FLAC files into MP3 files from a directory:

$ ./src/index.py ~/Music/Flac ~/Music/MP3 .flac .mp3

The program will then provide you with an interactive interface to select individual tracks and/or groups (by artist/album).

Usage

usage: ./src/index.py [-h] [-i INCLUDE] source_directory output_directory source_format [source_format ...] output_format

A program to convert audio files

positional arguments:
  source_directory      Directory to be scanned for audio files
  output_directory      Destination directory for converted files
  source_format         Original file format
  output_format         Format to convert the files to

options:
  -h, --help            show this help message and exit
  -i, --include INCLUDE
                        non-audio files to be copied to the destination directory