Just opened this blog, yet moved!
I've decided to switch from Blogger to Wordpress. Sorry for the confusion!
New Blog.
2008/05/17
Automatic Heute-Journal Download

On Linux you can play them if you've VLC- and Flash-plugins for your browser. But in mine (Firefox-2, 64-bit) it's not possible to pause or forward the playback. That's the reason why I've wrote a small bash script, which downloads yesterday show's 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: I'm sorry, this Blogger-templates eats my long lines. Here's a Nopaste.
2008/05/16
Virtual Reality

What's this good for? -> You can see really 3-dimensional!
Fourther information is aviable at http://cg.fh-wedel.de/vrlab/cave/index.html
NoPaste over shell with "sprunge"
With sprunge.us you can pipe an output of a shellapplication to its nopaste-webservice. It returns the URL of the pasting at sprunge.
Look at the homepage to see its manpage!
My rating: 4 of 5 Nerds =)
Look at the homepage to see its manpage!
My rating: 4 of 5 Nerds =)
Start
Okay, I'm a blogger again. Well, but this time this blog is not a real blog, its purpose is more like a personal notepad, like the name.
AND: I'll try my best in writing in english. Not because I'm so good in it, just only to improve my skills in expressing myself. In speech, I can handle it quite good, but not in writing...
So, if you want to help me: Please leave a comment and help me by correcting my mistakes!
Thanks!
AND: I'll try my best in writing in english. Not because I'm so good in it, just only to improve my skills in expressing myself. In speech, I can handle it quite good, but not in writing...
So, if you want to help me: Please leave a comment and help me by correcting my mistakes!
Thanks!
Subscribe to:
Posts (Atom)