flac→mp3 re-encoding fails
Ubuntu Server 13.04 ezstream 0.5.6 icecast 2.3.3
First, I'll be honest and explain I loathe MP3s, but they make for convenient way to broadcast without hearing complaints from the audience at large.
I prefer FLAC for my own use and therefore I would love to make use of the reencoding capacity of ezstream to convert FLACs to MP3 on the fly.
Using /usr/share/doc/ezstream/examples/ezstream_reencode_mp3.xml as a guide, I end up with something like this for my ezstream config:
http://localhost:8000/mystream hackme MP3 test.m3u 1 testing testing testing testing 128 2 44100 1 1 FLAC .flac flac -s -d --force-raw-format --sign=signed --endian=little -o - "@T@" lame - -preset cbr 128 -r -s 44.1 - -bitwidth 16 - -where test.m3u includes a full path to a different FLAC, like so:
/music/others/free/by-nc-sa/Alex Tu + Eli James + Guy Schwartz - Alex Tu + Eli James + Guy Schwartz/Alex Tu + Eli James + Guy Schwartz - Alex Tu + Eli James + Guy Schwartz - 01 -li ve- A.flac /music/others/free/by-nc-sa/Alex Tu + Eli James + Guy Schwartz - Alex Tu + Eli James + Guy Schwartz/Alex Tu + Eli James + Guy Schwartz - Alex Tu + Eli James + Guy Schwartz - 02 -li ve- Intermission.flac /music/others/free/by-nc-sa/Alex Tu + Eli James + Guy Schwartz - Alex Tu + Eli James + Guy Schwartz/Alex Tu + Eli James + Guy Schwartz - Alex Tu + Eli James + Guy Schwartz - 03 -li ve- B.flac
On the command line, the decode/encode pair works fabulously.
However, it's a total fail when broadcasting. I consistently get "failed to recognize file format" no matter what I do with mplayer2. No errors to be found on the server side.