Page 1 of 1

MPD could not find any local wma files

Posted: Thu Mar 03, 2011 4:13 am
by Nao
Hello, I am new to Wifi Radio and Linux environment.

I am currently working on OpenWRT(10.03) /MPD (0.15.8) on Buffalo WZR-300NH router and
I was able to play local mp3 files on the router.

However, MPD could not find any wma files stored in local.
I did try same wma files on Ubuntu/ MPD (0.15.4) and MPD could find/play wma file in local directory.

Judgeing by the other threads, I understand that there are a couple of problem on MMS/WMA streaming but
as a first step, I simply want to play wma files in local directory.

Can anyone advice me what I am missing???

Here is my mpd --version information on my OpenWRT

Code: Select all


root@OpenWrt:~# mpd --version
mpd (MPD: Music Player Daemon) 0.15.8

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:

shout null fifo alsa oss httpd

Supported protocols:

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


Re: MPD could not find any local wma files

Posted: Thu Mar 03, 2011 10:36 am
by mightyohm
So you are running "mpc add file.wma" and they don't show up in the playlist? Any error messages?

Re: MPD could not find any local wma files

Posted: Fri Mar 04, 2011 4:59 am
by jeroen94704
"mpc add" can only add files that are already in the mpd database. You cannot just add any file on your local HD. Make sure the wma file is actually in your DB by using "mpc listall".

As an aside, I believe mpd only adds tracks to the library it can decode. From your "mpd --version" output, it looks like you cannot decode wma files at all with the build, so it may be that mpd simply skips any wma files in your music directory.

Jeroen

Re: MPD could not find any local wma files

Posted: Sat Mar 05, 2011 11:09 am
by mightyohm
Jeroen,

I see wma in his list of protocols...

I thought that on the local machine, "mpc add <file>" would add the file to the DB?

Re: MPD could not find any local wma files

Posted: Sat Mar 05, 2011 12:29 pm
by jeroen94704
mightyohm wrote: I see wma in his list of protocols...
Ah, there's a scrollbar ....
mightyohm wrote:I thought that on the local machine, "mpc add <file>" would add the file to the DB?
That's not what my mpc does. I get an "error: ACK [50@0] {add} directory or file not found" message when I try that. Maybe a build/config option?

Jeroen

Re: MPD could not find any local wma files

Posted: Mon Mar 07, 2011 8:21 am
by Nao
Woops, sorry for not providing further information.
(I thought that BB provide an notice by email when I have response..)

MPD can not find means, even I specify "MPC ls" it only returns mp3 file even though there are
a couple of wma file in local music directory.

So there are no ways to "MPC add foo.wma" since MPD dabase does not recognize wma files

Nao.

Re: MPD could not find any local wma files

Posted: Mon Mar 07, 2011 8:27 am
by Nao
Hi Jeroen

Thanks for your comment

In order to add your files, you need to move your current directory to your specified music directory
then you should be able to add your files which MPD db recognised.
Otherwise, you will get "error: ACK [50@0] {add} directory or file not found"

But my case is "MPD db does not recognize any wma files at all
even though I refreshed MPD Database or recreateed MPD database..."

Nao

Re: MPD could not find any local wma files

Posted: Mon Mar 07, 2011 8:48 am
by Nao
I have tried to replaced latest libffmpeg version (0.5.2-4) and all related dependancies (which are libflac, libpostproc, libtheora, mpd)
that Backfilre 10.03.1-RC4 contains but it gave me below error....

It complained no oss output
even though I have not changed any USB audio driver or anything.

Code: Select all

root@OpenWrt:/# mpd
output: line 189: No such audio output plugin: oss
Aborted
Nao

Re: MPD could not find any local wma files

Posted: Mon Mar 07, 2011 11:09 am
by mightyohm
I'm sorry that I can't help you with your wma issue.

Regarding OSS, the only thing I can think of would be to make sure your mpd.conf file is still present and has OSS enabled.

The best place to seek help for this is probably the OpenWrt or mpd forums.

Re: MPD could not find any local wma files

Posted: Mon Mar 07, 2011 3:17 pm
by Nao
Thanks for the info, Jeff

I posted the same question on OpenWRT forum.
So if anyone is interested in this issues, pls check below site

https://forum.openwrt.org/viewtopic.php ... 41#p130141

Rgds
Nao