Convert .m4a audio files to lossless .wav via ffmpeg.
Project description
m4a2wav
A tiny CLI that converts .m4a audio files to .wav (PCM) via ffmpeg.
The decode itself is lossless: PCM output at the source's native sample rate and
channel layout. The original AAC compression in the .m4a cannot be undone — this
just ensures the .m4a → .wav step adds no further quality loss.
Install
pip install m4a2wav
Requires ffmpeg on PATH.
- macOS:
brew install ffmpeg - Debian/Ubuntu:
sudo apt install ffmpeg - Windows:
winget install ffmpegorchoco install ffmpeg
Usage
m4a2wav file1.m4a [file2.m4a ...] # convert specific files
m4a2wav -all # convert every .m4a in the current folder
Files whose target .wav already exists are skipped, so re-runs are idempotent.
Notes
- Output is 16-bit signed little-endian PCM (
pcm_s16le). For 24- or 32-bit PCM, edit the-c:aflag incli.py. - No resampling or channel downmixing is performed.
- Source files are never modified or deleted.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file m4a2wav-0.1.0.tar.gz.
File metadata
- Download URL: m4a2wav-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9fde1e6776062b31fd852124f98590bd8f30b1201427c3fa5623dd12d1b1575
|
|
| MD5 |
ad4bdd412fc073be88a51869e9d3a230
|
|
| BLAKE2b-256 |
7591272ef12a7d62481f76acfe1ddf797c5b9358ff1f606c93880688f1dece7d
|
File details
Details for the file m4a2wav-0.1.0-py3-none-any.whl.
File metadata
- Download URL: m4a2wav-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
459735476de5763e89d1b065e9054ffec3e8bc2fccbadfd3eb0850db94eadd00
|
|
| MD5 |
c81a36bbe7bd10f7d6dc9db17e212aa8
|
|
| BLAKE2b-256 |
c1240ab58c3532a3e6b32860aa79ef6507f2b35cdd68c741a25e8752e6f63d9a
|