PDA

View Full Version : adding a stream to AlienBBC



Jack Coates
2004-11-21, 20:59
I'm trying to figure out how to play A Prairie Home Companion for my wife:

http://prairiehome.publicradio.org/programs/2004/11/06/

They seem to be trying to use PHP to auto-generate a SMIL file for
RealPlayer, but it appears they've screwed up their webserver so that it
attempts to download the PHP instead of executing it...

[jack@felix jack]$ bin/wid.pl prairiehome.publicradio.org
trying http://prairiehome.publicradio.org...
text/html



Apache/1.3.29 (Unix) mod_jk/1.2.5 PHP/4.3.7 mod_perl/1.29


Just as well, I have no intention of installing RealPlayer on that
machine. The file they're generating gives me:
<smil>
<body>
<par>
<img
src="http://server-us.imrworldwide.com/cgi-bin/count?cid=us_us-mpr_prairie&url=/2004/11/06_phc"/><img
src="http://www.prairiehome.org/standard/images/ph002/sc.gif?url=http://www.selectcomfort.com&target=_browser"
fill="freeze" />
<seq>
<audio
src="rtsp://a754.v5559f.c5559.g.vr.akamaistream.net/ondemand/7/754/5559/v001/mpr.download.akamai.com/5559/phc/admedia/sc1.rm"/>
</seq>
<seq>
<audio begin="10s"
src="rtsp://a754.v5559f.c5559.g.vr.akamaistream.net/ondemand/7/754/5559/v001/mpr.download.akamai.com/5559/phc/2004/11/06_phc.rm"/>
</seq>
</par>
</body>
</smil>

The Akamai links make me think this isn't going to be a simple one to deal
with, but I'd be happy to be wrong.

On a general note, with mplayer and the real codecs in place and being
used successfully by transcoder_proxy.pl, it seems that we shouldn't very
--

okay, now she wants this one:
http://www.npr.org/ramfiles/weed/20001223.weed.02.rmm

-- very far from being able to put a .pls type of file into AlienBBC's
path for it to play with. Is that possible?

--
Jack At Monkeynoodle.Org: It's A Scientific Venture...
"Believe what you're told; there'd be chaos if everyone thought for
themselves." -- Top Dog hotdog stand, Berkeley, CA

Jules Taplin
2004-11-23, 09:01
Hi Jack.

Right. You can cheat. Basically... as long as the transcoder is running
(which basically means 'if you've ever browsed into the AlienBBC menu'),
then you can simply ask the proxy to serve you things.

So... make a .pls file like this:


[playlist]
numberofentries=1
File1=http://localhost:5123/http://www.npr.org/ramfiles/weed/20001223.weed.02.rmm

And with a bit of luck, it'll work for you. This can be extended to any
media type that mplayer can handle.

-- Jules

Jack Coates wrote:

>I'm trying to figure out how to play A Prairie Home Companion for my wife:
>
>http://prairiehome.publicradio.org/programs/2004/11/06/
>
>They seem to be trying to use PHP to auto-generate a SMIL file for
>RealPlayer, but it appears they've screwed up their webserver so that it
>attempts to download the PHP instead of executing it...
>
>[jack@felix jack]$ bin/wid.pl prairiehome.publicradio.org
>trying http://prairiehome.publicradio.org...
>text/html
>
>
>
>Apache/1.3.29 (Unix) mod_jk/1.2.5 PHP/4.3.7 mod_perl/1.29
>
>
>Just as well, I have no intention of installing RealPlayer on that
>machine. The file they're generating gives me:
><smil>
><body>
><par>
><img
>src="http://server-us.imrworldwide.com/cgi-bin/count?cid=us_us-mpr_prairie&url=/2004/11/06_phc"/><img
>src="http://www.prairiehome.org/standard/images/ph002/sc.gif?url=http://www.selectcomfort.com&target=_browser"
>fill="freeze" />
><seq>
><audio
>src="rtsp://a754.v5559f.c5559.g.vr.akamaistream.net/ondemand/7/754/5559/v001/mpr.download.akamai.com/5559/phc/admedia/sc1.rm"/>
></seq>
><seq>
><audio begin="10s"
>src="rtsp://a754.v5559f.c5559.g.vr.akamaistream.net/ondemand/7/754/5559/v001/mpr.download.akamai.com/5559/phc/2004/11/06_phc.rm"/>
></seq>
></par>
></body>
></smil>
>
>The Akamai links make me think this isn't going to be a simple one to deal
>with, but I'd be happy to be wrong.
>
>On a general note, with mplayer and the real codecs in place and being
>used successfully by transcoder_proxy.pl, it seems that we shouldn't very
>--
>
>okay, now she wants this one:
>http://www.npr.org/ramfiles/weed/20001223.weed.02.rmm
>
>-- very far from being able to put a .pls type of file into AlienBBC's
>path for it to play with. Is that possible?
>
>
>

Jack Coates
2004-11-23, 20:47
> Hi Jack.
>
> Right. You can cheat. Basically... as long as the transcoder is running
> (which basically means 'if you've ever browsed into the AlienBBC menu'),
> then you can simply ask the proxy to serve you things.
>
> So... make a .pls file like this:
>
>
> [playlist]
> numberofentries=1
> File1=http://localhost:5123/http://www.npr.org/ramfiles/weed/20001223.weed.02.rmm
>
> And with a bit of luck, it'll work for you. This can be extended to any
> media type that mplayer can handle.
>
> -- Jules

oh, wait... no special playlist directory required? Hmm... /me jogs off to
try...

no luck. Probably has something to do with being falling over tired, I'll
try again in the AM.

--
Jack At Monkeynoodle.Org: It's A Scientific Venture...
"Believe what you're told; there'd be chaos if everyone thought for
themselves." -- Top Dog hotdog stand, Berkeley, CA