Koozali.org: home of the SME Server

Audio codecs problem and MPD

Offline mishoboss

  • *
  • 11
  • +0/-0
Audio codecs problem and MPD
« on: November 15, 2006, 08:34:41 PM »
Hi, I compiled and installed MPD 0.12.1 on SME 7.0, but when I get to phpMp2 web client I see just "No directories found. No files found. No playlists found."

"mpd --version" command shows this:
Quote
mpd (MPD: Music Player Daemon) 0.12.1

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

Supported formats:


Supported outputs:
alsa oss

There are no supported formats. I search the WEB and I found that SME Server has no audio codecs and so on, so I followed this howto to install some stuff: http://mirror.contribs.org/smeserver//contribs/beckynet/smeserver/7.x/Howto-Play-Sound-In-Console-Mode/Howto-Play-Sound-In-Console-Mode.htm.
Then again I run "./configure" and "make" and "make install" to compile and install MPD. Nothing is changed...

When I run "./configure" in the end I see the following:
Quote
########### MPD CONFIGURATION ############

 Playback Support:
 libao support .................disabled
 OSS support ...................enabled
 ALSA support ..................enabled
 Sun support ...................disabled
 OS X support ..................disabled
 PulseAudio support ............disabled
 Media MVP support .............disabled
 Shout streaming support .......disabled

 File Format Support:
 ID3 tag support ...............disabled
 mp3 support ...................disabled
 Ogg Vorbis support ............disabled
 FLAC support ..................disabled
 OggFLAC support ...............disabled
 Wave file support .............disabled
 MP4/AAC support ...............disabled
 Musepack (MPC) support ........disabled
 MOD support ...................disabled
configure: error: No input plugins supported!

Nothing is enabled except the OSS and ALSA.

I can hear the music with this command "mpg123 /home/e-smith/files/ibays/music/html/files/NELLY.MP3", so I think I have the codecs I need. So why MPD can't see them? Is there a way to run the configure script with something like this "./configure --enable-mp3 --enable-id3" and so on?

Thanks in advance.

P.S. This are the answers from the support forum of MPD - http://www.musicpd.org/forum/index.php?topic=1255.0. Is that really the problem? And if is so where can I find the proper RPMs for SME? I tried the rpms in rmseek.com, but they fail on dependecies.

Offline mishoboss

  • *
  • 11
  • +0/-0
Audio codecs problem and MPD
« Reply #1 on: November 17, 2006, 11:27:07 AM »
Anybody? :cry:

Offline mishoboss

  • *
  • 11
  • +0/-0
Audio codecs problem and MPD
« Reply #2 on: November 23, 2006, 01:35:10 PM »
There is still no reply after 8 days... :cry:
I don't think I am the first who tries to install MPD on SME. Please, any help will be very appriciated.

Landry

Audio codecs problem and MPD
« Reply #3 on: November 24, 2006, 02:12:26 PM »
If it can help you, i installed the following rpms :
Quote

-rw-r--r--  1 root root 387150 jun 21  2005 faad2-2.0-0.lvn.4.4.i386.rpm
-rw-r--r--  1 root root 297293 sep  9 21:39 flac-1.1.2-25.i386.rpm
-rw-r--r--  1 root root  44526 mai 20  2005 libid3tag-0.15.1-3.b.i386.rpm
-rw-r--r--  1 root root  81816 jun 21  2005 libmad-0.15.1-0.lvn.1.b.4.i386.rpm
-rw-r--r--  1 root root  36725 aoû 22  2005 mpc-0.11.2-1.i386.rpm
-rw-r--r--  1 root root 114510 jun 21  2005 mpd-0.11.5-0.lvn.3.4.i386.rpm
-rw-r--r--  1 root root  69339 aoû 22  2005 ncmpc-0.11.1-4.el4.kb.i386.rpm

Some come from livna repositories for a fedora 4 here : http://rpm.livna.org/fedora/4/i386/RPMS.lvn/ .. i manually downloaded them :)
Google for the rpm names to find them..
Its really simpler than trying to build mpd from source..

Offline mishoboss

  • *
  • 11
  • +0/-0
Audio codecs problem and MPD
« Reply #4 on: November 25, 2006, 08:11:03 PM »
Thanks, Landry :)
I managed to install MPD and now it supports all these formats:
mp3 ogg flac wav au aiff m4a mp4 amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm

One more time - thanks!

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Audio codecs problem and MPD - Let yum do the work.
« Reply #5 on: November 26, 2006, 07:56:39 AM »
Thanks Landry for a starting point.

I like yum to do some work for me.

Setup some additional repositories
Code: [Select]
/sbin/e-smith/db yum_repositories set dag repository \
 BaseURL http://apt.sw.be/redhat/el4/en/i386/dag \
 EnableGroups 1 \
 GPGCheck 1 \
 Name Dag-repository \
 status disabled

Code: [Select]
/sbin/e-smith/db yum_repositories set atrpms repository \
 BaseURL http://dl.atrpms.net/el4-i386/atrpms/stable \
 EnableGroups 1 \
 GPGCheck 1 \
 Name Atrpms-repository \
 status disabled

Code: [Select]
/sbin/e-smith/db yum_repositories set dries repository \
 BaseURL http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el4/en/i386/dries/RPMS \
 EnableGroups 1 \
 GPGCheck 1 \
 Name Extra-Fedora-rpms-dries-$releasever-$basearch \
 status disabled

Code: [Select]
rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
Code: [Select]
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Code: [Select]
rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
Code: [Select]
/sbin/e-smith/expand-template /etc/yum.conf

Unfortunately not everything is in a nice repository
Code: [Select]
cd /tmp
Code: [Select]
wget ftp://fr2.rpmfind.net/linux/livna/fedora/4/i386/mpd-0.11.5-0.lvn.3.4.i386.rpm
Code: [Select]
wget ftp://rpmfind.net/linux/fedora/extras/4/i386/mpc-0.11.2-3.i386.rpm
Code: [Select]
wget ftp://rpmfind.net/linux/fedora/extras/4/i386/ncmpc-0.11.1-4.fc4.i386.rpm

Now let yum get to work
Code: [Select]
yum --disablerepo=* \
 --enablerepo=atrpms \
 --enablerepo=base \
 --enablerepo=updates \
 --enablerepo=dag \
 --enablerepo=dries \
 localinstall mpc-0.11.2-3.i386.rpm mpd-0.11.5-0.lvn.3.4.i386.rpm ncmpc-0.11.1-4.fc4.i386.rpm

Code: [Select]
Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mpc                     i386       0.11.2-3         mpc-0.11.2-3.i386.rpm   77 k
 mpd                     i386       0.11.5-0.lvn.3.4  mpd-0.11.5-0.lvn.3.4.i386.rpm  241 k
 ncmpc                   i386       0.11.1-4.fc4     ncmpc-0.11.1-4.fc4.i386.rpm  176 k
Installing for dependencies:
 alsa-lib                i386       1.0.6-5.RHEL4    base              302 k
 audiofile               i386       1:0.2.6-1.el4.1  base               99 k
 faad2                   i386       2.5-6.el4.at     atrpms            193 k
 libFLAC7                i386       1.1.2-25_11.el4.at  atrpms            115 k
 libao                   i386       0.8.5-2.EL.0     base               34 k
 libid3tag               i386       0.15.1b-3.2.el4.rf  dag                49 k
 libmad                  i386       0.15.1b-4.el4.rf  dries              80 k
 libogg                  i386       2:1.1.3-7.el4.at  atrpms             18 k
 libvorbis               i386       1:1.1.0-1        base              185 k
 mikmod                  i386       3.1.6-36.99_2.el4.at  atrpms            190 k

Transaction Summary
=============================================================================
Install     13 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 1.7 M


And to start it at boot time
Code: [Select]
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S85mpd
Code: [Select]
/sbin/e-smith/db configuration set mpd service status enabled
Code: [Select]
/sbin/e-smith/signal-event console-save
Code: [Select]
/sbin/e-smith/signal-event post-upgrade
Code: [Select]
/sbin/e-smith/signal-event reboot
Regards,
William

IF I give advise.. It's only if it was me....