“Heute-Journal” is a German late-night news on ZDF. You can watch their shows for free both live and on demand at the ZDF-Mediathek.
You can play them on Linux if you’ve VLC- and Flash-plugins for your browser. In my Firefox-2 (64-bit) it’s not possible to pause or forward the playback. That’s the reason why I’ve written a small bash script, which downloads yesterday’s show mms-link and then uses mplayer to dump the stream into a file. After 5 seconds of downloading the stream, VLC starts an plays the dumpfile.
—————
#!/bin/bash
YESTERDAY=`date -d yesterday +”%y%m%d”`
ASX=”http://wstreaming.zdf.de/zdf/veryhigh/”$YESTERDAY”_hjo.asx”
TMP_PATH=$HOME”/tmp/”
DLINK=”hj_link”
HJNAME=”heute-journal.wmv”
cd $TMP_PATH
#Catch direct-link
wget -O $DLINK $ASX
#Extract direct-link
LINK=`sed “s/.*href=\”\(mms.*\.wmv\)\”.*/\1/” hj_link`
mplayer -dumpstream $LINK -dumpfile heute-journal.wmv & (sleep 5 && vlc $HJNAME &)
—————
Till now, I haven’t figured out, how to tell mplayer to read the .asx-file, so I’ve to extract the mms-link by myself with sed.
UPDATE: Who seek shall find! With the option “-playlist <playlistfile>” you can give mplayer a playlist, like asx-files, instead of a direct URL. Here the modified Bashscript:
—————
#!/bin/bash
YESTERDAY=`date -d yesterday +”%y%m%d”`
ASX=”http://wstreaming.zdf.de/zdf/veryhigh/”$YESTERDAY”_hjo.asx”
HJNAME=$HOME”/tmp/heute-journal.wmv”
mplayer -dumpstream -playlist $ASX -dumpfile $HJNAME & (sleep 5 && vlc $HJNAME &)
—————