Skip to content

Listening to entertaining biology

Sunday, 11 February 2007  |  oever

Today, Midas Dekkers read the last of 1250 entertaining audio columns on man and nature. Many of his columns are available on the website of Vroege Vogels. You can download either an mp3 of the two hour show of more than 100 mb in size, or you can stream the wma version and skip to the column. That's at least the theory. Under Linux, I was so far unable to conveniently listen to the wma stream. Now I've found VLC and made a small perl script that calls VLC from the URL.

#! /usr/bin/perl -w
use strict;

if (@ARGV != 1) {
    print "Usage: $0 <url>\n";
    exit;
}

my $url = $ARGV[0];
my $offset = "";
if ($url =~ m/(\d+):(\d\d?):(\d\d?)/) {
    $offset = $1*3600 + $2*60 + $3;
    $offset = "--start-time ".$offset;
}

system("vlc $offset $url");

Here is an example of a URL that you can play with this script.