PDA

Bekijk de volledige versie : mpd player within Asus WL-500gP



MvAngel
09-01-2009, 15:08
Hello all,

I've searched the forum but I could not find a fully usable answer to my question, so I apologize if this topic has been already answered in some thread.

Here is the questions:
How to use the WL-500qP as audio streaming server and wireless audio player?

My idea is to have the following setup
1. The laptop/wifi capable device (aka. phone) browser based GUI
2. One WL-500qP as a media server (please add suggestion for appropriate SW)
3. One or more WL-500qP + suitable USB sound cards as media players (please add suggestions for working USB sound cards and suitable SW for streaming audio playback)

Thank you in advance!

br
Michail

darius
09-01-2009, 17:28
Hello all,

I've searched the forum but I could not find a fully usable answer to my question, so I apologize if this topic has been already answered in some thread.

Here is the questions:
How to use the WL-500qP as audio streaming server and wireless audio player?

My idea is to have the following setup
1. The laptop/wifi capable device (aka. phone) browser based GUI
2. One WL-500qP as a media server (please add suggestion for appropriate SW)
3. One or more WL-500qP + suitable USB sound cards as media players (please add suggestions for working USB sound cards and suitable SW for streaming audio playback)

Thank you in advance!

br
Michail

I have tested some media streaming applications on PC running MS Windows, on mobile Linux embedded devices, on mobile phones and see the problems with bandwidth and signal quality.
a/b/g Wifi is not fit for media streaming as data channel is shared by many users, noise level is high and you have to live close to your access point.

So I moved to cellular modems and can watch video on laptop running vista.
Quality is not best but it works much better than with wifi link.

What is hot is DVB-M, DVB-T, Wimax by Samsung.
Hot is any wireless HD TV quality transmission (satellite receiver +dish).

1Gb wireless data link is what you need
and move to 5 Ghz wifi equipment to avoid community noise.

Please provide me with more details of your project to give you better solution.

What is hot about 3G cellular modems and phones, if you live on flat rate link,
is you can watch tv, listen to audio on your 3G phone on-the-go.

The same with wifi is a nightmare as you have to keep close to your wifi access point.

This is the reason, wifi Internet, hotspots, are no more hot stuff.

Darius

MvAngel
09-01-2009, 18:48
to Darius and all,

I apologize if my post was not clear enough. I would like to be able to create a portable wireless active speaker set and use WL-500qP as streaming server and streaming audio player. For this tasks I would need:

1. List of supported external USB sound cards
2. List of streaming servers working on WL-500qP
3. List of streaming audio players working on WL-500qP.

I am working in the mobile business, dealing with 3G/GPRS systems on daily basis, so I can state with good authority that no 3G net in the world could match the performance of wifi 54 Mbps in the range of 10-20 meters.

still Darious, thank you for sharing your ideas.

wpte
09-01-2009, 18:58
1. Search for usb soundcards that work with common linux distro's... not sure if it will work, I don't think the router is compiled with alsa drivers.
2. I use UShare, but there are others: gmediaserver and fuppes.
3. no idea wich one works on shell only:confused:

darius
09-01-2009, 20:25
to Darius and all,

I apologize if my post was not clear enough. I would like to be able to create a portable wireless active speaker set and use WL-500qP as streaming server and streaming audio player. For this tasks I would need:

1. List of supported external USB sound cards
2. List of streaming servers working on WL-500qP
3. List of streaming audio players working on WL-500qP.

I am working in the mobile business, dealing with 3G/GPRS systems on daily basis, so I can state with good authority that no 3G net in the world could match the performance of wifi 54 Mbps in the range of 10-20 meters.

still Darious, thank you for sharing your ideas.

Ok.
GPRS is slow, I use it on my Motorola to access the Internet news/ Bloomberg with Opera Mobile.

3G is my cellular modem and it works ON-THE-GO.
You are right . wifi good range is 10-20 meters,
With 3G I can drive a car, just walk and still have quality Internet access
1Mb/s, other operators offer more but I pay pocket money for my 3G service.

Wifi is a good wireless indoor solution.
There is a number of home theater wifi speakers products on a market.
The same with usb sound cards.
So I will make some tests for you and give you tested and working solution soon.

Personally I prefer to work in silence, no audio, no video, no tv.

What do you mean by portable and active speakers ?
Small size accu powered speakers ?

Darius

MvAngel
09-01-2009, 21:02
3. no idea wich one works on shell only

My ideas is to use web interface to control the streaming server, and the streaming players to be statically configured to always connect to the to the streaming media from the audio server. With this requirement in mind, any streaming player working on the WL-500qP having functionality to stream from a server (I would assume if such player exists this would be part of the functionality) would do the job.

I've found couple of links on streaming players for the WL-500qP.
http://wiki.openwrt.org/UsbAudioHowto
and also:
http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki

I guess the wiki link will do the job.

@Darius, you can read about active speakers behind the link
http://www.hometheaterhifi.com/volume_9_4/feature-article-active-speakers-12-2002.html
I don not plan for them to be completely wireless, as they will need to have power supply. But still, there could be some benefits, related to quality of sound.

darius
10-01-2009, 13:02
My ideas is to use web interface to control the streaming server, and the streaming players to be statically configured to always connect to the to the streaming media from the audio server. With this requirement in mind, any streaming player working on the WL-500qP having functionality to stream from a server (I would assume if such player exists this would be part of the functionality) would do the job.

I've found couple of links on streaming players for the WL-500qP.
http://wiki.openwrt.org/UsbAudioHowto
and also:
http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki

I guess the wiki link will do the job.

@Darius, you can read about active speakers behind the link
http://www.hometheaterhifi.com/volume_9_4/feature-article-active-speakers-12-2002.html
I don not plan for them to be completely wireless, as they will need to have power supply. But still, there could be some benefits, related to quality of sound.

Hi,

just visited eBay, looking for USB sound cards.
There is a number of products marketed as 5.1, 7.1 virtual USB sound card, 1 speakers output jack, one jack for microphone input.
So I don't know how to connect more than 1 stereo pair of speakers to work.

I have media streamer installed and running on portable Nokia Tablet and works fine for audio but video quality is not good.
I can select sound tracks from on-line menu,
can connect stereo headphones or active speakers.
To install remote control I need another wifi device, as IrDA is not supported.

Tested, worked and no more interested.

Tell me about your 3G network, pricing, Internet bandwidth and more.

Darius

pitsch
22-01-2009, 14:05
hi all, music player daemon has a new maintainer since last winter and there are quite a few interesting updates in the new version. have a look:

http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki

this thread should be about how to compile and install the new mpd/mpc, which hacks and scripts to run with it, how to do podcasts and run a webinterface with as little as possible resources. everyone with extra experiences with MPD should feel invited to contribute.

let's have some fun.

thejew
24-01-2009, 09:04
The new version is available through ipkg update & ipkg upgade.
But I got some issues with low bitrate audiofiles, the cpu goes very high and it almost not playing at all. Looks like it tries to transcode, last version didnt do so.
I someone got an idea i would be glad, i installed 0.13 again in the meantime

bzhou
25-01-2009, 17:28
http://www.musicpd.org/mantis/view.php?id=1918

thejew
25-01-2009, 23:48
@bzhou

hmmm still not working.
With 0.13 it uses like 8 % Cpu power in the beginning and then its goin down 1 - 2 %.
When using 0.14 it uses 100 % and I hear once a while just a zap sound. Weird becouse with 128 kbps files its ok just my old audio-books which are at 64 kbps wont work any more :( .
Since we use the oss output I cant set "auto_resample" option in the mpd.conf which is suggested in the link you provided...
Still puzzling with it.

@ all
I atached some binaries that I found on the MPD website and compiled them to work with oleg. They allow you to save & restore states, and sync with other MPD servers.
Just drop them in "/opt/bin" to use them.

blubberblah666
04-02-2009, 19:29
hmmm, after upgrading mpd dies with following message:

mpd: can't load library 'libgthread-2.0.so.0'
any ideas?
ok, fixed the problem myself. installing glib also installed libgthread-2.0.so.0...
and finally: shout support seems to be compiled in!!!!

Supported outputs:
shout null fifo ao oss
i've been waiting for this a loooong time ;-)

hello again, it seems i'm having no luck to get streaming functional. my current setup includes mpd running on the asus and icecast running on a windows box.
for playing back the stream i use winamp on the windows box as well.
when i now play a track with mpd and try to listen with winamp mpd grabs a lot of ressources (cpu and mem) and noting is to hear. I've configured mpd as follows:


audio_output {
type "shout"
name "Radio"
host "192.168.1.214"
port "8000"
mount "/mpd.mp3"
password "hackme"
quality "1.0"
format "44100:16:1"
encoding "mp3"
}
note that i've set encoding to mp3. using ogg resulted in the following message when starting mpd:

shout: couldn't find shout encoder plugin "ogg"
Aborted
so, mpd error log reports this:

Feb 04 19:32 : shout: error flushing lame buffers
Feb 04 19:33 : shout: Lost shout connection to 192.168.1.214:8000: Socket error
Feb 04 19:33 : shout: Lost shout connection to 192.168.1.214:8000: Socket error
Feb 04 19:33 : shout: Lost shout connection to 192.168.1.214:8000: Socket error
Feb 04 19:33 : shout: Lost shout connection to 192.168.1.214:8000: Socket error
Feb 04 19:33 : shout: Lost shout connection to 192.168.1.214:8000: Socket error
Feb 04 19:34 : shout: error flushing lame buffers
icecast logs the following:


[2009-02-04 19:32:56] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 04 Feb 2009 19:32:56 Westeuropäische Normalzeit)
[2009-02-04 19:32:56] INFO source/source.c listener count on /mpd.mp3 now 0
[2009-02-04 19:33:07] WARN source/source.c Disconnecting source due to socket timeout
[2009-02-04 19:33:07] INFO source/source.c Source "/mpd.mp3" exiting
[2009-02-04 19:33:18] INFO connection/connection.c Source logging in at mountpoint "/mpd.mp3"
[2009-02-04 19:33:18] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 04 Feb 2009 19:33:18 Westeuropäische Normalzeit)
[2009-02-04 19:33:18] INFO source/source.c listener count on /mpd.mp3 now 0
[2009-02-04 19:33:29] WARN source/source.c Disconnecting source due to socket timeout
[2009-02-04 19:33:29] INFO source/source.c Source "/mpd.mp3" exiting
[2009-02-04 19:33:44] INFO connection/connection.c Source logging in at mountpoint "/mpd.mp3"
[2009-02-04 19:33:44] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 04 Feb 2009 19:33:44 Westeuropäische Normalzeit)
[2009-02-04 19:33:45] INFO source/source.c listener count on /mpd.mp3 now 0
it seems that mpd connects somehow to icecast according to the logs...
maybe someone can help me out.
any help appreciated,
regards, holger

thejew
05-02-2009, 12:32
maybe its just using to much CPU for transcoding? Because you set the quality to one it needs to recompress all audio on the fly, which is to much for our little mips.
thats what it did when i tried to use ogg in the past.

I still have my issue with 64 kbit files, this applys to internet streams as well. I wonder why no one realy cares. Couse this version is ununsable for me :(

blubberblah666
07-02-2009, 19:12
ok, good point. i'll give it a try tomorrow evening. thnx for the tip!
mhh, same behaviour. tried with quality set to 5.0 and 10.0.
additionally tried with bitrate set to 64, 128, 256.
maybe shout output it simply doesn't work?!
cheers,
holger

pitsch
21-03-2009, 07:09
thanks all! in the meantime i also had mixed experiences.
yes, mpd 0.14.3 still is still a bit hungry on resources.



297 admin S 5436 296 23.0 18.0 mpd
380 admin R 436 336 3.8 1.4 top
298 admin S 5436 296 0.0 18.0 mpd
304 admin R 5436 296 0.0 18.0 mpd
295 admin S 5436 1 0.0 18.0 mpd
296 admin S 5436 295 0.0 18.0 mpd


wanted to downgrade mpd to 0.13 ...
where to find a mipsel binary to download?
could anybody post the last "light" version here?

thejew
21-03-2009, 09:32
@pitsch
I atached MPD 0.13.2-1 (as IPKG), I am quite sure its the last 0.13 release.
This is the best working MPD for me at the moment.

Will soon post some pictures of my new Crystalfontz display showing MPD informations :)

pitsch
25-03-2009, 00:32
thanks!

seems that others with ARM CPUs run into similar issues. the developer is working on it, new release mpd 0.15 coming up soon.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517976

disabling crossfade and gapless helps to free up some memory, for a certain price of course. the trick with the volume=100 didn't work for me, either switching off the software mixer. (its an OSS driver anyway)

might be an idea to compile a "mpd-light" version with less functionality (mp3 only?, shoutcast...) and integer libsamplerate enabled.

mpd 0.14 seems to have a more crisp sound though. need to do some AB-testing..

sebw
25-03-2009, 13:39
Thanks thejew.
That has more than halved my CPU load using mpd. :)

thejew
04-04-2009, 15:29
Theires a new alpha version of MPD 0.15~alpha1
http://mpd.wikia.com

Will try it in the next days to see if their are some perfomance improvements again.

thejew
15-04-2009, 15:45
Havent compiled the new MPD version yet, but i made some video of my crystalfontz display in action (main thread in german part of this forum) it can be controlled by my "ati remote wonder" remotecontroll.
Its showing "all" needed MPD informations, and a lot more :)
Hope you like it ;)
Link:
Video (http://www.youtube.com/watch?v=SvcZAXW0w1Y)

tmsulica
16-11-2009, 21:10
I want to make my asus router to play some mp3 files from my hdd mounted on the device and play it to an usb soundcard ( My router stands on my 5.1 media sistem and it would be easy to play music or an radio - streaming one -without turning computer on).

Can i do this ? I gogle it but i do not have an very good answer. (Cuz i am a newbie).

If i can, i wold need an linux player for router an drivers for the sound card , no ? The soundcard is ESS USB Audio from Konig (cmp-soundusb12)

PLEASE HELP IF YOU KNOW , AN IF YOU DON'T MAYBE YOU CAN GUIDE ME TO SOMEBODY ELSE !

THANK YOU FOR YOUR HELP !

PS : I use oleg's last firmware on WL500-gp, installed by wegi tutorial, it works fine !


I FOUND SOMETHING ON http://omgili.com/jmp/jHIAmI4hxg.9n1znT6bra.jJMLduMPKOaRg4wbzT0O9_vH4X5N jGM9XIdxodp4t2aPI6GhJwkPJHcxB7Sg69RO4f3g7mXTqRt.nF HDLzDOq5FGDo8pHn0Qkub3_CHs77nOEDlNBfvTGzvoRZOVw8Xd _AW3PHl4QU7lhkFJNlouwDHa1F9CSCi_HqTD7CF3d0oBhyc9QQ qJsOxw.bWitG2SDh0G4EqzxqQASbXSy..kFZUPNxH3FlaA-- BUT I DO NOT KNOW DEUTCH, and translated is rubbish ... HLP PLEASE

froo
09-01-2010, 05:25
perhaps this could help ....

http://nuwiki.openwrt.org/oldwiki/UsbAudioHowto

jr0
09-01-2010, 15:48
you may want to have a look at mightyohm's project (http://mightyohm.com/blog/2008/10/building-a-wifi-radio-part-1-introduction/). It's for WL-520GU, but the principle is the same.
Good luck ... :)

grit
13-04-2010, 21:03
Seems tat soundcard is a bit of a problem; I have it too and the oleg firmware 'dmesg' command says:

SB device 2 (vend/prod 0xc76/0x1605) is not claimed by any active driver

On an Ubuntu Linux system this card is detected without any problems however:
'SSS USB Headphone Set as /devices/pci0000:00/00'..etc...

The setup of this box has me getting into linux a little bit, but I/m still very novice...I wonder if it's possible to incoorporate these drivers in an oleg wl-system?

Tebra
24-10-2010, 20:48
Hi,
mpd version 0.15.13-1 was working on my WL500gpv2 with firmware wl500g-1.9.2.7-d-r2174.
I have make a "ipkg update" and "ipkg upgrade" yesterday and now mpd give me this error at start up:
Illegal instruction
Any help please?

Tebra
25-10-2010, 12:10
more informations:
my USB sound card works with madplay command. MP3 just plays nice.
dmesg command report nothing special when mpd crashes.

Do you have a working WL500g with mpd?
If yes, please tell me your firmware and mpd version.

wpte
25-10-2010, 20:10
more informations:
my USB sound card works with madplay command. MP3 just plays nice.
dmesg command report nothing special when mpd crashes.

Do you have a working WL500g with mpd?
If yes, please tell me your firmware and mpd version.

Probably an error in mpd
They uploaded a new mpd on "25-Oct-2010 16:17" , so you might want to do another ipkg update and ipkg upgrade:)
might fix it...

unfortunately there are no backups available:(

tmsulica
29-11-2010, 10:03
because of no answer probably NOT :( !

tmsulica
29-11-2010, 23:19
It says that the search is the mother of understanding (romanians at least). SO I FOUND AN ANSWER FOR MY QUESTION !!!!!

Premise: I get the next message when i plug my ESS USB Audio from Konig (cmp-soundusb12):


SB device 2 (vend/prod 0xc76/0x1605) is not claimed by any active driver

SO

I accidentally stumbled upon my old post about souncard on router , and i decided to be angry and give it a try. After a litle searching in the forums i've saw the solution, too simple to see it then (newbie , lol)

Step 1: to test if the core is good for my soundcard ... i downloaded oleg's latest modules archive from here (http://oleg.wl500g.info/1.9.2.7-10/modules-1.9.2.7-10.tgz), then within windows i extracted the 2 files i neded from it: lib/modules/2.4.20/kernel/drivers/sound - soundcore.o and lib/modules/2.4.20/kernel/drivers/usb - audio.o .
Step 2: i transfered them somewhere on my router's hdd:
Ex: /tmp/harddisk/pbfiles, then i created there another directory named scripts (well it was created long ago, for me is an directory where i create scripts and make them executables etc). ALL THE OPERATIONS FOR EASY USE I DID IT WITH MC (midnight commander), read wengi's post about full config and MC here (http://wl500g.info/showthread.php?t=10307), and files transferred with ftp (i use total commander from my xp).

STEP 3: I created in my Scripts directory a file nammed audio.start with this content:


sleep 5
rmmod audio
insmod /tmp/harddisk/pbfiles/soundcore.o
insmod /tmp/harddisk/pbfiles/audio.o

then i made it executable chmod +x audio.start

Step4: i do not want to modify to many times my post-boot file, so i added just a line to my recently created executable from above.


/tmp/harddisk/scripts/audio.start

the post boot file is in /usr/local/sbin/post-boot, I edited, after that I saved it, to commit the changes i gived the the router the reboot, flash command

flashfs save && flashfs commit && flashfs enable && reboot.

And voila my log:


Jan 1 01:00:58 kernel: usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
Jan 1 01:00:58 kernel: usbaudio: valid input sample rate 48000
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 48000 sratehi 48000 attributes 0x00
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
Jan 1 01:00:58 kernel: usbaudio: valid output sample rate 48000
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
Jan 1 01:00:58 kernel: usbaudio: registered dsp 14,3
Jan 1 01:00:58 kernel: usbaudio: registered mixer 14,0
Jan 1 01:00:58 kernel: usbaudio: registered mixer 14,16
Jan 1 01:00:58 kernel: audio.c: v1.0.0:USB Audio Class driver


Of course that it was much simple just to add comands in post-boot file but i'm not an simple person :)) .

Tomorrow i will install an mp3 player on my router to test it ..... best wishes

tmsulica
01-12-2010, 18:54
# madplay Ben.Mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
Title: Ben
Artist: Michael Jackson
Orchestra: Michael Jackson
Album: Ben
Track: 01
Year: 1972
Genre: Pop
Encoder: Discography Arranged By Gabi_Bits
Comment:
output: sample frequency 44100 Hz not available; using 48000 Hz
output: resampling 44100 Hz to 48000 Hz


NO COMMENT :D

pheidrias
29-02-2012, 12:04
Hello together!

Still on the search for a music streamer/player, I came back to try mpd from opkg.
Things work fine with MP3s when played with locally attached USB-Soundcard.

But when it comes to OGG-Files, there is only a once a second short crisp.
Seems to be a known (and fixed?) problem:
https://dev.openwrt.org/ticket/9280
https://forum.openwrt.org/viewtopic.php?id=29475
https://forum.openwrt.org/viewtopic.php?pid=133669

However in my case, OGGs are at least indexed. I use the opkg-version (0.16.5), which should have built-in the fix?

Second problem is the http-streaming. When started (with MP3 ;-) ), CPU load goes up in the sky and I get some milli-seconds of music every minute using VLC on my PC here. This is also documented (http://musicpd.org/mantis/view.php?id=3330 and many more) and reported to be fixed?

So any ideas, wether the actual wl500g-build may be broken?

I wanted to compile it on my own, but couldn't find a c-compiler in opkg - any solution to this?

And last but not least: is there any way, to get the binaries of the older versions to try wether there is some working version?

Thanks a lot for help,
pheidrias

ryzhov_al
29-02-2012, 12:22
I wanted to compile it on my own, but couldn't find a c-compiler in opkg - any solution to this?opkg (http://code.google.com/p/opkg/) is a small program for managing existing packages, it does not include compiler or something else.

My mpd Makefile (https://dev.openwrt.org/browser/packages/sound/mpd/Makefile) taken from OpenWRT trunk and mpd was built with OGG support. You may try to build your own mpd version, just follow this (http://code.google.com/p/wl500g-repo/source/browse/trunk/INSTALL) manual.

pheidrias
29-02-2012, 12:28
This refers to cross-compiling, then? It's supposed to be done on my linux machine?

If it could be done on the router, I do miss a svn-package :-(.

Are there any older mpd-versions from your opkg (remember to have read something on versioning with opkg)?

Thanks!

!gm
29-02-2012, 12:45
don't compile it on the router - you'll lose many hours/days preparing the system and compiling the openwrt packages

pheidrias
01-03-2012, 11:24
Okay...I tried to follow the HowTo (http://code.google.com/p/wl500g-repo/source/browse/trunk/INSTALL) by copy/pasting the instructions (took the newest revision instead of r3458).

Maybe I misunderstood it, but the last step failed


~/Soft/openwrt/trunk$ make package/compile V=99
make[1]: Entering directory `/home/guntram/Soft/openwrt/trunk'
make[2]: Entering directory `/home/guntram/Soft/openwrt/trunk/package/opkg'
make[2]: Leaving directory `/home/guntram/Soft/openwrt/trunk/package/opkg'
make[2]: Entering directory `/home/guntram/Soft/openwrt/trunk/package/base-files-network'
make[2]: Leaving directory `/home/guntram/Soft/openwrt/trunk/package/base-files-network'
make[2]: Entering directory `/home/guntram/Soft/openwrt/trunk/package/base-files'
cp -fpR /home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libuClibc-*.so /home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libcrypt-*.so /home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libm-*.so /home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libpthread-*.so /home/guntram/Soft/openwrt/trunk/build_dir/linux-rtn/base-files/
cp: cannot stat `/home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libuClibc-*.so': No such file or directory
cp: cannot stat `/home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libcrypt-*.so': No such file or directory
cp: cannot stat `/home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libm-*.so': No such file or directory
cp: cannot stat `/home/guntram/Soft/openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/lib/libpthread-*.so': No such file or directory
make[2]: *** [/home/guntram/Soft/openwrt/trunk/build_dir/linux-rtn/base-files/.built] Error 1
make[2]: Leaving directory `/home/guntram/Soft/openwrt/trunk/package/base-files'
make[1]: *** [package/base-files/compile] Error 2
make[1]: Leaving directory `/home/guntram/Soft/openwrt/trunk'
make: *** [package/compile] Fehler 2


If I try make mpd-full/compile instead, it breaks down immediately (No rule to make target `mpd-full/compile')...
This will be the point where I have to tell him your posted make-file? How?

Thanks for further support!

Although I'm learning some things here - could someone of you guys please test, wether MPD on your routers is able to play OGG-files? Maybe its really a package problem and not just my personal fault...thank you!

pheidrias
01-03-2012, 16:05
Hello again!

I figured out, that the problem seems to stem from resampling. This takes too much CPU and therefore makes the playback quite impossible (CPU load > 95% for mpd when playing OGG).

Maybe there is some misconfiguration for mpd 0.16.5?
It worked when I was using mpd 0.15...

ryzhov_al
01-03-2012, 17:39
I figured out, that the problem seems to stem from resampling. This takes too much CPU and therefore makes the playback quite impossible (CPU load > 95% for mpd when playing OGG).Unfortunately, our CPU have no FPU, only FPU emulation unit. This is why massive floating point calculations is painfully slow.
But! You may relink the mpd from libvorbis to libvorbisidec - a library with integer numbers only algorithms. See Makefile (https://dev.openwrt.org/browser/packages/sound/mpd/Makefile) for details.

!gm
01-03-2012, 17:47
You may relink the mpd from libvorbis to libvorbisidec - a library with integer numbers only algorithms.

:eek: if thats working, all applications on our devices using this lib, should be relinked

I don't have any ogg-files now, but am willing to test it with minidlna this night...

pheidrias
01-03-2012, 20:27
But! You may relink the mpd from libvorbis to libvorbisidec - a library with integer numbers only algorithms. See Makefile (https://dev.openwrt.org/browser/packages/sound/mpd/Makefile) for details.

Unfortunately the makefile doesn't tell me anything :(...as my above post demonstrates, I'm still stuck on the last step of preparing my system for cross-compiling...

Or can I "symlink" the libraries?



I don't have any ogg-files now, but am willing to test it with minidlna this night...

Shall I send you one?
I even get those problems with madplay --> in case, minidlna doesn't produce problems (for other reasons?)...

pheidrias
05-03-2012, 08:42
@!gm: Have you had time to give it a try?

@ryzhov_al: Could you please help me in setting up this compiling/linking (see above post)?
As mpd seems to use ogg-reencoding for http-streaming, too, there seems to be a real need for this thing!

Thanks a lot,
pheidrias

ryzhov_al
06-03-2012, 08:17
@ryzhov_al: Could you please help me in setting up this compiling/linking (see above post)?Sorry, I did not have enough time to teach each member of our forum. Please, refer my guide (http://code.google.com/p/wl500g-repo/source/browse/trunk/INSTALL) and this (http://www.wl500g.info/showthread.php?t=28778) topic.

pheidrias
06-03-2012, 18:38
Sorry, I did not have enough time to teach each member of our forum.
Of course! You're already doing a great job in sharing your projects with us!
I didn't want to sound too demanding...sorry for this.

I posted the error message I get when trying to follow your HowTo in my earlier post (01-03-2012 12:24) - I don't understand what I've made wrong?

Thanks,
pheidrias

!gm
06-03-2012, 23:53
toolchain is not well installed.

did you read my success story?

http://wl500g.info/showpost.php?p=244468&postcount=19
http://wl500g.info/showpost.php?p=244521&postcount=23

^these are the most important posts

pheidrias
12-03-2012, 22:51
hmmm...my problem seems to be at another place...
However, I may have overseen the following error message the first time I tried the compilation.
When I do "make toolchain" it stops with:


Ausgecheckt, Revision 3458.
cp -f ../../toolchain-1.9.2.7-rtn-r3458/src/defconfig ../../toolchain-1.9.2.7-rtn-r3458/src/.config
sed -i 's,/home/lly/Wl500/rt-n/linux/linux-2.6/,/home/guntram/Soft/openwrt/rtn/toolchain/../../firmware-1.9.2.7-rtn-r3702/src/linux/linux-2.6,g' ../../toolchain-1.9.2.7-rtn-r3458/src/.config
Fixme: apply uClibc patches for ld.so*
cp -f ./999-ld-native-search-path.patch ../../toolchain-1.9.2.7-rtn-r3458/src/toolchain/binutils/patches/2.21.1/
cp -f ./*-uclibc-*.patch ../../toolchain-1.9.2.7-rtn-r3458/src/toolchain/uClibc/patches/0.9.32/
cp: Aufruf von stat für „./*-uclibc-*.patch“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make[1]: *** [.toolchain_compiled] Fehler 1
make[1]: Verlasse Verzeichnis '/home/guntram/Soft/openwrt/rtn/toolchain'
make: *** [.toolchain_installed] Fehler 2


Do I have to get the missing patch somewhere manually?

!gm
13-03-2012, 01:36
Alexander changed the installation-routine in r384.

http://code.google.com/p/wl500g-repo/source/list

You may checkout latest trunk as he fixed some issues yesterday. :D
Or an revision < 384 and use a precompiled toolchain, as I did.

ryzhov_al
13-03-2012, 07:19
Alexander changed the installation-routine in r384.

http://code.google.com/p/wl500g-repo/source/list

You may checkout latest trunk as he fixed some issues yesterday. :D
Or an revision < 384 and use a precompiled toolchain, as I did.
No, wait!^)
There is no changes in MPD code, it's just a preparations for building my own toolchain. Its not finished yet, so opkg update goes as usual. I'll write a note when its done.

pheidrias
13-03-2012, 10:40
No, wait!^)
There is no changes in MPD code, it's just a preparations for building my own toolchain. Its not finished yet, so opkg update goes as usual. I'll write a note when its done.

Does it mean you intend to fix the mpd-problem? This would be great!

Nevertheless I'd like to understand my compile-problems (so that one day I can hopefully help other people with their problems)...

Using an earlier revision means changing the svn-command, right?
Did I mix/miss some instructions or where can I find the "precompiled toolchain"?

Thank you both!

!gm
13-03-2012, 14:17
http://code.google.com/p/wl500g-repo/source/diff?spec=svn387&old=379&r=387&format=side&path=%2Ftrunk%2FINSTALL

installation routine of the repository has changed, not mpd ;)