+ <item>
+ <title>Fransk idiotlovforslag hinker gjennom parlamentet</title>
+ <link>http://people.skolelinux.org/pere/blog/Fransk_idiotlovforslag_hinker_gjennom_parlamentet.html</link>
+ <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Fransk_idiotlovforslag_hinker_gjennom_parlamentet.html</guid>
+ <pubDate>Fri, 10 Apr 2009 00:10:00 +0200</pubDate>
+ <description><p><a href="http://www.dagbladet.no/2009/04/09/kultur/musikk/fildeling/tekno/5689356/">Dagbladet
+melder at det franske idiotforslaget om å kutte Internet-forbindelsen
+til alle som blir anklaget for å ha brutt opphavsretten 3 ganger</a>
+ble nedstemt i dag med 21 mot 15 stemmer. Vinklingen i Dagbladet er
+litt merkelig når en vet at det samme forslaget ble vedtatt i
+parlamentets andre kammer med 12 mot 4 stemmer, etter at det
+<a href="http://opendotdotdot.blogspot.com/2009/04/hadopi-law-passed-by-12-votes-to-4.html">overraskende
+ble foreslått å ta saken opp til votering 22:45 sist torsdag</a>,
+etter sigende i strid med vanlige rutiner i det franske parlamentet.</p>
+
+<p>Det hele blir ennå mer komisk når et vet at
+<a href="http://www.zeropaid.com/news/10034/political_hypocrisy_french_president_sued_for_copyright_infringement/">presidentens
+parti er blitt anklaget for å ha brutt opphavsretten</a>. Mon tro om
+partet skal miste internet-forbindelsen hvis de får 2 anklager til
+rettet mot seg.</p>
+</description>
+ </item>
+
+ <item>
+ <title>Recording video from cron using VLC</title>
+ <link>http://people.skolelinux.org/pere/blog/Recording_video_from_cron_using_VLC.html</link>
+ <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Recording_video_from_cron_using_VLC.html</guid>
+ <pubDate>Sun, 5 Apr 2009 10:00:00 +0200</pubDate>
+ <description><p>One think I have wanted to figure out for a along time is how to
+run vlc from cron to do recording of video streams on the net. The
+task is trivial with mplayer, but I do not really trust the security
+of mplayer (it crashes too often on strange input), and thus prefer
+vlc. I finally found a way to do it today. I spent an hour or so
+searching the web for recipes and reading the documentation. The
+hardest part was to get rid of the GUI window, but after finding the
+dummy interface, the command line finally presented itself:</p>
+
+<blockquote><pre>URL=http://www.ping.uio.no/video/rms-oslo_2009.ogg
+SAVEFILE=rms.ogg
+DISPLAY= vlc -q $URL \
+ --sout="#duplicate{dst=std{access=file,url='$SAVEFILE'},dst=nodisplay}" \
+ --intf=dummy</pre></blockquote>
+
+<p>The command stream the URL and store it in the SAVEFILE by
+duplicating the output stream to "nodisplay" and the file, using the
+dummy interface. The dummy interface and the nodisplay output make
+sure no X interface is needed.</p>
+
+<p>The cron job then need to start this job with the appropriate URL
+and file name to save, sleep for the duration wanted, and then kill
+the vlc process with SIGTERM. Here is a complete script
+<tt>vlc-record</tt> to use from <tt>at</tt> or <tt>cron</tt>:</p>
+
+<blockquote><pre>#!/bin/sh
+set -e
+URL="$1"
+SAVEFILE="$2"
+DURATION="$3"
+DISPLAY= vlc -q "$URL" \
+ --sout="#duplicate{dst=std{access=file,url='$SAVEFILE'},dst=nodisplay}" \
+ --intf=dummy < /dev/null > /dev/null 2>&1 &
+pid=$!
+sleep $DURATION
+kill $pid
+wait $pid</pre></blockquote>
+</description>
+ </item>
+