Open anarcat opened 8 years ago
It seems like a common problem that Android cannot play ogg streams correctly. Here's a library that seems to implement that correctly:
Streaming has always been hit/miss with Android sadly.
What's even sadder is that over the years, cyanogen introduced MUCH more breakage to this audio mess, so traditionally, streaming has always been worse on CM than AOSP :/
I know there has been numerous reports similar to this one (e.g. #643, #60) but all of those are closed, and I still believe there is a bug here in the current version, downloaded from F-Droid (running on CM 12.1-nightlies).
I have this configuration in mpd.conf:
I tried
lame
as an ecoder: that works.vorbis
gives me those errors in logcat:Now, I understand the ogg encoder of MPD might be broken, so I tried something else. I piped that to Icecast, since it's a thing I used to do before anyways (icecast is more stable than the httpd plugin of MPD, in my experience):
One interesting bit is that I had to change the suffix at that point. For that to take effect, I had to restart mpdroid multiple times, because the change wouldn't "stick": the setting would show up in the Default connection settings when i would edit it, but it would keep on contacting the old server URL without a suffix. That was a little frustrating.
Long story short, Icecast didn't solve the problem, I get similar errors from ffmpeg in logcat.
I can obviously play both streams fine in Linux using
ffmpeg
,mplayer
,vlc
orogg123
.Encoding with lame works, but doesn't work with Icecast (which supports only ogg containers, iirc). I am not sure why.