On Thursday April 19 2012 a group of women performed on Graz main square in support of russian punk group pussy riot. I got a call from Reni, telling me what was going on. So I took control of the city’s webcam and grabbed images from there for half an hour. The video you see here was built from more than 800 JPG files, using a gstreamer pipeline.

This simple shell script was used to download the images:

:::shell
#!/bin/sh
CAM_URL="http://www.graz.at:81/webcam_neu/getimg.php"
INTERVAL=2

count=0
while true
do
    # set the name of the output file
    name="image"$(printf %03d $count)".jpg"

    # grab the picture using the url in file imageurl
    wget -O $name -q $CAM_URL

    # increment the counter
    count=$(($count + 1 ))

    # wait for interval seconds
    sleep $INTERVAL
done

This script, that I found here was used to generate the video:

:::shell
#!/bin/sh

PREFIX=image
FRAMERATE=5
WIDTH=768
HEIGHT=576
QUALITY=63
OUTFILE=out.ogg

if [ -s "$OUTFILE" ] ; then
        echo file exists: $OUTFILE 1>&2
        exit 1
fi

time gst-launch-0.10 \
        multifilesrc location="$PREFIX%03d.jpg" ! image/jpeg,framerate=$FRAMERATE/1 \
        ! decodebin \
        ! videoscale \
        ! video/x-raw-yuv,width=$WIDTH,height=$HEIGHT \
        ! progressreport name=progress \
        ! theoraenc quality=$QUALITY \
        ! oggmux \
        ! filesink location="$OUTFILE"