This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues/pull-requests.
wmadec/README.md

34 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

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](WTFPL)