[mythtv-users] Slight OT: NASA TV streams in Linux

Matt White whitem at arts.usask.ca
Tue Jul 12 00:41:51 EDT 2005


Nick Rout wrote:
> I will concentrate on the realplayer stream, but the technique would be
> the same for the windows media stream
> 
> 1. the link for the live realplayer stream is http://www.nasa.gov/ram/35037main_portal.ram
> 
> wget that file and when you look inside you will see this:
> 
> nick at www ~ $ cat 35037main_portal.ram
> rtsp://rmbcast.nasa-us2e.speedera.net/alias_ashburn1_btn_2/broadcast/rmbcast.nasa-us2e/rmbcast_nasa-us2e_dec312003_0922_52880.rm
> 
> rtsp://rmbcast.nasa-us1e.speedera.net/alias_ashburn1_btn/encoder/rmbcast.nasa-us1e/rmbcast_nasa-us1e_jan022004_1034_93365.rm
> 
> rtsp://rmbcast.nasa-us2e.speedera.net/alias_ashburn1_btn_2/broadcast/rmbcast.nasa-us2e/rmbcast_nasa-us2e_dec312003_0922_52880.rm
> 
> rtsp://rmbcast.nasa-us1e.speedera.net/alias_ashburn1_btn/encoder/rmbcast.nasa-us1e/rmbcast_nasa-us1e_jan022004_1034_93365.rm
> 
> 2. mplayer shoulds play any of those streams, ie:
> 
> mplayer \ rtsp://rmbcast.nasa-us1e.speedera.net/alias_ashburn1_btn/encoder/rmbcast.nasa-us1e/rmbcast_nasa-us1e_jan022004_1034_93365.rm
> 
> should work, if you have mplayer properly compiled and configured. Test
> it!
> 
> 4. put a zero length file (call it, say, nasa.avi) in the directory
> where you normally put your mythvideo files.
> 
> 5. goto the mythvideo setup screen and set a custom play line for nasa.avi like:
> 
> mplayer (other mplayer options you use) rtsp://rmbcast.nasa-us1e.speedera.net/alias_ashburn1_btn/encoder/rmbcast.nasa-us1e/rmbcast_nasa-us1e_jan022004_1034_93365.rm 

You could do it a bit more generally...make a shell script called
playram.sh:

----snip----
#!/bin/bash

fn=$@
url=`/bin/cat $fn`
mplayer {whatever mplayer args} -playlist $i
----snip----

Next, go to mythvideo setup and set the play line for .ram files to
playram.sh.

Now, for each realaudio stream you want to use, create a file containing
the .ram URL....for instance, for NASA:

File NASA.ram:
----snip----
http://www.nasa.gov/ram/35037main_portal.ram
----snip----

Note that your mplayer must be compiled with Live and network support
for this to work...

-- 
Matt White                          whitem at arts.usask.ca
Arts and Science Computer Labs      University of Saskatchewan


More information about the mythtv-users mailing list