OpenWrt Forum Archive

Topic: mpd how to stream mms:// and none http files ?

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Ok I Openwrt linux and compiled my own mpd 0.15.1:

root@OpenWrt:/mnt/sda1/share# mpd --version
mpd (MPD: Music Player Daemon) 0.15.1

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Supported decoders:

[mad] mp3 mp2
[vorbis] ogg oga
[flac] flac
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsaud wsvga wv wve

Supported outputs:

null fifo alsa oss httpd

Supported protocols:

file:// http:// lastfm:// mms:// mmsh:// mmst:// mmsu://

and i have problem with radio stream so 
http://relay3.slayradio.org:8000/

work flawless

however if i am using:

links taken from asx: http://www.polskieradio.pl/st/program3M.asx

<asx version = "3.0">
  <entry>
    <ref href = "mms://stream.polskieradio.pl/program3">
    <ref href = "rtsp://stream.polskieradio.pl/program3">
    <ref href = "http://stream.polskieradio.pl/program3">
  <Title>Trójka</Title>
  <Author>Polskie Radio SA</Author>
  <Copyright>Polskie Radio SA</Copyright>
  <Banner></Banner>
  </entry>
  <Title>Trójka</Title>
  <Author>Polskie Radio SA</Author>
  <Copyright>Polskie Radio SA</Copyright>
  <Banner></Banner>
  <LogURL href = ""/>
</asx>

like : mms://stream.polskieradio.pl/program3

the songs does now even start ...what do i need else to make it work somehow ? please help

i cannot also open the lastfm links whatsoever ..

Could anyone give me a hand ?

edit:

this is what happens when i play mms

root@OpenWrt:/mnt/sda1/share# mpc
Lily Allen - Everyone's At It (Album Version)
[playing] #10/36   0:14/4:19 (5%)
volume: 50%   repeat: off   random: on    single: off   consume: off
ERROR: problems decoding "mms://stream.polskieradio.pl/program3"

(Last edited by macmus on 30 Aug 2009, 16:33)

macmus wrote:

i cannot also open the lastfm links whatsoever ..

Could anyone give me a hand ?

edit:

this is what happens when i play mms

root@OpenWrt:/mnt/sda1/share# mpc
Lily Allen - Everyone's At It (Album Version)
[playing] #10/36   0:14/4:19 (5%)
volume: 50%   repeat: off   random: on    single: off   consume: off
ERROR: problems decoding "mms://stream.polskieradio.pl/program3"

to get lastfm to work, you'll need to compile mpd with lastfm support, add following to the mpd.conf

input {
        plugin "lastfm"
        user "my lastfm user name"
        password "my lastfm passsword"
}

then in console
/etc/init.d/mpd restart

mpc add lastfm://artist/$artistname or lastfm://artist/$artistname/similarartists

this is my make file:
does it include lastfm ?
what about mms should it also have some input defined in mpd.conf and recompilation ?

lech@ubuntu:/openwrt/trunk/package/feeds/packages/mpd$ cat Makefile 
# 
# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=mpd
PKG_VERSION:=0.15.1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/musicpd
PKG_MD5SUM:=eec9f5642d4a9c59a0df0a458def3505

include $(INCLUDE_DIR)/package.mk

define Package/mpd
  SECTION:=sound
  CATEGORY:=Sound
  DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 +libmms +libcurl
  TITLE:=Music Player Daemon
  URL:=http://www.musicpd.org/
endef

define Package/mpd/description
    MPD is a music player supporting flac, mp3 and ogg files.
    It is typically controlled over a network using one of it's many
    clients including mpc(console), gmpc(gnome), phpmp(php) etc.
endef

define Package/mpd/conffiles
/etc/mpd.conf
endef

ifndef CONFIG_PACKAGE_kmod-sound-core
    EXTRA_CONFIG_PARAM:=--disable-alsa
endif

CONFIGURE_VARS += \
    CURL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto -lcurl" \
    CURL_CFLAGS="-I$(STAGING_DIR)/usr/include" \
    ID3TAG_LIBS="$(TARGET_LDFLAGS) -lz -lid3tag" \
    ID3TAG_CFLAGS="$(TARGET_CPPFLAGS)" \
    FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
    FLAC_CFLAGS="-I$(STAGING_DIR)/usr/include/FLAC" \
    MAD_LIBS="$(TARGET_LDFLAGS) -lmad" \
    MAD_CFLAGS="$(TARGET_CPPFLAGS)" \
    OGGVORBIS_LIBS="$(TARGET_LDLFAGS) -lvorbisidec" \
    OGGVORBIS_CFLAGS="$(TARGET_CPPFLAGS)" \
    GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
    GLIB_LIBS="$(TARGET_LDLFAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -lintl -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -lglib-2.0 -lgthread-2.0 -pthread"

define Build/Configure
    $(call Build/Configure/Default, \
        $(EXTRA_CONFIG_PARAM) \
        --disable-audiofile \
        --disable-mpc \
        --disable-aac \
        --disable-lsr \
        --disable-ao \
        --disable-mvp \
        --disable-lametest \
        --disable-lame-encoder \
        --enable-flac \
        --enable-lastfm \
        --enable-mms \
        --with-tremor="$(STAGING_DIR)/usr/lib" \
    )
endef

define Build/Compile
    $(MAKE) -C $(PKG_BUILD_DIR) \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        all install
endef

define Package/mpd/install
    $(INSTALL_DIR) $(1)/etc
    $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
endef

$(eval $(call BuildPackage,mpd))

think so "--enable-lastfm"
but to be sure do

mpd --version

look for:

Supported protocols:

file:// http:// lastfm:// ...

ok it works smile Thank you very much!!

got 3 questions tho:

1. Is it possible to set next song like in shell-fm ?
2. The only way to love/ban is to install scrobler and do it on the site ?
3. What about mms does it need some plugin entry as well

macmus wrote:

ok it works smile Thank you very much!!

got 3 questions tho:

1. Is it possible to set next song like in shell-fm ?
2. The only way to love/ban is to install scrobler and do it on the site ?
3. What about mms does it need some plugin entry as well

sorry i do not know the answers to your questions
check out http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki and http://www.musicpd.org/forum/

dump .. anyprogress ... anyone manage to play mms streams ?

I'm hoping to get some time in the next couple days to use gstreamer to encode the mms as mp3 and have mpd use that instead.  Not sure if all that is supported in openwrt but I had it working on my linux box.  I haven't had any success with mms and mpd.  It doesn't seem to want to play nice.

Now libmms work in ARM!

I have do many test with libmms(0.6) and mpd on ARM arch, and all test was negative, contrary to i386 where all work good, but now libmms are be updated by the author to version 0.6.1 with some portability fixes and work very good!
That's all, I'm happy smile

Daniele Busana

Hello, atlaware.

If you have makefile for libmms 0.6.1, could you pls share?
I have same problem and I can't get it work...

Nao

The discussion might have continued from here.