General Discussion > General Discussion

NASA TV HD Thread

<< < (199/244) > >>

Naito:
Here's what I'm doing currently.  It works for the Yahoo 1200kbps streams, but still haven't found a way to get the NASA HD stream from UStream or SpaceVidCast.  If anyone has figured it out, please let me know!

Saving the stream from:
http://playlist.yahoo.com/makeplaylist.dll?id=1368163

there's a MMS link you can extract from that URL.  I use the following to get it automatically:

url=$(curl -s http://playlist.yahoo.com/makeplaylist.dll?id=1368163 | grep mms | sed 's/^.*<Ref href = \"\(.*\)\" \/>/\1/g')
Then, using mPlayer on Linux:
mplayer -noframedrop -dumpfile OUTPUT-FILENAME -dumpstream $url
This gives me a raw FLV dump of the Yahoo stream.

Hope that helps someone.  Now to figure out how to do the HD stream!

Naito:
Figured out how to record an HD stream!!

This is NASA's HTML5 Wifi HD stream for iPods/iPhones/iPads, probably used for the official NASA app:
http://liveips.nasa.gov.edgesuite.net/msfc/Wifi.m3u8

This is an HTML5 streaming video playlist file, each of the files in the playlist is about 10 seconds of video.  The files in the list constantly change, so just need to continuously download the files as they appear on the list into a single file and the resulting file is the full HD stream.

I have a little script to process this now, if anyone's interested let me know!

Mapperuo:

--- Quote from: Naito on 04/28/2011 07:08 PM ---Figured out how to record an HD stream!!

This is NASA's HTML5 Wifi HD stream for iPods/iPhones/iPads, probably used for the official NASA app:
http://liveips.nasa.gov.edgesuite.net/msfc/Wifi.m3u8

This is an HTML5 streaming video playlist file, each of the files in the playlist is about 10 seconds of video.  The files in the list constantly change, so just need to continuously download the files as they appear on the list into a single file and the resulting file is the full HD stream.

I have a little script to process this now, if anyone's interested let me know!

--- End quote ---

Nice! The Ustream version seems quite a bit sharper, but I'm sure plenty will appreciate this.

Naito:
For anyone with a Mac or Linux (you may need to install 'curl'), this will download the iPad HD stream:
Change the "saveto" and "filename" fields as needed.

Once running, it will keep recording until you close the terminal window or press CTRL-C.

#!/bin/bash
saveto="/Volumes/Data/NASA"
filename="$saveto/NASA-TV-HD.`date +%y%m%d-%s`"

httpurl='http://liveips.nasa.gov.edgesuite.net/msfc/Wifi.m3u8'
trap "break; echo Finished recording. ; exit 0" SIGINT SIGTERM

echo -n Buffering
#Get initial set of files
for nextfile in $(curl -s $httpurl | grep '.ts'); do
        echo -n .
        curl -s "$nextfile" >> $filename.ts
        lastfile="$nextfile"
done

echo 100\%

echo Starting continuous recording. Press CTRL-C to quit.
while true; do
        nextfile=$(curl -s $httpurl | grep '.ts' | tail -1)
        if [ "$nextfile" != "$lastfile" ]; then
                curl -s "$nextfile" >> $filename.ts
                lastfile="$nextfile"
        fi
 #File list updates every 10 seconds, but don't want to sleep too long and miss an update!
        sleep 7
done

It's simple enough that if anyone wants a Windows version of this I could probably write something up.

DaveS:

--- Quote from: Naito on 04/28/2011 07:08 PM ---I have a little script to process this now, if anyone's interested let me know!

--- End quote ---
I'm interested.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version