Sign up here and you can log into the forum!

single mp3 stream

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

single mp3 stream   

Postby Jospfh79 » Tue Mar 08, 2011 6:35 am

I'm having difficulties configuring umsp to play a single stream I have in my network. I have tried different things in /conf/umsp.php (using http://forum.wdlxtv.com/viewtopic.php?f=49&t=86) without succes.

Currently I have shoutcast to host the stream. Content of http://192.168.47.2:8002/listen.pls:
Code: Select all
[playlist]
NumberOfEntries=1
File1=http://192.168.47.2:8002/


I also have mpd (which is the source of the stream) directly hosting at http://192.168.47.2:8001/

Who can help me making my wdtv live to connect to this stream? Preferably the stream sirectly generated by mpd.
Jospfh79
n00b
 
Posts: 2
Joined: Tue Mar 08, 2011 6:22 am

Re: single mp3 stream   

Postby Jospfh79 » Thu Mar 10, 2011 12:15 pm

Got it working by streaming through icecast. Shoutcast worked as well. Unfortunately the direct stream from mpd sufers from hickups.....

here is the /con/umsp.php i use:
Code: Select all
<?php

global $myMediaItems;

    $myMediaItems[] = array(
        'id'         => strval(count($myMediaItems)+1),
        'parentID'      => '0',
        'dc:title'      => 'MPD Icecast',
        'upnp:class'   => 'object.item.audioItem',
        'res'         => 'http://127.0.0.1/umsp/plugins/shoutcast-proxy.php?stream_url=http%3A%2F%2F192.168.47.2%3A8000%2Fmpd',
        'protocolInfo'   => 'http-get:*:audio/x-mpegurl:*',
    );
?>


The above will make the wdtv live connect to http://192.168.47.2:8000/mpd which is an icecast stream.
Jospfh79
n00b
 
Posts: 2
Joined: Tue Mar 08, 2011 6:22 am

Re: single mp3 stream   

Postby zeltak » Mon May 30, 2011 6:54 am

hi Jospfh79

im trying to replicate your method but not able to get the mpd stream

im a complete neewb. i currenlt have this in my umsp.php:

<?php

global $myMediaItems;

$myMediaItems[] = array(
'id' => strval(count($myMediaItems)+1),
'parentID' => '0',
'dc:title' => 'MPD_cast',
'upnp:class' => 'object.item.audioItem',
'res' => 'http://127.0.0.1/umsp/plugins/shoutcast-proxy.php?stream_url=http%3A%2F%2F192.168.0.101%3A8000%2Fmpd',
'protocolInfo' => 'http-get:*:audio/x-mpegurl:*',
);
?>

my mpd stream is from http://192.168.0.101:8000

any ideas/tips on how to proceed?

thx alot in advance

Zeltak
zeltak
n00b
 
Posts: 8
Joined: Sat May 21, 2011 5:52 pm

Re: single mp3 stream   

Postby workingman » Thu Jul 12, 2012 12:13 am

Hey Zeltak,

I had some trouble getting this going as well but did finally manage it with this:


# cat /conf/umsp.php
Code: Select all
<?php

global $myMediaItems;

    $myMediaItems[] = array(
        'id'         => strval(count($myMediaItems)+1),
        'parentID'      => '0',
        'dc:title'      => 'My MPD Stream',
        'upnp:class'   => 'object.item.audioItem',
        'res'         => 'http://127.0.0.1/umsp/plugins/shoutcast/shoutcast-proxy.php?stream_url=http%3A%2F%2F192.168.99.25%3A8000%2Fmpd',
        'protocolInfo'   => 'http-get:*:audio/x-mpegurl:*',
);
?>


My MPD stream is http://192.168.99.25:8000/mpd and a nice way to verify is just to run mplayer http://192.168.99.25:8000/mpd from the command line. In fact I just use that on a couple headless boxes that I have and it works great.

It was a while ago that I got it working on the WDTV and seem to remember there being some change I had to deal with, maybe in the shoutcast-proxy.php file but I can't say for sure right now.

PM me if you need a hand...
workingman
DLX'er
 
Posts: 68
Joined: Sun Apr 01, 2012 3:04 pm
Location: Montreal, Canada

Re: single mp3 stream   

Postby workingman » Mon Jul 16, 2012 6:34 pm

Hey Zeltak,

I finally noticed the difference in my umsp.php... it's the path to the shoutcast plugin which must have changed.

The OP used:
Code: Select all
http://127.0.0.1/umsp/plugins/shoutcast-proxy.php?stream_url=blahblahblah..


but I found the path to actually be:
Code: Select all
http://127.0.0.1/umsp/plugins/shoutcast/shoutcast-proxy.php?stream_url=blahblahblah..


Hopefully that works for you too! Well.. minus the blahblahblah of course.

Good luck... :)
workingman
DLX'er
 
Posts: 68
Joined: Sun Apr 01, 2012 3:04 pm
Location: Montreal, Canada


Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 2 guests