I converted a wma file simply by doing something like this...
ffmpeg -i song.wma -f mp3 song.mp3
I can then play the mp3 file in Windows Media player, so it looks like the conversion worked.
However, if I try to open the file in TagLib, I get an error "MPEG audio header not found" on the following line...
TagLib.File tf = TagLib.File.Create("song.mp3");
I've tried this on a few wma files, so it's not just that one that's at fault.
Anyone have any idea what I did wrong? I find the docs for ffmpeg pretty overwhelming, and as a complete ignoramus in the field of audio encoding, I haven't a clue what most of it means. Could be I'm missing something in the conversion, although that wouldn't explain why WMP can play it but TagLib can't open it.