wrapper around MediaFoundation to decode wma files
This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2020-08-26 13:02:29 +02:00
wmadec Initial commit 2020-08-26 13:02:29 +02:00
.gitignore Initial commit 2020-08-26 13:02:29 +02:00
build.sh Initial commit 2020-08-26 13:02:29 +02:00
LICENSE Initial commit 2020-08-26 13:02:29 +02:00
README.md Initial commit 2020-08-26 13:02:29 +02:00
wmadec.sln Initial commit 2020-08-26 13:02:29 +02:00

wmadec

The worst media conversion tool

Building

You can build this tool on non-Windows operating systems. You need to have nuget and msbuild (e.g. from mono) installed. You can then run the build.sh script (possibly with sh build.sh, since I use nix-shell in the shebang). If you use Nix you dont have to install anything, just run the build script, it takes care of installing the dependencies automatically.

Usage

The usage of this tool is very simple. It reads compressed wma data from stdin and writes uncompressed PCM to stdout. It has no way of communicating the sample rate and bit depth, figuring that out is up to you (ffmpegs decoder manages to extract that correctly, otherwise just assume 44.1kHz/16bit).

Motivation

Since ffmpegs wma decoder fails to decode (especially short) wma files accurately, I had to use the only working wma decoder I know of: The one built into Microsoft Windows (MediaFoundation).

For some reason, even if you manage to get the (discontinued?) Windows Media Player working on a modern Windows machine, it only offers the option to burn WMA files to a CD, not to convert them to other formats (at least I did not find such an option).

License

WTFPL