[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[200] Compiling SqueezeSlave for C200
01-21-2012, 06:03 PM (This post was last modified: 01-21-2012 06:45 PM by papaiannis.)
Post: #1
Compiling SqueezeSlave for C200
I tried to compile source code (downloaded from http://squeezeslave.googlecode.com/files....tar.bz2), using generic makefile for kernel 2.6, but I obtain the following output:
---------------------------------------------
sh-3.00# make -f makefile.linux26-alsa-display

cd lib/libportaudio/lnx26/build && tar -xzf ../../../../sources/portaudio-r1608.tar.gz
cd lib/libportaudio/lnx26/build && patch -p0 -i ../../../../patches/build-portaudio-alsa-badstate.patch
patching file portaudio/src/hostapi/alsa/pa_linux_alsa.c
patch: hunk #1 FAILED at 3701
patch: 1 out of 1 hunk FAILED
make: *** [lib/libportaudio/lnx26/lib/libportaudio.a] Error 1
-----------------------------------------

Any ideas to solve that issue?
Did anyone try to compile squeezeslave for C200?
Thanks a lot.
Find all posts by this user
Add Thank You Quote this message in a reply
01-21-2012, 06:39 PM
Post: #2
RE: Compiling SqueezeSlave for C200
Oh, good thing you're working on it! Would be awesome if there was a player for SqueezeBox music on the the NMTs.

Unfortunately, I got no idea why you get this error. A hunk usually is a part of an executable program. I wonder why applying the patch on it fails...

Media Player: Popcorn Hour C-200 (with Samsung SpinPoint HM500JI, Lite-On iHOS104-37 and Alpha WMP-ND02 WLAN-Module)
TV: Grundig Vivance 32 LXW 82-6710 REF
Receiver: Topfield 5000 PVRt (with 160 GB HD)
Sound: LG FB162-DOU
NAS: Netgear ReadyNAS NVX RNDX400E
Find all posts by this user
Add Thank You Quote this message in a reply
01-21-2012, 07:29 PM
Post: #3
RE: Compiling SqueezeSlave for C200
(01-21-2012 06:03 PM)papaiannis Wrote:  cd lib/libportaudio/lnx26/build && patch -p0 -i ../../../../patches/build-portaudio-alsa-badstate.patch
patching file portaudio/src/hostapi/alsa/pa_linux_alsa.c
patch: hunk #1 FAILED at 3701
patch: 1 out of 1 hunk FAILED
make: *** [lib/libportaudio/lnx26/lib/libportaudio.a] Error 1
-----------------------------------------

Any ideas to solve that issue?
Did anyone try to compile squeezeslave for C200?
Thanks a lot.
Seems to me that SqueezeSlave is using ALSA for audio output.
Unfortunately, there is no ALSA implementation in PCH products...
Dead end.
Find all posts by this user
Add Thank You Quote this message in a reply
01-22-2012, 12:33 AM
Post: #4
RE: Compiling SqueezeSlave for C200
Does PCH-C200 support OSS?
Is it possible to get squeezeslave play on a PCH-C200?
Find all posts by this user
Add Thank You Quote this message in a reply
01-22-2012, 01:08 AM (This post was last modified: 01-22-2012 01:19 AM by Grael.)
Post: #5
RE: Compiling SqueezeSlave for C200
No OSS, not any standard interface...
Only Sigma proprietary api (and closed source/documentation/header files).

That's why I'm using (local) http streaming to get sound with MPD.
Maybe SqueezeSlave can output http stream too?
Or even squeezeServer directly?
Something to look at:
http://wiki.slimdevices.com/index.php/RemoteStreaming

And keeping in mind this limitation:
http://www.networkedmediatank.com/showth...#pid479877
And a way to avoid it:
http://www.networkedmediatank.com/showth...#pid480234
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Grael for this post
01-22-2012, 12:24 PM
Post: #6
RE: Compiling SqueezeSlave for C200
(01-22-2012 01:08 AM)Grael Wrote:  No OSS, not any standard interface...
Only Sigma proprietary api (and closed source/documentation/header files).

That's why I'm using (local) http streaming to get sound with MPD.
Maybe SqueezeSlave can output http stream too?
Or even squeezeServer directly?
Something to look at:
http://wiki.slimdevices.com/index.php/RemoteStreaming

And keeping in mind this limitation:
http://www.networkedmediatank.com/showth...#pid479877
And a way to avoid it:
http://www.networkedmediatank.com/showth...#pid480234

Hi Grael, thank you for valuable information.

Actually my wish is to stream flac files from a Logitech Media Server installed on my C200, to a player installed on the same device. The final goal is to control the C200 player with a Squeezebox Controller remote. Therefore the player shall be seen by the server as a squeezebox device. I thougth that a squeezeslave could do the trick, but it seems that C200 is not compatible with it.
Now for some questions:
1) Can the squeeze server stream flac to MPD, and not just mp3?
2) Does Logitech Media Server see MPD as a squeezebox device?
2) Is UPNP/DLNA (new feature in Logitech Media Server 7.7) exploitable to do the trick?
Find all posts by this user
Add Thank You Quote this message in a reply
01-22-2012, 02:25 PM
Post: #7
RE: Compiling SqueezeSlave for C200
(01-22-2012 12:24 PM)papaiannis Wrote:  Hi Grael, thank you for valuable information.

Actually my wish is to stream flac files from a Logitech Media Server installed on my C200, to a player installed on the same device. The final goal is to control the C200 player with a Squeezebox Controller remote. Therefore the player shall be seen by the server as a squeezebox device. I thougth that a squeezeslave could do the trick, but it seems that C200 is not compatible with it.
Are you planning to use the squeezeBox server for something else than playing on the PCH? (another squeezebox player in your installation?)
If not, you could just use MPD... Wink
(but not with your Squeezebox Controller... I got a small android tablet for 90 euros to install MPDroid, a MPD controller. Works fine!)

(01-22-2012 12:24 PM)papaiannis Wrote:  Now for some questions:
1) Can the squeeze server stream flac to MPD, and not just mp3?
You won't need to stream to MPD, just create a link on the PCH to play the squeezeBox stream.
I don't know if it can stream something else than mp3 (and not sure the PCH is powerfull enough to encode to mp3 on the fly)
(01-22-2012 12:24 PM)papaiannis Wrote:  2) Does Logitech Media Server see MPD as a squeezebox device?
No.
(01-22-2012 12:24 PM)papaiannis Wrote:  2) Is UPNP/DLNA (new feature in Logitech Media Server 7.7) exploitable to do the trick?
Maybe, you can try v7.7 on a PC first, to see if your C200 is selectable as DLNA renderer.

Good luck! Tongue
Find all posts by this user
Add Thank You Quote this message in a reply
01-22-2012, 03:16 PM (This post was last modified: 01-22-2012 03:20 PM by papaiannis.)
Post: #8
RE: Compiling SqueezeSlave for C200
I currently use the Logitech Media Server running on PCH-C200, placed in my living room, to stream to a Squeezebox Boom placed in my bed room. This way I don't need to have my PC on.

Now I'd like to use a Squeezebox Controller remote, which I already own, to control playing on the C200. That's why I thought to set up a squeezeslave on the C200.

Using MPD in combination with an Android tablet would be a good solution, but this would force me to buy a tablet...

I really don't know how to create a link on the C200 to play a squeezebox stream. Could you please help me?

I installed Logitech Media Server v7.7.1 on my PC. This server does not see the C200 as a renderer. It only sees the squeezebox server installed on the C200, and lets me to switch to the web control page of that server.

Strangely enough, the C200 does not see the squeezebox server locally installed as a UPnP source, while it sees the one installed on my PC.

Thanks a lot for your help.
Find all posts by this user
Add Thank You Quote this message in a reply
01-22-2012, 11:30 PM (This post was last modified: 01-22-2012 11:30 PM by Grael.)
Post: #9
RE: Compiling SqueezeSlave for C200
(01-22-2012 03:16 PM)papaiannis Wrote:  I really don't know how to create a link on the C200 to play a squeezebox stream. Could you please help me?
As I stated earlier, C200 can't play a stream from the same subnet.
So you need to create an other (virtual) subnet with:
Code:
ifconfig eth0:0 192.168.10.11 netmask 255.255.255.0 up
route add -net 192.168.10.0 netmask 255.255.255.0 eth0:0

Then, create an .htm file containing the following:
Quote:<html>
<body>
<a href="http://192.168.10.11:9000/stream.mp3" aod>SqueezeBox Stream</a>
</body>
</html>

Put it on the C200 and, when squeezeBox is playing, open the .htm file on your C200 and press OK on the SqueezeBox Stream link.

Hope it helps...
Find all posts by this user
Add Thank You Quote this message in a reply
04-15-2012, 10:58 PM (This post was last modified: 04-15-2012 11:18 PM by papaiannis.)
Post: #10
RE: Compiling SqueezeSlave for C200
I tried MP3 streaming, and it works well. Thank you.
Now I'd like to stream lossless audio.
Is it possible to stream flac from Logitech Media Server?


(01-22-2012 11:30 PM)Grael Wrote:  ...
Then, create an .htm file containing the following:
Quote:<html>
<body>
<a href="http://192.168.10.11:9000/stream.mp3" aod>SqueezeBox Stream</a>
</body>
</html>

Put it on the C200 and, when squeezeBox is playing, open the .htm file on your C200 and press OK on the SqueezeBox Stream link.

Hope it helps...
Find all posts by this user
Add Thank You Quote this message in a reply
04-26-2012, 10:07 PM (This post was last modified: 04-26-2012 10:09 PM by papaiannis.)
Post: #11
RE: Compiling SqueezeSlave for C200
Thank you Grael.
I installed MPD on my C200 and it's really a great app!
I have used linux, android and windows clients, and all work very well.
Still, I'd like to use C200 as a squeeze device, because I have a couple of squeezeboxes, and a nice squeezebox controller remote; therefore I am used to the squeezebox paradigm.
With such a feature, no other media server could compete with the popcorn hour!

I am considering to work on the squeezeslave client.
Could you please give me some hints on how subsistute calls to the audio driver interfaces with calls to interfaces for http streaming?
If discussion gets too technical and less interesting for users of this forum, you could PM me.

Thanks a lot.
Alekos
Find all posts by this user
Add Thank You Quote this message in a reply
06-02-2012, 12:57 PM
Post: #12
RE: Compiling SqueezeSlave for C200
HI papaiannis...

Have you found out something , just curious..
With a squeezeslave client , the PCH would be
so great...

Only playing music on mine , over the DavidBox API.

/Michael
Find all posts by this user
Add Thank You Quote this message in a reply
11-21-2012, 03:48 PM
Post: #13
RE: Compiling SqueezeSlave for C200
(04-26-2012 10:07 PM)papaiannis Wrote:  I am considering to work on the squeezeslave client.

Giasou Papaiannis,

any news with your squeezeslave client?
Find all posts by this user
Add Thank You Quote this message in a reply
12-05-2012, 04:51 AM
Post: #14
RE: Compiling SqueezeSlave for C200
(11-21-2012 03:48 PM)losAntonis Wrote:  
(04-26-2012 10:07 PM)papaiannis Wrote:  I am considering to work on the squeezeslave client.

Giasou Papaiannis,

any news with your squeezeslave client?

I abandoned the project, sorry.
Now I use mpd instead. It works fairly well.

Alekos
Find all posts by this user
Add Thank You Quote this message in a reply
12-21-2012, 10:57 AM
Post: #15
RE: Compiling SqueezeSlave for C200
Ciao alekos,

what do you mean with mpd works fairly well?
Does it mean that you are able to stream from your LMS to the mpd on your poppy?

antonis
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Is there a FTP CLIENT i can install on my C200? parpagnas 0 99 05-19-2013 12:45 PM
Last Post: parpagnas
  [200] Airplay server for C200 and A100 popcornmix 334 140,414 05-13-2013 12:37 AM
Last Post: FlintLock
  [400] how to convert scripts from c200 (html+php) to a400 (javascript or bash or ???) ? dmhwsm 0 437 02-10-2013 05:39 PM
Last Post: dmhwsm
  [200] Using PopcornHour C200 as frontend for MythTV/MythWeb schaumburg 13 6,850 01-01-2013 01:02 AM
Last Post: flitter
  [200] C200 and software raid xray 14 2,577 11-19-2012 08:41 PM
Last Post: seba0902
  [200] Network command for shut down on C200 JamesTF 6 1,456 11-14-2012 09:24 PM
Last Post: opfeifer
  [200] Error compiling Mono.Net snamds 3 1,463 05-14-2012 08:52 PM
Last Post: snamds
  [200] [Apps] MPDJukebox for A200/C200 Grael 15 5,719 04-29-2012 11:13 PM
Last Post: Micki
  [200] Spdif output from squeezeslave for C200 papaiannis 1 799 04-14-2012 08:16 AM
Last Post: michaelvv
  [200] Access to system console on PCH-C200 xzjt31 10 4,446 03-27-2012 08:32 PM
Last Post: bworby

Forum Jump: