- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| README.md | ||
| requirements.txt | ||
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
- 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
-
cdinto the cloned/extracted directory:$ cd audio-converter -
Install the Python packages:
$ python3 -m pip install -r requirements.txt -
Run the program
$ python3 ./src/index.py -h, the flag-hwill 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