Sign up here and you can log into the forum!

Local (LAN) private Shoutcast Server

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Local (LAN) private Shoutcast Server   

Postby Klaws » Fri Apr 30, 2010 11:57 pm

Hi,

as navigating a huge music collection via TV screen and remote is a real pain (compared to the UI of, let's say, Winamp or MixMeister), I figured that I should try to run a private Shoutcast server on the LAN (accessible on inside the LAN, not advertized on the Shoutcast Yellow Pages) and have the WDTV Live connect to it. So I made a /conf/umsp.php, uploaded it via ftp and, to my surprise, it worked:
Code: Select all
<?php
global $myMediaItems;

# Copy and repeat for multiple items:
#-----------------------------
$data = array('stream_url' => 'http://192.168.225.1:8000');
$dataString = http_build_query($data, 'var_');
$encDataString = htmlentities($dataString);
$myMediaItems[] = array(
    'id'         => 'umsp://plugins/shoutcast?stream=1',
    'parentID'   => '0',
    'restricted' => '1',
    'dc:title'   => 'Shoutcast 192.168.225.1',
    'upnp:class' => 'object.item.audioItem',
    'res'        => 'http://127.0.0.1/umsp/plugins/shoutcast/shoutcast-proxy.php?' . $encDataString,
    'duration'   => '24:00:00',            #Attribute of res
    'upnp:album_art'=> 'http://127.0.0.1/umsp/media/generic.jpg',
    'protocolInfo'  => 'http-get:*:audio/mpeg:*',
#   'upnp:artist'   => 'Powered by',
#   'upnp:album'    => 'WWW.SHOUTCAST.COM',
);
#-----------------------------
?>

It's basically based on copy-&-paste and a bit of guesswork, so I don't known if it's the "optimum solution", but it appears to work...

Note that the Shoutcast server is configured at port 8000, sending 320kBit/s mp3. Yup, I did set Sleep=100 in sc_serv.ini.

Best regards, Klaus

----------

Changed on 2012-09-06: it appears that the path to the UMSP Shoutcast proxy has changed during one of the last updates. I fixed the above code example to reflect this. Before:
Code: Select all
     'res'        => 'http://127.0.0.1/umsp/plugins/shoutcast-proxy.php?' . $encDataString,

Now:
Code: Select all
     'res'        => 'http://127.0.0.1/umsp/plugins/shoutcast/shoutcast-proxy.php?' . $encDataString,
Klaws
n00b
 
Posts: 8
Joined: Tue Apr 27, 2010 1:01 pm

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest