From: Petter Reinholdtsen Date: Sun, 8 Feb 2015 11:58:20 +0000 (+0100) Subject: New post. X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/6feaa8e9aedf2698429c2dde5ec018143fe92129?ds=inline New post. --- diff --git a/blog/data/2015-02-08-frikanalen-video-monitor.txt b/blog/data/2015-02-08-frikanalen-video-monitor.txt new file mode 100644 index 0000000000..536d6bb75b --- /dev/null +++ b/blog/data/2015-02-08-frikanalen-video-monitor.txt @@ -0,0 +1,37 @@ +Title: Nagios module to check if the Frikanalen video stream is working +Tags: english, video, nuug, frikanalen +Date: 2015-02-08 13:00 + +

When running a TV station with both broadcast and web stream +distribution, it is useful to know that the stream is working. As I +am involved in the Norwegian open channel +Frikanalen as part of my +activity in the NUUG member +organisation, I wrote a script to use mplayer to connect to a +video stream, pick two images 35 seconds apart and compare them. If +the images are missing or identical, something is probably wrong with +the stream and an alarm should be triggered. The script is written as +a Nagios plugin, allowing us to use Nagios to run the check regularly +and sound the alarm when something is wrong. It is able to detect +both a hanging and a broken video stream.

+ +

I just uploaded the code for the script into the +Frikanalen +git repository on github. If you run a TV station with web +streaming, perhaps you can find it useful too.

+ +

Last year, the Frikanalen public TV station transformed into using +only Linux based free software to administrate, schedule and +distribute the TV content. The +source code for the entire TV +station is available from the Github project page. Everyone can +use it to send their content on national TV, and we provide both a web +GUI and a web API to +add +and schedule +content. And thanks to last weeks developer gathering and +following activity, we now have the schedule +available as +XMLTV too. Still a lot of work left to do, especially with the +process to add videos and with the scheduling, so your contribution is +most welcome. Perhaps you want to set up your own TV station?