Useful Looking Media Stream Recording Script for Mplayer

Trying to catch up on LWN, I found this useful looking script to timeshift media streams (off course this is illegal in Australia, because timeshifting anything other than a TV show that is being broadcast live from a studio or on location is illegal here. Don’t even think of format shifting.).