Created the record.pl script, with this simple script you can record WeepeeTV streams.
Unfortunately the WeepeeTV streams aren't that stable and ffmpeg (which is used to record) can't append recordings, so sometimes your recordings may not be complete.
How it worksBasically it will create a small shell script in /tmp which will be queued as an at job at the time you specified. This script will be executed at the specified time and will be calling ffmpeg to save the stream to a .mkv file in the outputdirectory you've specified.
ConfigTo run the script change the variables on top of record.pl
#make sure your ffmpeg supports https my $FFMPEG="/usr/bin/ffmpeg-weepeetv"; my $ATCMD="/usr/bin/at"; #locations of xml source file my $XMLFILE="wptv.xml"; #where to write the recordings my $OUTPUTDIR="/opt/recordings"; #installation directory my $PATH="/home/wim/wptvscraper";
record.pl --start=<time date> --duration <hh:mm:ss> --desc <description> --channel <name> e.g. perl record.pl --start=15:00 tomorrow --duration 00:30:00 --desc "crappy show" --channel een records 30 minutes starting tomorrow at 15h on channel 'een' <time date> can be anything 'at' supports, see 'man at' Other options: --channels (shows available channels)
You can find the code on https://github.com/42wim/wptvscraper