TODO list for each hardware target can be found as sticky topic in the corresponding forum
streaming (or non-streaming) MP3 audio... mpg123 hello again.
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 I want to add another thing:
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 if you want to give it a go you can follow my guide in http://switchfin.org/index.php?option=c … id=54#p378
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 whew, ouch!! Code:make[1]: *** No targets specified and no makefile found. Stop. Hmmm.. ok so I guess it needs to be configured. So I enter into the '/switchfin/build_ip04/mpg123-1.12.3' directory and type './configure'
Code:libtool: link: gcc -shared .libs/compat.o .libs/parse.o .libs/frame.o .libs/format.o .libs/dct64.o .libs/equalizer.o .libs/id3.o .libs/optimize.o .libs/readers.o .libs/tabinit.o .libs/libmpg123.o .libs/index.o .libs/stringbuf.o .libs/icy.o .libs/icy2utf8.o .libs/ntom.o .libs/synth.o .libs/synth_8bit.o .libs/layer1.o .libs/layer2.o .libs/layer3.o .libs/synth_s32.o .libs/synth_real.o .libs/dct64_i386.o .libs/synth_i586.o .libs/synth_i586_dither.o .libs/dct64_mmx.o .libs/tabinit_mmx.o .libs/synth_mmx.o .libs/synth_3dnow.o .libs/dct64_3dnow.o .libs/equalizer_3dnow.o .libs/dct36_3dnow.o .libs/dct64_3dnowext.o .libs/synth_3dnowext.o .libs/dct36_3dnowext.o .libs/dct64_sse.o .libs/dct64_sse_float.o .libs/synth_sse_float.o .libs/synth_stereo_sse_float.o .libs/synth_sse_s32.o .libs/synth_stereo_sse_s32.o .libs/synth_sse.o .libs/getcpuflags.o .libs/dither.o .libs/feature.o .libs/lfs_wrap.o .libs/lfs_alias.o -lm -Wl,-soname -Wl,libmpg123.so.0 -Wl,-version-script -Wl,.libs/libmpg123.ver -o .libs/libmpg123.so.0.25.5 here is where of course I am failing.
Code:switchfin/build_ip04/uClinux-dist/user/madplay Is it trivial to add these in to the build structure? I mean, is this easier than trying to compile mpg123? I am just asking, I do not know the exact capabilities of each of these apps. |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 if any of them will do the job just select custom kernel options in make menuconfig
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 ok, so i tried to add in modules:
Code:/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/user/genext2fs/build-host/genext2fs: couldn't allocate a block (no free space) does it mean that the uImage was too big for the IP02 to hold? I mean is it a fixed maximum size or something? I don't know how to interpret this error. The hard drive in my build environment has 23GB free space... |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123nope I dont have Tiff2PDF, in fact I disabled fax detection too, not using any fax related stuff. I will try to build without mplayer. too bad we dont have an extra meg or 2 of space for "stuff". I dont know of any "neater" package than the ip0x (fanless, tiny, low power) but i guess it would be great if Rowetel would refresh the design and maybe beef up the cpu & add some more ram to the mix. double the ram would really give this some more room to breathe. |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123That’s something i would like to see as well but David will never change the IP04 as its the only atcom model that is approved (A tick) for use in Australia. And its an expensive exercise to get approval. |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 do you have any thoughts on Running switchfin on an x86 embedded platform, such as the new Norco 6620-III (PDF datasheet) or Atom D510 Silent Dual-Core Multi LAN M350 Kit. The D510 (2nd link) has a hardware watchdog-timer which may be useful, as well as 3 gigabit LAN ports... so many possibilities....
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 The only issue i can see with using the GUI 4.0 on another platform would be the links to /persistent these can all be changed in js/astman.js and scripts/*
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123hmm that "sounds easy" hehe. so to build an asterisk box using one of those Atom systems would I install linux first, then asterisk & then try to load switchfin GUI on top of it ... I mean since they are not flash-based units, you dont build uImage but instead install directly to CF-card, SSD drive etc. So how would you get GUI 4.0 on there? |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123yup thats correct you would have to build the system install asterisk then load the gui ontop you can get the GUI 4.0 from "svn co https://switchfin.svn.sourceforge.net/s … gui/trunk/ gui" |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 Had a quick look into madplay, has no streaming support so you would have to create a script called "stream.sh" (as you cant use pipe from asterisk).
Code:
don’t forget to make it executable "chmod +x stream.sh"
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 heheh i was abit wrong heres a link to what you want
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 no luck so far... its very weird I can get madplay to run no problem, and I made a shell script to use 'wget' to pipe the stream to madplay and that seems to work too (no way to test it because there is no console/dsp output on ip0x). But when I add this config to my musiconhold.conf, it causes my asterisk to die immediately upon startup.
Code:1) vi /etc/asterisk/mohstream.sh: when I try running asterisk -vvvvv from console, it dies immediately after the 'parsing musiconhold.conf' .. so it definitely doesn't like something about that file or the streaming. Not sure where to go next. I am sure this is possible.... because when I run madplay/wget manually, cpu usage is like 1-2% which is great |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123yes I do have procwatch installed.... how can I determine if I am really running out of memory? shouldnt use too much memory, I mean these are 32kbit streams... not sure how much data wget buffers... but is there some way to see free memory on the unit? or monitor it? |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 i just found cat /proc/meminfo
Code:root@ip0x:~> cat /proc/meminfo |
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 yeah I just fired up 2 shells, side by side, one side was running 'top'
|
|
|
|
Administrator has disabled public posting |
Re: streaming (or non-streaming) MP3 audio... mpg123 ok I failed with the asterisk 1.6
Code:root@ip0x:~> asterisk -vvvvv |
|
|
|
Administrator has disabled public posting |
Most Active Users
Board Info
- Board Stats: Total Users: 2587 Total Topics: 299 Total Polls: 1 Total Posts: 1727 Dormant
- User Info: Newest User : user2553 Members Online: 0 Guests Online: 372
- Online There are no members online
- Topic
- New
- Locked
- Sticky
- Active
- New/Active
- New/Locked
- New Sticky
- Locked/Active
- Active/Sticky
- Sticky/Locked
- Sticky/Active/Locked
, well I had a day to toy around with my asterisk box. So I was thinking it would be great if it would be possible to use a low-bitrate MP3 audio stream instead of the boring Music on Hold (MOH) that comes with asterisk.































