Skip to main content

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 ffmpeg or choco 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:a flag in cli.py.
  • No resampling or channel downmixing is performed.
  • Source files are never modified or deleted.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m4a2wav-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m4a2wav-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file m4a2wav-0.1.1.tar.gz.

File metadata

  • Download URL: m4a2wav-0.1.1.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

Hashes for m4a2wav-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f307ea455cd5659486bf88220606161cbf67f5d214221bf1502457d77348d171
MD5 af885e4fb724de2eaf4429f03c347290
BLAKE2b-256 91e7e9e58c41d29bedaa0c8e4457f3b6abba26a3cb7190fd7970b725ee4ca174

See more details on using hashes here.

File details

Details for the file m4a2wav-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: m4a2wav-0.1.1-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

Hashes for m4a2wav-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7397685a5c419d721adccccea9b216603f10b91a6a8bd1c96ede2aa28b9d34bd
MD5 8c381fbdd5f66731ee5760a9f78216b6
BLAKE2b-256 9ddf1ac7aea29df5e794a593a5a604a3c079087d332ebc8c3a456a706e36e344

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page