OpenWRT and WAV Files
It is so wrong and yet so cathartic to complain about OpenWRT and their messed up ways. Case in point today: WAV (AKA WAVE) File support on OpenWRT.
Where is it? IE, what package contains the necessary software to interpret the contents of a .wav File?
- APLAY related packages? Yes!
- PulseAudio related packages? No!
- MPD related packages? No! (well, sort of, at least by default, you'll see)
That begs about a dozen different question(s), which won't be addressed here, but below is the summary of the issue(s);
- Works great: aplay WhatEverWavFile.wav
- Doesn't work: Any MPC / MPD command related to .wav Files
Solution!
Anyway, onto the solution, which is: opkg install libffmpeg-full (with a catch!) The catch is that libffmpeg-mini has to be removed first (which also thankfully removes mpd-full even if you instruct opkg to NOT remove any dependencies, how nice).
The SIN: WAV support in libffmpeg isn't mentioned anywhere in any documentation from OpenWRT and not explicitly mentioned on the FFMPEG website. Yes, it can of course convert from and too .wav files, but it doesn't explicitly state WAV, but it does explicitly mention Commodore Audio Formats, and alludes to WAV in WAVPACK, but that's it.
IE, if you want to play a .WAV File using OpenWRT using MPD, how would one know where the .WAV Codec was? It isn't explicitly stated like say .MP3 Woof!