convopus
convopus is a Python CLI program for converting audio files and directories to opus - or MP3 - using ffmpeg.
Features
- Convert audio to Opus, or MP3 with
--mp3 - Convert whole directories, with optional recursive folder scanning (
-r) --outdirectory for converted files with mirrored folder structure- Fast multiprocessing conversion (
-m) - Multiple input files / directories in a single run
- Customizable via config.json: bitrate, container, VBR, convertible file types, defaults for every flag
- Cross-platform: Windows, Linux, macOS, Android (via Termux)
- Live progress bars per file and for the whole run
Requirements
- ffmpeg installed and on your PATH
- Python 3.11+
Installation
pip install convopus
Or from source with uv:
git clone https://github.com/D221/convopus
cd convopus
uv tool install .
Usage
convopus -h # full help
convopus music/ # convert a directory (originals are kept)
convopus -r music/ # include subdirectories
convopus -r --out converted/ music/ # write results to converted/, originals untouched
convopus -dk album/ # delete originals after converting
convopus -m -r biglibrary/ # convert in parallel
convopus --mp3 -k song.flac # convert to MP3 instead of opus
convopus a.flac b/ c.wav # multiple inputs in one run
With -o/--out DIRECTORY converted files are written to that directory instead of next to the originals: the input structure is mirrored under it - subfolders are recreated when -r/--recursive is used, otherwise files are placed directly in the output directory.
usage: convopus [-h] [-r] [--mp3] [-c CONTAINER] [--vbr {on,off}] [-b BITRATE]
[-o DIRECTORY] [-k | -dk] [-m | -nm] [--config] [-v]
[input ...]
A Python CLI program for converting audio files to opus
positional arguments:
input Input files or directories (optional) (default: None)
options:
-h, --help show this help message and exit
-k, --keep-original-files
Keeps original files after conversion (default: False)
-dk, --delete-original-files
Delete original files after conversion (default:
False)
-m, --multithreading Use multithreading for faster conversion (default:
False)
-nm, --no-multithreading
Do not use multithreading (default: False)
--config Prints config location and it's content (default:
False)
-v, --version show program's version number and exit
Conversion Options:
-r, --recursive Also convert files in subdirectories (default: False)
--mp3 Convert to mp3 instead - 320 or V0 depending on VBR
(default: False)
-c CONTAINER, --container CONTAINER
Container for audio files (.ogg, .opus, .oga, .mkv,
.webm) (default: .opus)
--vbr {on,off} Variable Bitrate option (default: on)
-b BITRATE, --bitrate BITRATE
Preferred bitrate for audio files (default: 128k)
-o DIRECTORY, --out DIRECTORY
Output directory for converted files (input structure
is mirrored under it) (default: None)
Configuration
You can customize settings in config.json located in:
| OS | config.json location |
|---|---|
| Windows | %LocalAppData%\D221\convopus |
| Linux | ~/.config/convopus |
| macOS | ~/Library/Application Support/convopus |
You can override the config file location with the CONVOPUS_CONFIG environment variable. Configs from older convopus versions are migrated automatically on first run.
The default config:
{
"bitrate": "128k",
"container": ".opus",
"keep": true,
"vbr": "on",
"recursive": false,
"multi_threading": true,
"common_types": [".flac", ".mp3", ".wav", ".m4a", ".aac", ".webm", ".mp4", ".avi", ".mkv", ".mpc", ".wma"]
}
| Key | Meaning |
|---|---|
| bitrate | Target bitrate for opus, e.g. 128k |
| container | Output container for opus: .opus, .ogg, .oga, .mkv, .webm |
| keep | Keep original files after conversion (command-line -k/-dk override this) |
| vbr | on/off - VBR for opus; for MP3, on = V0 and off = 320k |
| recursive | Convert subdirectories too (command-line -r overrides this) |
| multi_threading | Convert in parallel (command-line -m/-nm override this) |
| common_types | File extensions that get converted |
Keys are matched case-insensitively - configs written by older convopus versions keep working. Missing or invalid values fall back to defaults with a warning instead of failing, so a broken config never stops the CLI from running.
License
Credits
Metadata
Release files for convopus 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| convopus-1.6.0.tar.gz | 19.6 kB | With provenance | Details for convopus-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| convopus-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for convopus-1.6.0-py3-none-any.whl |
Total release size: 34.3 kB
Release files / convopus-1.6.0.tar.gz
| Download URL | convopus-1.6.0.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c7fc8b8925b891fc67e59cbfee07e85a4ff6401a67c1644941d46b1d9bfba3b
|
|
BLAKE2b-256 checksum How to use checksums |
7cb3f37ac0584497a7603d6bbcfb4b624a4b16911916edb3294627fd561fc525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / convopus-1.6.0-py3-none-any.whl
| Download URL | convopus-1.6.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9acebd7184db3520bb6cebb52e9e9ca836b2f278807814658ef7306570bf4064
|
|
BLAKE2b-256 checksum How to use checksums |
ebfe8adce365de0332544727f838ae8ec8a77992a8445c0348f85aa774e7cbe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for convopus 1.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for convopus-1.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.